JimmyB2
4 years agoLevel 4
Netbackup appliance remote scripts execution for monitoring
Hi there,
my question is if it is feasible to remotely monitor Netbackup appliance.
The thing is that we need to remotely execute e.g. command ''bpdbjobs -summary'' on the Netbackup appliance from the remote computer. However, firstly there is need to jump to elevated mode of the Netbackup appliance shell. Do you think that is it possible to manage such a solution and if so, how?
Many thanks for possible suggestions!
Hi JimmyB2
Here's an example of what someone else wrote to extract audit logs from NetBackup (obviously change the master server name, user etc as required) - this was run from a Linux host (jq is a json processor/formatter)
First get and store the auth token:
token=`curl -k -X POST https://nbmaster:1556/netbackup/login -H 'Content-Type: application/json' -d '{"domainType":"", "domainName":"", "userName":"root", "password":"XXXXXXXX"}' | jq --raw-output '.token'`
Then use the token to get the audit logs:
curl -k -X GET https://nbmaster:1556/netbackup/security/auditlogs -H 'Content-Type: application/json' -H "authorization:$token" | jq .
David