Finding and Unfreezing Media
Created: 30 Oct 2009 | 3 comments
Here is a small script to Find and Unfreeze Media
echo "\n Finding and Unfreezing Media..."
echo "---------------------------------"
/usr/openv/netbackup/bin/goodies/available_media > /tmp/look
cat /tmp/look|grep FROZEN|awk '{print $1}' > /tmp/frozen.a
while read line
do
/usr/openv/netbackup/bin/admincmd/bpmedia -unfreeze -ev $line -h itsbkp04
echo "The Following tape(s) will be unfrozen $line"
done < /tmp/frozen.a
rm /tmp/frozen.a
download Filed Under:
Group Ownership:
Comments
one line command
/usr/openv/netbackup/bin/goodies/available_media |grep FROZEN|awk '{print "/usr/openv/netbackup/bin/admincmd/bpmedia -unfreeze -m "$1" -h itsbkp04"}' |sh -x
romioh
?
What is itsbkp04| sh -x refers too?
HOST NAME
Its the hostname to which the media is assigned to...
Would you like to reply?
Login or Register to post your comment.