NetBackup Command Guide
NetBackup is an enterprise-level distributed backup and recovery application. The environment consists of the master server, media server, storage library, networking hardware, and client agents. NetBackup supports a wide variety of Unix, Linux, VMS, and Windows systems. The original backup solution was developed by Control Data Corp., later acquired by Openvision, which gave the product its “NetBackup” name. NetBackup was then bought by Veritas and is currently owned and supported (poorly) by Symantec.
Daemons and Processes
On the master server there are four NetBackup daemons started in sequence:
- bprd – the request daemon started during system boot
- bpsched – the scheduler daemon started by bprd
- bpdbm – the NetBackup database manager started by bpsched
- bpjobd – the job monitor daemon started by bpdbm
One the media server, there are up to nine NetBackup daemons:
- bpcd – communications daemon started during system boot
- bpbrm - backup and restore manager started by bpcd
- bptm - tape manager started by bpbrm
- bpdm - disk manager started by bpbrm
- ltid - media manager started during system boot
- avrd - bar code reader daemon started by ltid
- vmd - volume manager daemon started by ltid
- tldd - robotic tape library daemon started by ltid
- tldcd - robotic tape library control daemon started by ltid
One the client side, there is one NetBackup daemon started during system boot:
- bpcd – the client daemon, which starts the bpbkar processes for each active backup or restore job
Logs and Configuration Files
Version and patch levels
- NetBackup and patch versions: /opt/openv/netbackup/bin/version
- Patch level history: /opt/openv/netbackup/patch/patch.history
- Media version: /opt/openv/volmgr/version
Configuration Files
- NetBackup configuration: /opt/openv/netbackup/bp.conf
- Media manager configuration: /opt/openv/volmgr/vm.conf
- Buffer size: /opt/openv/netbackup/db/config/SIZE_DATA_BUFFERS
- Number of buffers: /opt/openv/netbackup/db/config/NUMBER_DATA_BUFFERS
- Network buffer size: /opt/openv/netbackup/NET_BUFFER_SZ (default is 32)
- Catalog type: /opt/openv/netbackup/db/config/cat_format.cfg
Access control
- Java GUI authorization: /opt/openv/java/auth.conf
Troubleshooting
- Corrupt database images: /opt/openv/netbackup/db.corrupt
(The following is the corrected and expanded information found at http://www.datadisk.co.uk/html_docs/veritas/veritas_netbackup_cs.htm)
Server Commands
| Check license details | /opt/openv/netbackup/bin/admincmd/get_license_key |
| Start Netbackup | netbackup start
/opt/openv/netbackup/bin/initbprd (master) |
| Stop Netbackup (does not disconnect GUI sessions) | netbackup stop
/opt/openv/netbackup/bin/admincmd/bprdreq -terminate (master) |
| Stop Netbackup and kill all GUI sessions | /opt/openv/netbackup/bin/goodies/bp.kill_all |
| Start the GUI | /opt/openv/netbackup/bin/jnbSA |
| Scan for tape devices | sgscan (solaris) ioscan (HPUX) |
| Display all Netbackup processes | bpps -a |
| lists servers errors |
bperror -U -problems -hoursago |
| display information on a error code | bperror -statuscode |
| Reread bp.conf file without stopping Netbackup | bprdreq -rereadconfig |
| Check database consistency | bpdbm -consistency 1 bpdbm -consistency 2 Check for the below lines: |
|
Netbackup Recovery
|
|
| Device catalog is intact | bprecover -l -m |
| Device catalog is gone or corrupted | bprecover -l -tpath |
| Disk backups | bprecover -l -dpath |
Catalog Commands
|
Master Server
|
|
| Information about backed-up files | image – /opt/openv/netbackup/db |
| Storage Unit, Global Configuration, Catalog backup configuration. | config – /opt/openv/netbackup/db |
| Backup Policy information | class – /opt/openv/netbackup/db |
| Job status information | jobs – /opt/openv/netbackup/db |
| Netbackup logs with error and status information | error – /opt/openv/netbackup/db |
| Information on volumes, volume pools, scratch pool and volume groups | volume – /opt/openv/volmgr/database |
|
Media Server
|
|
| Tracks assigned volumes (media that has data them) | media – /opt/openv/netbackup/db |
| Information about devices managed by the media server | device – /opt/openv/volmgr/database |
Volume Commands
|
Tape Drive and Inventory Commands
|
|
| List drive status, detail drive info and pending requests | vmoprcmd |
| List the tape drive status | vmoprcmd -d ds |
| List the pending requests | vmoprcmd -d pr |
| Control a tape device | vmoprcmd [-reset][-up][-down] |
| List all changes in the robot(but do not update) | vmupdate -recommend -rt tld -rn 0
vmcheckxxx -rt tld -rn 0 -recommend |
| Empty the robot and re-inventory (using barcodes) | vmupdate -rt tld -rn |
|
Tape Media Commands
|
|
| List all pools | vmpool -listall -bx |
| List tapes in pool | vmquery -pn
|
| List all tapes in the robot | vmquery -rn 0 -bx |grep ‘TLD’ | sort +4 |
| List cleaning tapes | vmquery -mt dlt_clean -bx |
| List tape volume details | vmquery -m |
| Delete a volume from the catalog | vmdelete -m |
| Change a tapes expiry date | vmchange -exp 12/31/06 23:59:58 -m |
| Change a tape’s media pool | vmchange -p
|
Media Commands
| List the storage units | bpstulist -U |
| Freeze or unfreeze media | bpmedia [-freeze][-unfreeze] -ev |
| List media details | bpmedialist -ev |
| List media contents | bpmedialist -U mcontents -m |
| List backup Image Information | bpimagelist -backupid |
| Expire client images | bpimage -cleanup -allclients |
| Expire a tape | bpexpdate -d 0 -ev |
| List all netbackups jobs | bpdbjobs -report [-hoursago] |
| Move media from one media server to another | bpmedia -movedb -newserver |
Tape/Robotic Library Commands
| List tape drives | tpconfig -d |
| List cleaning times on drives | tpclean -L |
| clean a drive | tpclean -C |
| change a drives cleaning frequency | tpclean -F |
| set a drives cleaning time to zero | tpclean -M |
| Move tapes within robot using robtest | robtest
commands that can be used are as follows: s s (show slots) |
| List load port tapes | echo “s i q” | tldtest -r /dev/sg/c0t4l0 |
| List all slot contents | echo “s s q” | tldtest -r /dev/sg/c0t4l0 |
| List tape drive contents | echo “s d q” | tldtest -r /dev/sg/c0t4l0 |
| Move a tape in s100 to drive 1 | echo “m s100 d1″ | tldtest -r /dev/sg/c0t4l0 |
| Move a tape to load port 1 | echo “m s100 i1″ | tldtest -r /dev/sg/c0t4l0 |
Archiving Commands
| list archive info | bpcatlist -client all -before Jul 01 2006 bpcatlist -client all -before Aug 01 2006 |
| archive and remove images | bpcatlist -before Jul 01 2006 | bpcatarc | bpcatrm |
| restore archive files | bpcatlist -before Jul 01 2006 | bpcatres |
Client Commands
| test client connectivity | bpclntcmd [-ip bpclntcmd [-sv] |
Popularity: 11% [?]




