Showing posts with label Netbackup client test. Show all posts
Showing posts with label Netbackup client test. Show all posts

Friday, April 18, 2008

Veritas Netbackup handy command

To release a tape if it is full...
\volmgr\bin\vmquery -m to check the tape and take note of the status at the bottom...
\volmgr\bin\vmquery -deassignbyid ie. vmquery -deassignbyid 0x0
\NetBackup\bin\admincmd\bpexpdate -m -d 0 (Expires a tape from the database)
Check which schedules do not cover drives/mount points from servers.
\NetBackup\bin\goodies\check_coverage
Grep these results for frozen tapes etc
\NetBackup\bin\goodies\available_media
Convert ctime to real date/time
\NetBackup\bin\bpdbm -ctime xxxxxxxxxx
Checks for errors encountered
\NetBackup\bin\admincmd\bperror -problems -hoursago 24 -U
Lists the error code and resolution
\NetBackup\bin\admincmd\bperror -S -r
Backup Status
\NetBackup\bin\admincmd\bperror -U -backstat -s info -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Client Backups
\NetBackup\bin\admincmd\bpimagelist -U [-A-client name] -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Problems Report
\NetBackup\bin\admincmd\bperror -U -problems -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
All Log Entries
\NetBackup\bin\admincmd\bperror -U -all -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Media List
\NetBackup\bin\admincmd\bpmedialist -U -mlist [-m media ID]
Media Contents
\NetBackup\bin\admincmd\bpmedialist -U -mcontents [-m media ID]
Images on Media
\NetBackup\bin\admincmd\bpimmedia -U -client ([-mediaid media_ID [-m media_ID NBU 3.2])
Media Log Entries
\NetBackup\bin\admincmd\bperror -U -media -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Media Summary
\NetBackup\bin\admincmd\bpmedialist -summary
Media Written
\NetBackup\bin\admincmd\bpimagelist -A -media -d mo/da/yr hr:mn:sc -e mo/da/yr hr:mn:sc
Volume detail
\volmgr\bin\vmquery -a
Check Robotics contents from the command line
\volmgr\bin\vmcheckxxx -rt -rn -rh

VERITAS netbackup test client connection

Veritas NetBackup (tm) 6.0 supplies a new command to test connections to clients. This command is the bptestbpcd command. This command is helpful because, unlike ping or nslookup, it tests for connection to a NetBackup Client using client connection options at the NetBackup communication level. Parameter switches allow a user to target a NetBackup Client or a host. Connection using the different Client Connect Options can also be tested. Troubleshooting is made easier by including the -verbose and -debug switches.


TO TEST DEFAULT CLIENT CONNECTIONS USING BPTESTBPCD
1. From a Windows command prompt change into the \veritas\netbackup\bin\admincmd directory, or in a UNIX console window, change into the /usr/openv/netbackup/bin/admincmd directory.
2. Type bptestbpcd /? to list the command parameters.
3. Run the command bptestbpcd -client xxxx (where xxxx is a clientname) to test connection to a client.
4. To view further details, run the command #bptestbpcd -client xxxx -verbose (where xxxx is a clientname).
5. To trace through the connection process, run the command bptestbpcd -client xxxx -debug (where xxxx is a clientname).

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...