You are on page 1of 5

Netbackup Cheat Sheet

Netbackup

Cheat

Sheet

Netbackup......................................................................................................................................................................1
Cheat..............................................................................................................................................................................1
Sheet...............................................................................................................................................................................1
Netbackup Services/Daemons/Processes...................................................................................................................2
NBU Communication Stuff ......................................................................................................................................2
Tape Stuff..................................................................................................................................................................2
Backup Stuff..............................................................................................................................................................3
Log Stuff....................................................................................................................................................................3
Drive and Device configuration Stuff........................................................................................................................4
Fixing Drives that are in a DOWN / PEND ACS state..........................................................................................4
Changing Retention period of a volume/tape/media/image.......................................................................................5
Commands to change the expiration of images on Tape and Disk........................................................................5

Jason M McColl Page 1 01/10/2009


Netbackup Cheat Sheet

Netbackup Services/Daemons/Processes
Checking the status of Netbackup 5.x servers
# ./usr/openv/Netbackup/bin/bpps -a

Checking the status of Netbackup 6 servers


# ./usr/openv/netbackup/bin/bpps –x

Starting Netbackup processes on a UNIX server


# ./usr/openv/netbackup/bin/goodies/netbackup start

Starting Netbackup processes on a Windows server


D:\System\VERITAS\NetBackup\bin\bpup –f –v

NBU Communication Stuff


The following tests should be performed between the client, media and master servers if access can be
obtained

Returns networking information on local host (itself)


# ./usr/openv/netbackup/bin/bpclntcmd –self

Returns information received from remote machine (reverse lookup)


# ./usr/openv/netbackup/bin/bpclntcmd –ip <server ip>

Returns information received from remote machine (forward lookup)


# ./usr/openv/netbackup/bin/bpclntcmd –hn <hostname>

Returns information received from master on what it believes local information is


# ./usr/openv/netbackup/bin/bpclntcmd –pn

The resulting values should be the same when the commands are run from the media to the client and
the client to the media (preferably BACKLAN addresses).

Tape Stuff
Determining the Server Host, Expiration and STATUS of a specific tape
# ./usr/openv/netbackup/bin/admincmd/bpmedialist –m {media_id}

Suspends specified media id (can only be restored from)


# ./usr/openv/netbackup/bin/admincmd/bpmedia –suspend –m {media_id}

Un-suspends specified media id


# ./usr/openv/netbackup/bin/admincmd/bpmedia –unsuspend –m {media_id}

Check to see how many tapes are available in the Scratch pool
# ./usr/openv/volmgr/bin/vmquery –pn Scratch | grep –c "robot slot"

Jason M McColl Page 2 01/10/2009


Netbackup Cheat Sheet

Backup Stuff
Check to see if server is being backed up and which policy(s) being used
# ./usr/openv/netbackup/bin/admincmd/bpcoverage –c {client_name}

Checking the settings of a Policy


# ./usr/openv/netbackup/bin/admincmd/bppllist –L {policy_name}

Check to see what a Status code is and the recommendations are


# ./usr/openv/netbackup/bin/admincmd/bperror –S {status_code} –r

Command to set your path on the Unix systems to prevent having to type the full path (run in order)
#PATH=$PATH\:/usr/bin:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd:/usr/openv/volm
gr/bin:/usr/openv/netbackup/bin/goodies
# export PATH

Log Stuff
Checking the status of failed backup jobs over specified period of time
# ./usr/openv/netbackup/bin/admincmd/bperror -U -columns 300 -backstat -hoursago 2 | egrep -v "^[ ]
*0|^[ ]*1 "

Problem Report from the last 1 hour


# ./usr/openv/netbackup/bin/admincmd/bperror -problems -hoursago 1 -U

All Log Entries from the last 1 hour:-


# ./usr/openv/Netbackup/bin/admincmd/bperror -all -hoursago 1

Summary of all current, queued and finished jobs


# ./usr/openv/Netbackup/bin/admincmd/bpdbjobs –summary

Jason M McColl Page 3 01/10/2009


Netbackup Cheat Sheet

Drive and Device configuration Stuff

Provides output to stdout for current config


# ./usr/openv/volmgr/bin/tpconfig –d

Provides output of full drive name of config


# ./usr/openv/volmgr/bin/tpconfig –dl

Provides output of devices seen by host O/S


# ./usr/openv/volmgr/bin/scan

Reports on any drive dispcrepancies


# ./usr/openv/volmgr/bin/tpautoconf –report_disc

Provides host status/device status/pending requests


Use this on Netbackup 5.x only
# ./usr/openv/volmgr/bin/vmoprcmd -d
Use this on Netbackup 6 and above
# ./usr/openv/volmgr/bin/vmoprcmd –d –h {hostname}

Provides host status with full path output for drives


# ./usr/openv/volmgr/bin/vmoprcmd –devconfig –l –h {hostname}

Provides drive status with assigned hosts for SSO (Shared Storage Option – Shared Drives)
# ./usr/openv/volmgr/bin/vmdareq –a

Fixing Drives that are in a DOWN / PEND ACS state

# ./usr/openv/volmgr/bin/vmoprcmd -h {media server}


# ./usr/openv/volmgr/bin/vmoprcmd -h {media server} -reset {drive index}
# ./usr/openv/volmgr/bin/vmoprcmd -h {media server} -up {drive index}
# ./usr/openv/volmgr/bin/vmoprcmd -SSOdisplay {physical drive name}
# ./usr/openv/volmgr/bin/vmoprcmd -crawlreleasebyname {physical drive name}
# ./usr/openv/volmgr/bin/vmoprcmd -h {media server} -reset {drive index}
# ./usr/openv/volmgr/bin/vmoprcmd -h {media server} -up {drive index}
# ./usr/openv/volmgr/bin/vmoprcmd -h {media server}

Jason M McColl Page 4 01/10/2009


Netbackup Cheat Sheet

Changing Retention period of a volume/tape/media/image


The information that you will require to change the expiration date on a image or tape is as follows:

1. Determine where the image is stored TAPE/DISK


a. if DISK go to Step 3
2. Identify which image
a. by policy, use Step 1
b. if tape is known use Step 2
3. Change the expiry
a. if multiple images on tape or on DISK use Step 3
b. if single image use Step 4

Commands to change the expiration of images on Tape and Disk

1. Provides a list of all images for a specific policy with expiry information

# ./usr/openv/netbackup/bin/admincmd/bpimagelist –U –policy {policy_name}


# ./usr/openv/netbackup/bin/admincmd/bpimagelist -l -policy {policy_name} | grep IMAGE

2. Checking the stored backup images on a specific tape

# ./usr/openv/netbackup/bin/admincmd/bpimmedia -l -mediaid {media_id} | grep IMAGE


Output is:
IMAGE - Identifies the start of an image entry
Client - Client for the backup that produced this image
Version - Image-version level
Backup-ID - Unique identifier for the backup that produced this image
Policy - Policy name
Policy type - 0 denotes Standard, 13 denotes Windows
Schedule - Schedule name
Type - Schedule type (full, etc.)
RL - Retention level (0..24)
Files - Number of files backed up
Expires - Expiration date of the first copy, 0 denotes an image “in progress” or failed.
Compression; 1 (yes) or 0(no)
Encryption; 1 (yes) or 0(no)

3. Changing the expiry on an image

# ./usr/openv/Netbackup/bin/admincmd/bpexpdate -backupid {backup id} -d <DD/MM/YYYY HH:MM:SS


AM/PM -client {name}-force -M {master_server}

4. Changing the expiry period on a whole tape

# ./usr/openv/netbackup/bin/admincmd/bpexpdate –m {media_id} –d MM/DD/YYYY HH:MM:SS

Jason M McColl Page 5 01/10/2009