04-28-2017 11:23 AM
Greetings All - Is there a way to identify a write protected tape from netbackup as i do not have library console IP , would like to check the status.
Solved! Go to Solution.
04-28-2017 11:47 AM - edited 04-28-2017 11:50 AM
I run this once a day in crontab:
find /usr/openv/netbackup/logs/bptm -mtime -1 -type f | xargs grep "write protected" > /tmp/freeze.grep && mailx -s "write protected media found" userid@mycompany.com
A sample email:
/usr/openv/netbackup/logs/bptm/root.092416_00001.log:04:01:35.212 [31851006] <16> mount_open_media: error requesting media, TpErrno = Request terminated because media is write protected
/usr/openv/netbackup/logs/bptm/root.092416_00001.log:04:01:35.216 [31851006] <16> write_backup: FREEZING media id R20261, it is write protected and cannot be used for backups
04-28-2017 11:29 AM
Only that when it tries to use it you'll get a message in the bptm log and the tape will get frozen.
04-28-2017 11:45 AM
will bptm report anything as write protected or keyword i can look for in the logs ?
04-28-2017 11:47 AM - edited 04-28-2017 11:50 AM
I run this once a day in crontab:
find /usr/openv/netbackup/logs/bptm -mtime -1 -type f | xargs grep "write protected" > /tmp/freeze.grep && mailx -s "write protected media found" userid@mycompany.com
A sample email:
/usr/openv/netbackup/logs/bptm/root.092416_00001.log:04:01:35.212 [31851006] <16> mount_open_media: error requesting media, TpErrno = Request terminated because media is write protected
/usr/openv/netbackup/logs/bptm/root.092416_00001.log:04:01:35.216 [31851006] <16> write_backup: FREEZING media id R20261, it is write protected and cannot be used for backups
04-28-2017 12:44 PM
Thanks , let me check my logs and update you.
05-02-2017 05:49 AM