How to add users for making queries against NetBackup REST API

Article: 100042908
Last Published: 2022-02-26
Ratings: 7 7
Product(s): NetBackup & Alta Data Protection

How to add users for making queries against NetBackup REST API

A VxSS user must be added to the NetBackup master server in order to perform user/password authentication when using the NetBackup API.

Run the bpnbat command to add a user:

On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/

On Windows systems, the directory path to this command is install_path\NetBackup\bin\

bpnbat -AddUser <user> <password> <domain>
 

The user, password and domain can be any value and do not have any relation to GUI or other login credentials. Make note of the values as they will be needed later.

The following is an example using the username testUser, password Test1234 and domain of testDomain:

On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/

On Windows systems, the directory path to this command is install_path\NetBackup\bin\

bpnbat -AddUser testUser Test1234 testDomain
 

Give the new VxSS user administrator privileges via a couple bpnbaz commands. First, enable enhanced auditing with the following command:

On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/admincmd/

On Windows systems, the directory path to this command is install_path\NetBackup\bin\admincmd\

bpnbaz -SetupExAudit
 

Note: This step will require a restart of Netbackup services.

Then, grant the administrator privilege:

On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/admincmd/

On Windows systems, the directory path to this command is install_path\NetBackup\bin\admincmd\

bpnbaz -AddUser <domain type>:<domain name>:<user>
 

The following shows the command using values from the previous example

On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/admincmd/

On Windows systems, the directory path to this command is install_path\NetBackup\bin\admincmd\

bpnbaz -AddUser vx:testDomain:testUser

 

Was this content helpful?