Friday, April 18, 2008

Veritas Netbackup handy command

To release a tape if it is full...
\volmgr\bin\vmquery -m to check the tape and take note of the status at the bottom...
\volmgr\bin\vmquery -deassignbyid ie. vmquery -deassignbyid 0x0
\NetBackup\bin\admincmd\bpexpdate -m -d 0 (Expires a tape from the database)
Check which schedules do not cover drives/mount points from servers.
\NetBackup\bin\goodies\check_coverage
Grep these results for frozen tapes etc
\NetBackup\bin\goodies\available_media
Convert ctime to real date/time
\NetBackup\bin\bpdbm -ctime xxxxxxxxxx
Checks for errors encountered
\NetBackup\bin\admincmd\bperror -problems -hoursago 24 -U
Lists the error code and resolution
\NetBackup\bin\admincmd\bperror -S -r
Backup Status
\NetBackup\bin\admincmd\bperror -U -backstat -s info -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Client Backups
\NetBackup\bin\admincmd\bpimagelist -U [-A-client name] -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Problems Report
\NetBackup\bin\admincmd\bperror -U -problems -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
All Log Entries
\NetBackup\bin\admincmd\bperror -U -all -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Media List
\NetBackup\bin\admincmd\bpmedialist -U -mlist [-m media ID]
Media Contents
\NetBackup\bin\admincmd\bpmedialist -U -mcontents [-m media ID]
Images on Media
\NetBackup\bin\admincmd\bpimmedia -U -client ([-mediaid media_ID [-m media_ID NBU 3.2])
Media Log Entries
\NetBackup\bin\admincmd\bperror -U -media -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Media Summary
\NetBackup\bin\admincmd\bpmedialist -summary
Media Written
\NetBackup\bin\admincmd\bpimagelist -A -media -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Volume detail
\volmgr\bin\vmquery -a
Check Robotics contents from the command line
\volmgr\bin\vmcheckxxx -rt -rn -rh