Difference between revisions of "Netbackup command line"

From MyWiki
Jump to: navigation, search
(Blanked the page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<source lang="text">
 
/bpimagelist -U -client client1 -d 12/01/2011 -e 12/25/2011
 
bpdbjobs -report
 
bplist -R 99 -C womble -l -k womble_disk -t 5 -s 11/29/2010 09:00:00 -e 11/29/2010 09:45 -I "/"  ( t 5 worked for Windows )
 
bplist -R 1 -C haries -I "/"
 
bpplclients -allunique -l
 
## From web examples
 
I would like to propose a set of "golden rules" for bplist command:
 
  1. Always specify policy type (-t).
 
  2. Always provide relevand data range (-s, -d).
 
  3. Mind the listing recursiveness (-R) as it may be too verbose when you just put the "/" or it may not show anything for non-file like backup types.
 
  4. Provide as many other details as possible to speed up the search.
 
Template for good examples:
 
bplist -C <ClientName> -S <MasterServer> -t <PolicyType> -k <PolicyName> -s MM/DD/YYYY HH:MM:SS -e MM/DD/YYYY HH:MM:SS -R /
 
That may result in something like:
 
bplist -C MyClient -S MyMaster -t 4 -k OraclePolicyName -s 08/08/2014 08:00:00 -e 09/09/2014 08:00:00 -R /
 
>> bpclimagelist -U -client server1-bak
 
  
</source>
 
'''Some good stuff here :''' http://nixguru.wordpress.com/2012/11/21/netbackup-important-commands-and-explanations/<br>
 
nbemmcmd -listmedia -mediaid AAA030<br>
 
bppllist ( lists the policies ) <br>
 
bpimagelist -d 10/01/2014 -e 10/30/2014 -policy haries_UR3_4<br>
 
bperror<br>
 
bperrror –U –problems –hoursago 1 ( Lists errors ) <br>
 
bperror –U –backstat -by_statcode -hoursago 1<br>
 
 
 
 
'''<big>Reference - https://support.symantec.com/en_US/article.TECH20462.html</big>'''
 
 
'''Command Line Interface for NetBackup Reports'''
 
'''Note:'''
 
<start_date> and <end_date> syntax: MM/DD/YY
 
<start_time> and <end_time> syntax: hh:mm:ss
 
<media_id> is the six-character media identification number
 
 
'''Backup status report'''<br>
 
Backup Status Report
 
The Backup Status report shows status and error information on jobs completed within the specified time period. If an error has occurred, a short explanation of the error is included. 
 
# cd /usr/openv/netbackup/bin/admincmd
 
# ./bperror -U -backstat -s info [-d <start_date> <start_time> -e <end_date> <end_time>]
 
 
Client Backups Report
 
The Client Backups report shows detailed information on backups completed within the specified time period. 
 
# cd /usr/openv/netbackup/bin/admincmd
 
# ./bpimagelist -U [-A|-client name] [-d <start_date> <start_time> -e <end_date> <end_time>]
 
 
Problems Report
 
The Problems report lists the problems that the server has logged during the specified time period. This information is a subset of the information you get from the All Log Entries report.
 
# cd /usr/openv/netbackup/bin/admincmd
 
# ./bperror -U -problems [-d <start_date> <start_time> -e <end_date> <end_time>]
 
 
'''Dealing with orphaned resource allocations'''<br>
 
<source lang="text">
 
There may be orphaned resource allocations.
 
 
If the orphaned allocation can be seen in the 'MDS Allocations' section of 'nbrbutil -dump' output,
 
this allocation can be released with 'nbrbutil -releaseMDS <id> '
 
 
Sometimes these orphaned allocations are hidden and can only be released with 'nbrbutil -resetall'.
 
 
There should be no backups active when this command is run.
 
 
</source>
 

Latest revision as of 14:52, 4 June 2021