How does nbcmdrun function
To run the nbcmdrun command, you must authenticate yourself by performing one of the following tasks:
Do a web login in the current NetBackup domain using the bpnbat -login -loginType WEB command.
Use the following command to present the file with JWT or API-Key as an environment variable:
set FILE_LOGIN_CONTEXT=jwt or api-key file
Alternatively use the following command:
export FILE_LOGIN_CONTEXT=jwt or api-key file
nbcmdrun retrieves this authentication token (JWT or API-Key) of the user and presents it to the server for the user's authentication, authorization, and auditing.
nbcmdrun has multiple connection points based on the command that is run with nbcmdrun.
nbcmdrun can run a command (for example: nbcmdrun bpstulist) in the same user context, wherein the command itself connects to the domain services like bpdbm or nbemm.
nbcmdrun can run a command (for example: nbcmdrun nbdb_move) as is under the service account (vnetd).
nbcmdrun can run a command (for example: nbcmdrun tpconfig) as is under the privileged account (NBPAS).
nbcmdrun can run a command (for example: nbcmdrun bppolicynew) as is via web services (nbwebservice).