02-26-2016 11:11 PM
We are currently using the NetBackup Administration Console v7.1
I am a fresher and I have been given the following tasks to complete
1.
I know how to perform this action
For a specific client
Report>Client backups>Choose client name>Set specific time periods to 24 hours> run report
I have been asked to automate the the running of this report every 24 hours and make it so that the report goes to specific email. I don't know how to do this.
2.
I have also been asked to create a way that netbackup admin console sends out a mail in every 24 hours detailing every job for every client.
3.
Check for the Robots: Update the Volume configuration and send out a mail in every 24 hour
4.
Check for the Scratch tape count at Media and send out a mail in every 24 hour
5.
In the Device Monitor check for all the drives are UP and send out a mail in every 24 hour
There has to be one mail for 3,4 and 5
I have to configure this for 4~5 different master servers.
Can anybody please help?
Solved! Go to Solution.
02-27-2016 12:20 AM
02-27-2016 12:20 AM
02-27-2016 12:47 AM
02-27-2016 01:43 AM
If you won't use Opscenter then you will need to have some command line scripts running - it's easier on Unix than it is on Windows as Unix has a command line mail program and you could run the scripts via cron then run a cronjob to mail the outputs too.
You will need a command line mail program in Windows to send the output of your customer scripts- do you have such a mail program?
If not, then you are going to find it extremely difficult!
Get Opscenter - it's free for the non-analytics version
02-27-2016 09:45 PM
03-01-2016 08:34 AM
NetBackup comes with reports that do some of this.
"mail_bp_reports.sh" has a TON of information.
I run this within a script to generate an error report, I got fancy and do 24 hours each day but monday, when I do 72:
# get day of the week to determine hours to report
mydate=`date +%w`
if [ $mydate == 1 ]
then
h=72
else
h=24
fi
# generate report
/usr/openv/netbackup/bin/admincmd/bperror -U -backstat -hoursago $h -by_statcode >> output.file
Send output.file to someone who cares.
Here is a portions of a script to update robots and output scratch tape count:
update robots and save as variable to print:
LOG0=`/usr/openv/volmgr/bin/vmupdate -rt acs -rn 0 -use_barcode_rules -rh robotcontrol 2>&1`
LOG3=`/usr/openv/volmgr/bin/vmupdate -rt acs -rn 3 -use_barcode_rules -h master -rh robotcontrolhost 2>&1`
LOG4=`/usr/openv/volmgr/bin/vmupdate -rt tld -rn 4 -use_barcode_rules -h master -rh robotcontrolhost 2>&1`
LOG5=`/usr/openv/volmgr/bin/vmupdate -rt tld -rn 5 -use_barcode_rules -h master -rh robotcontrolhost 2>&1`
LOG6=`/usr/openv/volmgr/bin/vmupdate -rt tld -rn 6 -use_barcode_rules -h master -rh robotcontrolhost 2>&1`
Scratch tapes can be found like this:
SCRATCH6=`/usr/openv/volmgr/bin/vmquery -pn scratch_pool -b | grep "TLD 6" | /usr/bin/wc -l`
run the command at the OS to determine what to grep for to catch each robot.
03-01-2016 04:22 PM
03-02-2016 03:49 AM