Highlighted

nbdeployutil --gather is failing on 8.1.2

We are trying to gather nbdeployutil metrics for reporting but it always fails on the new 8.1.2 masters. Any advice?

netbackup-prod-iad6-master-6001.iad6% sudo /usr/openv/netbackup/bin/admincmd/nbdeployutil --gather

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for joes:
NetBackup Deployment Utility, version 8.1.1
Gathering license deployment information...
Discovered master server netbackup-prod-iad6-master-6001.iad6.company.com

Enter credentials for Master Server(s):

Master Server:netbackup-prod-iad6-master-6001.iad6.company.com
Domain Type (NIS, NISPLUS, WINDOWS, vx, unixpwd, ldap):ldap
Domain Name :company.com
User Name :joes
Password :

Ensure that the correct credentials are entered or the prerequisite steps for the remote master server are completed.
Rerun nbdeployutil with the gather option on master server netbackup-prod-iad6-master-6001.iad6.company.com
Failed gathering for netbackup-prod-iad6-master-6001.iad6.company.com, /usr/openv/var/global/reports/20190321_175124_netbackup-prod-iad6-master-6001.iad6.company.com
Gather DONE
Execution time: 27 secs

Unable to gather information for the following masters:
netbackup-prod-iad6-master-6001.iad6.company.com in directory /usr/openv/var/global/reports/20190321_175124_netbackup-prod-iad6-master-6001.iad6.company.com
netbackup-prod-iad6-master-6001.iad6%

Tags (3)
1 Solution

Accepted Solutions
Highlighted
Accepted Solution!

Re: nbdeployutil --gather is failing on 8.1.2

I ran into this issue a couple months ago. The 8.1.1+ nbdeployutil binary requires a "bpnbat -login" to be used locally or on a remote trusted server.

You can do one of the following:
- enter the root credentials for the remote master when prompted to authenticate
- run your 'nbdeployutil --gather' as 'tradtional' instead of 'capacity'
- At NB 8.1+ capacity reports will run weekly automatically. If they are working you can use those
- Use OpsCenter to create a capactiy report instead of a remote master.
- configure enhanced auditing on the master you are trying to run the gather on, and then provide your new non-root enhanced auditing credentials when prompted
 
To provide more details on the above options:
- the root login is pretty simple. enter master server name, choose unixpwd or WINDOWS depending on OS of target master, choose default option for auth port, and if using local account, choose master hostname again for auth domain.

Here is the option I used to get a nbdeployutil capacity report.

You can run the –gather with the ‘traditional’ option which will not prompt for the credentials.  Then you can use that same gather output to ‘analyze’ using either ‘capacity’ or ‘traditional’ report types
 
nbdeployutil --gather --traditional --hoursago=2160 –output=<folder name of your choice > --exclude-all-clients
 
If you want to get the platform details for each client, then remove the –exclude-all-clients.
 
Then run the analysis part:
nbdeployutil --report –capacity  < folder >
 
OR
 
nbdeployutil –report –traditional  < folder>
 
where < folder > will be the folder named by the –gather after it’s completed
 
Example:
 
 
GATHER:
 
rhmaster2:/usr/openv/netbackup/bin # nbdeployutil --gather --traditional --exclude-all-clients --output=/tmp/T
no crontab for root
NetBackup Deployment Utility, version 8.0
Gathering license deployment information...
  Discovered master server rhmaster2.nbappliance.lab
  Output for rhmaster2.nbappliance.lab at: /tmp/T/20180904_134724_rhmaster2.nbappliance.lab
Gather DONE
Execution time: 4 secs
To create a report for this master server, run the following:
  nbdeployutil --report --traditional /tmp/T/20180904_134724_rhmaster2.nbappliance.lab
rhmaster2:/usr/openv/netbackup/bin #
 
ANALYSIS:
rhmaster2:/usr/openv/netbackup/bin # nbdeployutil --report --capacity /tmp/T/20180904_134724_rhmaster2.nbappliance.lab
no crontab for root
NetBackup Deployment Utility, version 8.0
Analyzing license deployment ...
  Report created at: /tmp/T/20180904_134724_rhmaster2.nbappliance.lab/report-capacity-rhmaster2.nbappliance.lab-20180904_134829.xls
Analysis DONE
Execution time: 0 sec

View solution in original post

3 Replies

Re: nbdeployutil --gather is failing on 8.1.2

Highlighted
Accepted Solution!

Re: nbdeployutil --gather is failing on 8.1.2

I ran into this issue a couple months ago. The 8.1.1+ nbdeployutil binary requires a "bpnbat -login" to be used locally or on a remote trusted server.

You can do one of the following:
- enter the root credentials for the remote master when prompted to authenticate
- run your 'nbdeployutil --gather' as 'tradtional' instead of 'capacity'
- At NB 8.1+ capacity reports will run weekly automatically. If they are working you can use those
- Use OpsCenter to create a capactiy report instead of a remote master.
- configure enhanced auditing on the master you are trying to run the gather on, and then provide your new non-root enhanced auditing credentials when prompted
 
To provide more details on the above options:
- the root login is pretty simple. enter master server name, choose unixpwd or WINDOWS depending on OS of target master, choose default option for auth port, and if using local account, choose master hostname again for auth domain.

Here is the option I used to get a nbdeployutil capacity report.

You can run the –gather with the ‘traditional’ option which will not prompt for the credentials.  Then you can use that same gather output to ‘analyze’ using either ‘capacity’ or ‘traditional’ report types
 
nbdeployutil --gather --traditional --hoursago=2160 –output=<folder name of your choice > --exclude-all-clients
 
If you want to get the platform details for each client, then remove the –exclude-all-clients.
 
Then run the analysis part:
nbdeployutil --report –capacity  < folder >
 
OR
 
nbdeployutil –report –traditional  < folder>
 
where < folder > will be the folder named by the –gather after it’s completed
 
Example:
 
 
GATHER:
 
rhmaster2:/usr/openv/netbackup/bin # nbdeployutil --gather --traditional --exclude-all-clients --output=/tmp/T
no crontab for root
NetBackup Deployment Utility, version 8.0
Gathering license deployment information...
  Discovered master server rhmaster2.nbappliance.lab
  Output for rhmaster2.nbappliance.lab at: /tmp/T/20180904_134724_rhmaster2.nbappliance.lab
Gather DONE
Execution time: 4 secs
To create a report for this master server, run the following:
  nbdeployutil --report --traditional /tmp/T/20180904_134724_rhmaster2.nbappliance.lab
rhmaster2:/usr/openv/netbackup/bin #
 
ANALYSIS:
rhmaster2:/usr/openv/netbackup/bin # nbdeployutil --report --capacity /tmp/T/20180904_134724_rhmaster2.nbappliance.lab
no crontab for root
NetBackup Deployment Utility, version 8.0
Analyzing license deployment ...
  Report created at: /tmp/T/20180904_134724_rhmaster2.nbappliance.lab/report-capacity-rhmaster2.nbappliance.lab-20180904_134829.xls
Analysis DONE
Execution time: 0 sec

View solution in original post

Highlighted

Re: nbdeployutil --gather is failing on 8.1.2

It seems that 'sudo' cannot be used to run nbdeployutil since version 8.1.

See this discussion: https://vox.veritas.com/t5/NetBackup/nbdeployutil-in-8-1/td-p/847747