05-27-2014 03:17 AM
Hello,
I have just installed nbdeployutil on our Solaris10 netbackup 7.5 master server but I run into the following error:
-bash-3.00# /usr/openv/netbackup/bin/admincmd/nbdeployutil --gather --report --capacity /tmp/
NetBackup Deployment Utility, version 7.5_EEB1_PET3406793_SET3406831
Gathering license deployment information...
Discovered master server backup
Output for backup at: /usr/openv/var/global/reports/20140527_120909_backup
Gather DONE
Analyzing license deployment ...
Directory /tmp/
No file starting with bpimagelist found in /tmp/
Master backup
Can't locate loadable object for module Encode in @INC (@INC contains: PERL2EXE_STORAGE /usr/openv/netbackup/bin/admincmd /tmp/p2xtmp-7112) at PERL2EXE_STORAGE/Spreadsheet/WriteExcel/Workbook.pm line 162
Compilation failed in require at PERL2EXE_STORAGE/Spreadsheet/WriteExcel/Workbook.pm line 162.
Since I don't know Perl programming, I thought after seeing this error that the problem could be the 'perl2exe' program that wasn't installed on the system.
I did a 'find' for it without results so I installed and run nbdeployutil again but had the same error again.
I looked for the Encode module too and found the following related output:
# perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' | grep Encode
/usr/perl5/5.8.4/lib/sun4-solaris-64int/Encode.pm
The contents of @INC shows the following:
# perl -e "print \"@INC\""
/usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .
Does anybody know what could be the reason of this error and how to solve it?
Answers pointing to the right solution will be much appreciated since I don't know how to proceed from here.
Regards,
Marcos
Solved! Go to Solution.
05-27-2014 05:12 AM
Did you install the EEB (nbdeployutil) or just extract it?
Most downloaded versions include lots of other files too so it should be installed
Having said that you shoulddn't need to download anything for 7.5 as it is all built in and shoul dbe under admincmd
Just wanting to check exactly what you have done
Also, in relation to the command, the report option is usually phase 2 .. just run:
nbdeployutil --gather -- capacity
The report bit comes next
05-27-2014 03:29 AM
@INC look for this file PERL2EXE_STORAGE/Spreadsheet/WriteExcel/Workbook.pm located somwhere in /usr/openv/netbackup/bin/admincmd /tmp/p2xtmp-7112
with @INC you can specify own perl modules not part of the OS perl installation
05-27-2014 03:46 AM
Hello Nicolai,
Thanks for your answer.
Yes, I searched already for the Workbook.pm file as you suggest but it doesn't exist on the system (not even in that temp dir created when running the utility, in this case, /tmp/p2xtmp-7112).
05-27-2014 03:53 AM
Did you get the lastes version from http://www.symantec.com/docs/TECH148678 ?
05-27-2014 03:56 AM
I am getting same error as you running the command provided.
05-27-2014 03:58 AM
Yes, I downloaded today the solaris 7.5 version NB_7.5_ET3406831_1.zip from
http://www.symantec.com/business/support/index?page=content&id=TECH148678
05-27-2014 05:12 AM
Did you install the EEB (nbdeployutil) or just extract it?
Most downloaded versions include lots of other files too so it should be installed
Having said that you shoulddn't need to download anything for 7.5 as it is all built in and shoul dbe under admincmd
Just wanting to check exactly what you have done
Also, in relation to the command, the report option is usually phase 2 .. just run:
nbdeployutil --gather -- capacity
The report bit comes next
05-27-2014 06:55 AM
Hi Mark,
Yes, I extract it and then install the 'eebinstaller.3406831.1.solaris' from the extracted folder.
I didn't know that this tool was already built in for version 7.5, if that is what you mean.
I run it as you said in two steps and it works.
STEP 1
-bash-3.00# /usr/openv/netbackup/bin/admincmd/nbdeployutil --gather --capacity
NetBackup Deployment Utility, version 7.5_EEB1_PET3406793_SET3406831
Gathering license deployment information...
Discovered master server backup
Output for backup at: /usr/openv/var/global/reports/20140527_164901_backup
Gather DONE
Execution time: 24 secs
To create a report for this master server, run the following:
nbdeployutil --report --capacity /usr/openv/var/global/reports/20140527_164901_backup
STEP 2
-bash-3.00# /usr/openv/netbackup/bin/admincmd/nbdeployutil --report --capacity /usr/openv/var/global/reports/20140527_164901_backup
NetBackup Deployment Utility, version 7.5_EEB1_PET3406793_SET3406831
Analyzing license deployment ...
Master backup
Report created at: /usr/openv/var/global/reports/20140527_164901_backup/report-capacity-backup-20140527_165038.xls
Analysis DONE
Execution time: 1 min 32 secs
I wasn't aware about the need of running it in two steps and it seems that it was just that. I open the .xls file and it was perfect.
Thanks a lot for your help,
Marcos