Skip to content

JurajBrabec/nbu-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBU-CLI package

NBU function

Returns the instance of NetBackup interface.

Usage/Examples

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:

The isRunning function

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.');

The isLoggedIn function

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');

The login function

This function logs the specified user in.

const result = await nbu.login({ domain: 'ACME', user: 'john' });

The logout function

This function logs the current user out.

const result = await nbu.logout();

The clients function

This function returns all configured clients.

const clients = await nbu.clients();

The jobs function

This function returns all jobs.

const result = await nbu.jobs();

Or just jobs for last daysBack days.

const result = await nbu.jobs({ daysBack: 3 });

The policies function

This function returns all configured policies.

const result = await nbu.policies();

The retentionLevels function

This function returns all configured policies.

const result = await nbu.retentionLevels();

The services function

This function returns all NetBackup realted services.

const result = await nbu.services();

The slps function

This function returns all configured SLP's.

const result = await nbu.slps();

The summary function

This function returns the summary.

const result = await nbu.summary();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors