Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What are some of the command line shortcuts for NetBackup?

Command Line

What are some of the command line shortcuts for NetBackup?

by  PGPhantom  Posted    (Edited  )
- To release a tape if it is full...
<install_dir>\volmgr\bin\vmquery -m <media ID> to check the tape and take note of the status at the bottom...
<install_dir>\volmgr\bin\vmquery -deassignbyid <media ID> <poolnum> <statusnum> ie. vmquery -deassignbyid <media ID> <pool_num> 0x0
<install_dir>\NetBackup\bin\admincmd\bpexpdate -m <media ID> -d 0 (Expires a tape from the database)
- Check which schedules do not cover drives/mount points from servers.
<install_dir>\NetBackup\bin\goodies\check_coverage
- Grep these results for frozen tapes etc
<install_dir>\NetBackup\bin\goodies\available_media
- Convert ctime to real date/time
<install_dir>\NetBackup\bin\bpdbm -ctime xxxxxxxxxx
- Checks for errors encountered
<install_dir>\NetBackup\bin\admincmd\bperror -problems -hoursago 24 -U
- Lists the error code and resolution
<install_dir>\NetBackup\bin\admincmd\bperror -S <error code> -r
- Backup Status
<install_dir>\NetBackup\bin\admincmd\bperror -U -backstat -s info -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
- Client Backups
<install_dir>\NetBackup\bin\admincmd\bpimagelist -U [-A|-client name] -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
- Problems Report
<install_dir>\NetBackup\bin\admincmd\bperror -U -problems -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
- All Log Entries
<install_dir>\NetBackup\bin\admincmd\bperror -U -all -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
- Media List
<install_dir>\NetBackup\bin\admincmd\bpmedialist -U -mlist [-m media ID]
- Media Contents
<install_dir>\NetBackup\bin\admincmd\bpmedialist -U -mcontents [-m media ID]
- Images on Media
<install_dir>\NetBackup\bin\admincmd\bpimmedia -U -client <client_name> ([-mediaid media_ID [|-m media_ID NBU 3.2])
- Media Log Entries
<install_dir>\NetBackup\bin\admincmd\bperror -U -media -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
- Media Summary
<install_dir>\NetBackup\bin\admincmd\bpmedialist -summary
- Media Written
<install_dir>\NetBackup\bin\admincmd\bpimagelist -A -media -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
- Volume detail
<install_dir>\volmgr\bin\vmquery -a
- Check Robotics contents from the command line
<install_dir>\volmgr\bin\vmcheckxxx -rt <Robot Type> -rn <Robot number> -rh <Robot Host>
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top