backups

What are some useful NetBackup commands?

To release a tape if it is full
/usr/openv/volmgr/bin/vmquery -m to check the tape and take note of the status at the bottom…
/usr/openv/volmgr/bin/vmquery -deassignbyid ie. vmquery -deassignbyid 0x0
/usr/openv/netbackup/bin/admincmd/bpexpdate -m -d 0 (Expires a tape from the database)

Check which schedules do not cover drives/mount points from servers.
/usr/openv/netbackup/bin/goodies/check_coverage

Grep these results for frozen tapes etc
/usr/openv/netbackup/bin/goodies/available_media

Convert ctime to real date/time
/usr/openv/netbackup/bin/bpdbm -ctime xxxxxxxxxx

Checks for errors encountered
/usr/openv/netbackup/bin/admincmd/bperror -problems -hoursago 24 -U

Lists the error code and resolution
/usr/openv/netbackup/bin/admincmd/bperror -S -r

Backup Status
/usr/openv/netbackup/bin/admincmd/bperror -U -backstat -s info -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc

Client Backups
/usr/openv/netbackup/bin/admincmd/bpimagelist -U [-A|-client name] -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc

Problems Report
/usr/openv/netbackup/bin/admincmd/bperror -U -problems -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc

All Log Entries
/usr/openv/netbackup/bin/admincmd/bperror -U -all -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc

Media List
/usr/openv/netbackup/bin/admincmd/bpmedialist -U -mlist [-m media ID]

Media Contents
/usr/openv/netbackup/bin/admincmd/bpmedialist -U -mcontents [-m media ID]

Images on Media
/usr/openv/netbackup/bin/admincmd/bpimmedia -U -client ([-mediaid media_ID [|-m media_ID NBU 3.2])

Media Log Entries
/usr/openv/netbackup/bin/admincmd/bperror -U -media -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc

Media Summary
/usr/openv/netbackup/bin/admincmd/bpmedialist -summary

Media Written
/usr/openv/netbackup/bin/admincmd/bpimagelist -A -media -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc

Volume detail
/usr/openv/volmgr/bin/vmquery -a

Check Robotics contents from the command line
/usr/openv/volmgr/bin/vmcheckxxx -rt -rn -rh

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top