05-19-2010 01:17 AM
05-19-2010 03:06 AM
05-19-2010 09:02 AM
#!/bin/ksh
# 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" someonewhocares@mycompany.com < /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.
05-19-2010 11:30 PM
05-20-2010 03:24 AM