SheltonQ
8 years agoLevel 4
Write Protected Tape
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.
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