Wednesday, 28 November 2012

Netbackup Important Commands and Explanations

Master Server
1) Check the license details
/usr/openv/netbackup/bin/admincmd/get_license_key

2) Stop and Start the netabackup services
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

3) Scan the tape devices
#sgscan (in  Solaris)                                                                                                        
#/usr/openv/volmgr/bin/scan (in AIX)

4) Display all the netbackup process
#bpps –x

5) Check the backup status
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

7) Display information about the error code
#bperror –S <statuscode>

8) Reread bp.conf file without stop/start the netbackup
#bprdreq -rereadconfig

Media Server (starts with bpxxx )
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 <hoursago>

4) Freeze or Unfreeze media
In CLI, #bpmedia –unfreeze [-freeze] –ev <media ID>

5) List media details
#bpmedialist -ev <media
ID>    
                                                          
6) List the media contents
#bpmedialist –U –mcontents –m <mediaID>

7) List the information about NB images on media
#bpimmedia –mediaid <ID> -L

8) List backup image information
#bpimagelist -U (general)
# bpimagelist -media –U (for media)

9) Expire a tape
# bpexpdate –d 0 –ev <mediaID> -force

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] <drive number>

2) Tape Media commands (vmpool,vmquery,vmchange,vmdelete)
1) List all the pools
In CLI, #vmpool –listall -bx

2) List the scratch pool available
#vmpool -list_scratch

3) List tapes in pool
In CLI, #vmquery –pn <pool name> -bx                 
                                                                
4) List all tapes in the robot
In CLI, #vmquery –rn 0 –bx

5) List cleaning tapes
In CLI, #vmquery –mt dlt_clean –bx

6) List tape volume details
#vmquery –m <media ID>

7) Delete a volume from the catalog
#vmdelete –m <mediaID>

8) Changes a tapes expiry date
#vmchange -exp 12/31/2012 hr:mm:ss –m <media ID>

9) Changes a tape’s media pool
#vmchange -p <pool number> -m <media ID>

3) Tape/Robot commands (starts with tpxxx)
1) List the tape drives
#tpconfig –d

2) List the cleaning times on drives
#tpclean -L

3) Clean a drive
#tpclean –C <drive number>

Client Commands
i) List the clients
#bpplclients

Policy Commands
i) List the policies
#bppllist –U

ii) List the detailed information about the policies
#bpplist –U -allpolicies

2 comments:

  1. Cadillacs and Dinosaurs Download Game buy explosive artifacts in the shop; The game for all Zuma/Luxor fans with unlimited gameplay for FREE.

    ReplyDelete