NetBackup HOWTO's
NBU Howto Site

NetBackup Tips (Command line)

Written on 29 April 2009 – 00:38 by savasirez

1. Inventory a robot (then update)
/usr/openv/volmgr/bin/vmupdate -rt robot_type -rn robot_number -list     (robot_type is tld etc…)

2. Clean a tape drive manually
tpclean -C <drive name>

3. Find backup images of a client for spesific date range.
bpimagelist -U -client <CLIENT_NAME> -d <START_DATE> -e <END_DATE>

4.  Find tape media used for backup of a client for spesific date range.
bpimagelist -U -client <CLIENT_NAME> -d <START_DATE> -e <END_DATE> -media

5. Monitor backup jobs
/usr/openv/netbackup/bin/admincmd/bpdbjobs -report

6. Howto re-use used tape media (That is: to re-use a tape media used by another system or older netbackup software)
“Expire that media”
bpexpdate -ev media_id -d 0 -force -host NBUHostname
“De-assign that media”
vmquery -deassignbyid media_id 4 0
“Move that media to a volume pool (preferably a Scratch pool)”
vmchange -m media_id -p Scratch_Pool_Number
“Re-label that media”
bplabel -ev media_id -d robot_type -p Pool_name

7. Check drive usage
/usr/openv/volmgr/bin/vmoprcmd

8. Take a drive down/up
/usr/openv/volmgr/vmoprcmd -down <drive_index>
/usr/openv/volmgr/vmoprcmd -up <drive_index>

9. Howto unfreeze a media
“Find the frozen media id’s”
/usr/openv/netbackup/bin/goodies/available_media | grep -i frozen
“Unfreeze the media according to the media id found above”
bpmedia -unfreeze -ev <media_id> -h <media_server>

10. Delete a tape media from NetBackup
“Make sure no images exist on the tape”
bpimmedia -mediaid media_id -L
“Expire the tape”
bpexpdate -ev media_id -d 0 -host NBUHostname -force
“Find the pool name of the tape and make sure the status of that tape”
vmquery -m media_id
“De-assign the tape”
vmquery -deassignbyid <media_id> <pool_number> <status from vmquery -m>
vmquery -deassignbyid media_id 4 0×0
“Delete the tape from NetBackup”
vmdelete -m media_id

12. Properties of a volume pool
vmpool -listall

If you liked this site, please support NetBackupHowto

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>