Forum Discussion

backup-botw's avatar
10 years ago
Solved

nbdeployutil Error

Anyone ever seen something like this before?

root@masterserver:/usr/openv/netbackup/bin/admincmd ->./nbdeployutil --gather --hoursago=720
NetBackup Deployment Utility, version 7.6.0.2_00.0424
Gathering license deployment information...
  Discovered master server masterserver
Failed to parse tpconfig data from /usr/openv/var/global/reports/20150806_122652_masterserver/tpconfig.out
  Failed gathering for masterserver, /usr/openv/var/global/reports/20150806_122652_masterserver
Gather DONE
Execution time: 13 mins 20 secs

Unable to gather information for the following masters:
  masterserver in directory /usr/openv/var/global/reports/20150806_122652_masterserver

Never had a problem running this before as it has always worked, but I went to run it today and am seeing this problem. Nothing has changed in the environment as far as version being used or anything like that.

  • I think we have a bingo! 

    Can you find some known good versions of those binaries and get them replaced?

    (Not sure which one is your problem - suspect bptestbpcd)

  • Judging by what I am seeing in the zeroed files I believe it was done on the same day...

    -rw-r--r--   1 root     root           0 Jun 23 09:58 bpclntcmd
    -r-xr-xr-x   1 root     bin            0 Jun 23 09:58 bptestbpcd
    -rw-r--r--   1 root     root           0 Jun 23 09:58 telnet

    June 23rd around 9:58AM.

  • I've just tried corrupting bptestbpcd to see what effect it would have on nbdeployutil...

    [root@rhel64 /]# cd tmp
    
    [root@rhel64 tmp]# /usr/openv/netbackup/bin/admincmd/nbdeployutil --gather --output="/tmp/sdo"
    NetBackup Deployment Utility, version 7.5.0.7
    Gathering license deployment information...
      Discovered master server hserver
      failed bptestbpcd to 4 of 5 clients, for details see: /tmp/sdo/20150807_161816_hserver/nbdeployutil-gather-20150807_161816.log
      Output for hserver at: /tmp/sdo/20150807_161816_hserver    
    Gather DONE
    Execution time: 36 secs
    To create a report for this master server, run one of the following:
      capacity   : nbdeployutil --report --capacity /tmp/sdo/20150807_161816_hserver
      traditional: nbdeployutil --report --traditional /tmp/sdo/20150807_161816_hserver
    
    [root@rhel64 tmp]# cd /usr/openv/netbackup/bin
    
    [root@rhel64 bin]# find . -name bptestbpcd
    ./admincmd/bptestbpcd
    
    [root@rhel64 bin]# cd admincmd/
    
    [root@rhel64 admincmd]# mv bptestbpcd bptestbpcd.sav
    
    [root@rhel64 admincmd]# touch bptestbpcd
    
    [root@rhel64 admincmd]# cd /tmp
    
    [root@rhel64 tmp]# /usr/openv/netbackup/bin/admincmd/nbdeployutil --gather --output="/tmp/sdo"
    NetBackup Deployment Utility, version 7.5.0.7
    Gathering license deployment information...
      Discovered master server hserver
    `tpconfig` status: 127 (exec failed, Permission denied)
    `nbdevquery` status: 127 (exec failed, Permission denied)
    `nbemmcmd` status: 127 (exec failed, Permission denied)
    `emmcmd_lh` status: 127 (exec failed, Permission denied)
    `nbftconfig` status: 127 (exec failed, Permission denied)
    `vault` status: 127 (exec failed, Permission denied)
      failed bptestbpcd to 5 of 5 clients, for details see: /tmp/sdo/20150807_172724_hserver/nbdeployutil-gather-20150807_172724.log
      Failed gathering for hserver, /tmp/sdo/20150807_172724_hserver
    Gather DONE                           
    Execution time: 2 secs                
    Unable to gather information for the following masters:
      hserver in directory /tmp/sdo/20150807_172724_hserver
    
    [root@rhel64 tmp]#

    ...and then putting the bptestbpcd binary file back:

    [root@rhel64 tmp]# cd /usr/openv/netbackup/bin/admincmd/
    
    [root@rhel64 admincmd]# rm bptestbpcd
    rm: remove regular empty file `bptestbpcd'? y
    
    [root@rhel64 admincmd]# mv bptestbpcd.sav bptestbpcd
    
    [root@rhel64 admincmd]# cd /tmp
    
    [root@rhel64 tmp]# /usr/openv/netbackup/bin/admincmd/nbdeployutil --gather --output="/tmp/sdo"
    NetBackup Deployment Utility, version 7.5.0.7
    Gathering license deployment information...
      Discovered master server hserver
      failed bptestbpcd to 4 of 5 clients, for details see: /tmp/sdo/20150807_173113_hserver/nbdeployutil-gather-20150807_173113.log
      Output for hserver at: /tmp/sdo/20150807_173113_hserver    
    Gather DONE
    Execution time: 37 secs
    To create a report for this master server, run one of the following:
      capacity   : nbdeployutil --report --capacity /tmp/sdo/20150807_173113_hserver
      traditional: nbdeployutil --report --traditional /tmp/sdo/20150807_173113_hserver
    
    [root@rhel64 tmp]#
    

    ...and all is ok again.

  • This should already have been resolved by now!

    Please replace those missing binaries and you should find that things will start working again.