Being a NetBackup backup administrator we should know minimum commands to manage our regular tasks with a simple CLI commands, here I listed few which should know by every NetBackup administrator.
Master Server
1) Check the license details
/usr/openv/netbackup/bin/admincmd/get_license_key
/usr/openv/netbackup/bin/admincmd/get_license_key
2) Stop and Start the netabackup services
WINDOWS:
Stop the NetBackup Services.
start the NetBackup Services.
UNIX:
i) /etc/init.d/netbackup stop (start) —> graceful stop and start
ii) /usr/openv/netbackup/bin/bp.kill_all —> Stop backup including GUI sessions, ungraceful
iii) /usr/openv/netbackup/bin/bp.start_all —> Start the backup
i) /etc/init.d/netbackup stop (start) —> graceful stop and start
ii) /usr/openv/netbackup/bin/bp.kill_all —> Stop backup including GUI sessions, ungraceful
iii) /usr/openv/netbackup/bin/bp.start_all —> Start the backup
iv) /usr/openv/netbackup/bin/initbprd —> starts the master server
v) /usr/openv/netbackup/bin/vmd —> starts the media server
vi) /usr/openv/netbackup/bin/jnbSA —> Starts the GUI sessions
v) /usr/openv/netbackup/bin/vmd —> starts the media server
vi) /usr/openv/netbackup/bin/jnbSA —> Starts the GUI sessions
3) Scan the tape devices
#sgscan (in Solaris)
#sgscan (in Solaris)
#/usr/openv/volmgr/bin/scan (in AIX)
4) Display all the netbackup process
#bpps –x
#bpps –x
5) Check the backup status
In GUI —> Activity monitor
In CLI —> #bpdbjobs -report
In GUI —> Activity monitor
In CLI —> #bpdbjobs -report
6) Lists the server errors
#bperror
#bperrror –U –problems –hoursago 1
#bperror –U –backstat -by_statcode -hoursago 1
#bperror
#bperrror –U –problems –hoursago 1
#bperror –U –backstat -by_statcode -hoursago 1
7) Display information about the error code
#bperror –S
#bperror –S
8) Reread bp.conf file without stop/start the netbackup
#bprdreq -rereadconfig
#bprdreq -rereadconfig
Media Server (starts with bpxxx )
1) List the storage units
#bpstulist –U
1) List the storage units
#bpstulist –U
2) List media details
# /usr/openv/netbackup/bin/goodies/available_media
This cmd is retrieving all info about media that is available/full/expired/Frozen
3) List all the netbackup jobs
#bpdbjobs –report
4) Freeze or Unfreeze media
In CLI, #bpmedia –unfreeze [-freeze] –ev
5) List media details
#bpmedialist -ev
6) List the media contents
#bpmedialist –U –mcontents –m
#bpmedialist –U –mcontents –m
7) List the information about NB images on media
#bpimmedia –mediaid
8) List backup image information
#bpimagelist -U (general)
# bpimagelist -media –U (for media)
9) Expire a tape
# bpexpdate –d 0 –ev
10) Expire client images
#bpimage –cleanup –allclients
11) Which tapes are used for taking backup
In GUI, Backup and Restore –> Find the Filesystem –> Preview Media Button
In CLI, #bpimagelist –media –U
Volume Commands (starts with vmxxx)
1) Tape Drive (vmoprcmd)
1) List the drive status, detail drive info and pending requests
In GUI, Device mgmt
In CLI, #vmoprcmd
#vmoprcmd –d ds (status)
#vmopcrmd –d pr (pending requests)
2) Control a tape device
In GUI, Device mgmt
In CLI, #vmoprcmd [-reset] [-up] [-down]
2) Tape Media commands (vmpool,vmquery,vmchange,vmdelete)
1) List all the pools
In CLI, #vmpool –listall -bx
In CLI, #vmpool –listall -bx
2) List the scratch pool available
#vmpool -list_scratch
3) List tapes in pool
In CLI, #vmquery –pn
4) List all tapes in the robot
In CLI, #vmquery –rn 0 –bx
In CLI, #vmquery –rn 0 –bx
5) List cleaning tapes
In CLI, #vmquery –mt dlt_clean –bx
6) List tape volume details
#vmquery –m
7) Delete a volume from the catalog
#vmdelete –m
8) Changes a tapes expiry date
#vmchange -exp 12/31/2012 hr:mm:ss –m
9) Changes a tape’s media pool
#vmchange -p
3) Tape/Robot commands (starts with tpxxx)
1) List the tape drives
#tpconfig –d
1) List the tape drives
#tpconfig –d
2) List the cleaning times on drives
#tpclean -L
3) Clean a drive
#tpclean –C
Client Commands
i) List the clients
#bpplclients
i) List the clients
#bpplclients
Policy Commands
i) List the policies
#bppllist –U
i) List the policies
#bppllist –U
ii) List the detailed information about the policies
#bpplist –U -allpolicies
Client Verification after installing NB client Software :
Verify
name resolution for NetBackup systems, using the "bpclntcmd"
command
1. Bpclntcmd options that are useful for testing the
functionality of the host name and IP address resolution are -hn, -ip, and -pn.
bpclntcmd -hn
Hostname
C:\Program
Files\VERITAS\NetBackup\bin>bpclntcmd -hn client
bpclntcmd -ip
IP_Address
C:\Program
Files\VERITAS\NetBackup\bin>bpclntcmd -ip 10.82.108.42
C:\Program
Files\VERITAS\NetBackup\bin>bpclntcmd -pn
expecting response from server master
client.domain.com client 10.80.100.40 1117
2. bptestbpcd
— test bpcd connections and verify connect options
bptestbpcd [-host
hostname] [-client client_name] [-M server]
0 Comment to "Netbackup (CLI) Important Commands (Useful Commands) and Explanations"
Post a Comment