Some of Useful Netbackup Commands :-
Commmand reference :
=====================
To delete media server :
#nbemmcmd -deletehost -machinename dpxsch2 -machinetype media
To add media Server :
===================
# nbemmcmd -addhost -machinename <hostname> -machinetype <type> -masterserver <master_hostname> -operatingsystem <os> -netbackupversion <version>
To get a bp.conf from windows
============================
#bpgetconfig -M <windows server> > /tmp/bp.conf.<windows server>
To update bp.conf in windows
============================
-
#bpsetconfig -h <windows server> /tmp/bp.conf.<windows server>
Backup Status
===================
#/usr/openv/netbackup/bin/admincmd/bperror -U -backstat -s info -d mm/dd/yy hh:mm:ss -e mm/dd/yy hh:mm:ss
Client Backups
===================
#/usr/openv/netbackup/bin/admincmd/bpimagelist -A -d mm/dd/yy hh:mm:ss -e mm/dd/yy hh:mm:ss
Problems
===================
#/usr/openv/netbackup/bin/admincmd/bperror -U -problems -d mm/dd/yy hh:mm:ss -e mm/dd/yy hh:mm:ss
All Log Entries
===================
#/usr/openv/netbackup/bin/admincmd/bperror -U -all -d mm/dd/yy hh:mm:ss -e mm/dd/yy hh:mm:ss
Media Related Commands
===================
Media list ----- #/usr/openv/netbackup/bin/admincmd/bpmedialist -U -mlist
Media Contents ------ #/usr/openv/netbackup/bin/admincmd/bpmedialist -U -mcontents -ev <media id>
Images On Media ------- #/usr/openv/netbackup/bin/admincmd/bpimmedia -U -mediaid <media id>
Media Log Entries ------- #/usr/openv/netbackup/bin/admincmd/bperror -U -media -d mm/dd/yy hh:mm:ss -e mm/dd/yy hh:mm:ss
Media Summary ------ #/usr/openv/netbackup/bin/admincmd/bpmedialist -summary
Media Written ----- # /usr/openv/netbackup/bin/admincmd/bpimagelist -A -media -d mm/dd/yy hh:mm:ss -e mm/dd/yy hh:mm:ss
To unfreeze frozen media, use the bpmedia command with the following syntax:
For UNIX ------ /usr/openv/netbackup/bin/admincmd/bpmedia -unfreeze -m <mediaID> -h <name of media server that froze media>
For a list of scheduled backups, you can use
================================
#/usr/openv/netbackup/bin/admincmd/nbpemreq -predict -date <mm/dd/yyyy>
SLP related
================
Start SLP ----- for SLPS in SLP1 SLP2 SLP3 SLP4; do #/usr/openv/netbackup/bin/admincmd/nbstlutil active -lifecycle slp-${SLPS} ; done
Stop SLPS ------ for SLPS in SLP1 SLP2 SLP3 SLP4; do #/usr/openv/netbackup/bin/admincmd/nbstlutil inactive -lifecycle slp-${SLPS} ; done
Show pending SLP jobs :
---------------------------------------
for SLPS in SLP1 SLP2 SLP3 SLP4; do #/usr/openv/netbackup/bin/admincmd/nbstlutil active -lifecycle slp-$SLPS ;echo"" ; echo "**** slp-$SLPS ****"; nbstlutil report -lifecycle slp-$SLPS | grep $SLPS ; #/usr/openv/netbackup/bin/admincmd/nbstlutil inactive -lifecycle slp-$SLPS ; done
Show all clients in a departments policy
for policy in `sudo #/usr/openv/netbackup/bin/admincmd/bppllist | grep -i department ; do echo ${policy}; sudo #/usr/openv/netbackup/bin/admincmd/bpplclients ${policy}; echo; done
Storage Life cycle:
---------------------------
Display the information for an incomplete lifecycle image in user-readable output.
# nbstlutil stlilist -U
Display the information for an incomplete lifecycle image.
# nbstlutil stlilist -l
Puredisk Managment:
=============================
Command to change the state of the disk pool to "UP":
---------------------------------------------------------------------------------------
# nbdevconfig -changestate -stype PureDisk -dp Disk_Pool_name -state UP
# nbdevconfig -changestate -stype PureDisk -dp ZZ_Puredisk_DiskPool01 -state UP
Command to "Reset" a disk pool:
------------------------------------------------------
# nbdevconfig -changestate -stype PureDisk -dp Disk_Pool_name -state RESET
# nbdevconfig -changestate -stype PureDisk -dp ZZ_Puredisk_DiskPool01 -state RESET
Disk pool Status:
--------------------
D:\Program Files\Veritas\NetBackup\bin\Admincmd>nbdevquery.exe -listdv -stype PureDisk -U
spoold
slpad
pdweb-error
located at /Storgae/log
var/log/messages
DRIVE STATUS :
==============
Error Recovery:
==============
To recover a device that is reserved by an HBA that crashes or otherwise was unable to issue the SCSI release command, you can use the following option for the Media Manager vmoprcmd command:
#vmoprcmd -crawlreleasebyname drive_name
Retention recalculation:
=======================
#D:\Program Files\Veritas\NetBackup\bin\Admincmd>bpimagelist -client kurfpsp1 -d 04/07/2014 00:00:00 -e 05/23/2014 00:00:00
delete jobs
==========
WINDOWS Master:
<install path>\netbackup\bin\admincmd\bpdbjobs -cancel <job-id>
<install path>\netbackup\bin\admincmd\bpdbjobs -delete <job-id>
UNIX Master
/usr/openv/netbackup/bin/admincmd/bpdbjobs -cancel <job-id>
/usr/openv/netbackup/bin/admincmd/bpdbjobs -delete <job-id>
To get the details of Image
------------------------------------------
#/usr/openv/netbackup/bin/admincmd/bpimagelist -d 01/01/2014 -client host23 -U -policy host23_daily
#sudo bpimagelist -d 03/25/2014 -client testdb -U -policy cold_backup_devdb1
#sudo bpexpdate -recalculate -backupid testdb_1395843790 -ret 6
#sudo bpimagelist -d 04/10/2014 -client testdb2 -U -policy cold_backup_testdb_cnw
#bpexpdate -recalculate -policy cold_backup_testdb2_cgw -ret 6
#nbemmcmd -listmedia -mediaid -U
Verify media & Expiry
=================
#bpmedialist -m <media_id>
#bpexpdate -m <media_id> -d 0 -force
Robotic Inventory & TAPES availability
=============================
#sudo vmcheckxxx -rt tld -rn 6 -h <MasterServer> -rh <MasterServer>
To map the empty slot
=================
#sudo vmupdate -rt tld -rn 2 -h <MasterServer> -rh <MasterServer> -use_barcode_rules -empty_map
To verify the Scratch Count
=================
#mxkumar@kkmk3:/usr/openv/volmgr/bin $ sudo vmquery -rn 2 -bx | grep -i scratch | wc -l
List scratch tapes available on robot 0 (physical)
===========================================
vmquery -b -pn Scratch | grep -v HCART3
List scratch tapes available on robot 1 (virtual)
===========================================
vmquery -b -pn Scratch | grep -HCART3
Count total number of scratch tapes available
===========================================
#/usr/openv/volmgr/bin/vmquery -pn Scratch | grep -c "robot slot"
List current drive paths that are down
===========================================
#/usr/openv/volmgr/bin/vmoprcmd | grep DOWN
No comments:
Post a Comment