Returns the instance of NetBackup interface.
import the package
const NBU = require('nbu-cli');instantiate a process with path to bin folder
const nbu = await NBU({ bin: 'c:/program files/veritas/netbackup/bin' });
console.log(nbu.masterServer);You can retrieve following results:
Configuration specific results:
This function returns true or false depending on whether the required NetBackup services are running or not.
if (await nbu.isRunning()) console.log('You can safely read the data.');This function returns true or false depending on whether the specified user is logged in or not.
if (await nbu.isLoggedIn({ domain: 'ACME', user: 'john' }))
console.log('Welcome, John');This function logs the specified user in.
const result = await nbu.login({ domain: 'ACME', user: 'john' });This function logs the current user out.
const result = await nbu.logout();This function returns all configured clients.
const clients = await nbu.clients();This function returns all jobs.
const result = await nbu.jobs();Or just jobs for last daysBack days.
const result = await nbu.jobs({ daysBack: 3 });This function returns all configured policies.
const result = await nbu.policies();This function returns all configured policies.
const result = await nbu.retentionLevels();This function returns all NetBackup realted services.
const result = await nbu.services();This function returns all configured SLP's.
const result = await nbu.slps();This function returns the summary.
const result = await nbu.summary();