Video Screencast Help

Email notifications and scheduled actions

Created: 19 May 2010 | 4 comments
Virtual_Geek's picture

Hi all,

I'm trying to figure out how to create two email notifications and one scheduled task.

The first email will be sent once all backup jobs are complete and email will notify me of what media was used, the second is to tell me the results of a scheduled inventory run in the late afternoon.

Is this possible and what are the commands please?


Comments 4 CommentsJump to latest comment

Jase.L's picture

There is a command called mail_bp_reports in the /usr/openv/netbackup/bin/goodies directory that works for unix..
Never been much into windows but i'm sure there's something similar in the c:\<installed-path>\netbackuip\bin\goodies

As for doing an inventory and reporting the changes I've got something similar set up (again on a unix machine) that would work..
 which looks like this

case "$HARDWARE" in
        CD4000) MAIL=/usr/ucb/mail ;;
        SGI)    MAIL=/usr/sbin/Mail ;;
        SUN4)   MAIL=/usr/ucb/mail ;;

/opt/openv/volmgr/bin/vmupdate -rt tld -rn 0 -use_barcode_rules > $OUTFILE
cat $OUTFILE | $MAIL -s "Netbackup Inventry output" $WHOTO

i've just put this into a cron script to run every night, 5 mins before the first backup and it works like a charm.

Hope this helps

J.H Is gone's picture


# Netbackup tape written report

/usr/openv/netbackup/bin/admincmd/bpimagelist -A -media -hoursago 20 > /opt/openv/scripts/temp/tapeswritten.out

mail -s "Bryan Tapes Written Report" < /opt/openv/scripts/temp/tapeswritten.out

I use cron and have it run, or you could use parent_end_notify and when your morning catalog is done have it run.

hoursago would be based on daily or weekend  would be longer, so you may have to add a if statment based on day for a 72 hour span.

I don't have to know how to spell....I work on Unix.
NetBackup 7.0.1 - AIX & Windows

Virtual_Geek's picture

Thanks for the replies, I should have mentioned I am looking for notifications in Windows.


Jase.L's picture

take a look in the goodies directory... might be something in there you can use..