4
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) 4) Display all the netbackup process #bpps –x 5) Check the backup status In GUI —> Activity monitor In CLI —> #bpdbjobs –report /usr/openv/netbackup/bin/admincmd/bpdbjobs -report 6) Lists the server errors #bperror #bperror –U –problems –hoursago 1 #bperror –U –backstat -by_statcode -hoursago 1 7) Display information about the error code #bperror –S <statuscode>

Netbackup Important Commands and Explanations

Embed Size (px)

DESCRIPTION

Netbackup Important Commands and Explanations

Citation preview

Netbackup Important Commands and Explanations Master Server1) Check the license details/usr/openv/netbackup/bin/admincmd/get_license_key

2) Stop and Start the netabackup servicesi) /etc/init.d/netbackup stop (start) > graceful stop and startii) /usr/openv/netbackup/bin/bp.kill_all > Stop backup including GUI sessions, ungracefuliii) /usr/openv/netbackup/bin/bp.start_all > Start the backupiv) /usr/openv/netbackup/bin/initbprd > starts the master serverv) /usr/openv/netbackup/bin/vmd > starts the media servervi) /usr/openv/netbackup/bin/jnbSA > Starts the GUI sessions

3) Scan the tape devices#sgscan (in Solaris)4) Display all the netbackup process#bpps x

5) Check the backup statusIn GUI > Activity monitorIn CLI > #bpdbjobs report/usr/openv/netbackup/bin/admincmd/bpdbjobs -report

6) Lists the server errors#bperror#bperror U problems hoursago 1#bperror U backstat -by_statcode -hoursago 1

7) Display information about the error code#bperror S

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_mediaThis 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 mediaIn CLI, #bpmedia unfreeze [-freeze] ev

5) List media details#bpmedialist -ev 6) List the media contents#bpmedialist U mcontents m

7) List the information about NB images on media#bpimmedia mediaid -L

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

9) Expire a tape# bpexpdate d 0 ev -force

10) Expire client images#bpimage cleanup allclients

11) Which tapes are used for taking backupIn GUI, Backup and Restore > Find the Filesystem > Preview Media ButtonIn CLI, #bpimagelist media U

Volume Commands (starts with vmxxx)

1) Tape Drive (vmoprcmd) 1) List the drive status, detail drive info and pending requestsIn GUI, Device mgmtIn CLI, #vmoprcmd#vmoprcmd d ds (status)#vmopcrmd d pr (pending requests)

2) Control a tape deviceIn GUI, Device mgmtIn CLI, #vmoprcmd [-reset] [-up] [-down]

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

2) List the scratch pool available#vmpool -list_scratch

3) List tapes in poolIn CLI, #vmquery pn -bx4) List all tapes in the robotIn CLI, #vmquery rn 0 bx

5) List cleaning tapesIn 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 tapes media pool#vmchange -p -m

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

Client Commandsi) List the clients#bpplclients

Policy Commandsi) List the policies#bppllist U

ii) List the detailed information about the policies#bpplist U allpolicies/usr/openv/netbackup/bin/admincmd/bppllist -allpolicies

http://www.oracle.com/technetwork/articles/servers-storage-admin/howto-map-oldcli-solaris-cluster-1929359.html