Veritas-bu

[Veritas-bu] FW: How can I list the files from the NBU Catalog if I know the Barcode?

2013-05-22 04:25:19
Subject: [Veritas-bu] FW: How can I list the files from the NBU Catalog if I know the Barcode?
From: Patrick Whelan <Patrick_Whelan AT symantec DOT com>
To: "Jim VandeVegt (Jim.Vandevegt AT physiciansmutual DOT com)" <Jim.Vandevegt AT physiciansmutual DOT com>, "veritas-bu AT mailman.eng.auburn DOT edu" <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Wed, 22 May 2013 09:24:43 +0100

Sorry, two typos. Should be:

for i in <media id 1> <media id2> …; do bpimmedia -U -mediaid $i | grep Backup |  awk '{ print $NF }' | awk -F_ '{ print $1,$2 }' | while read client time; do echo "============ ${client}_${time} ==============="; bpflist -client $client -ut $time -rl 9999; done done | more

 

Many regards,

 

Pat Whelan

Principal Remote Product Specialist - NBU
Business Critical Services
Symantec Corporation 
www.symantec.com
                                                                          

 

Mobile: +44(0) 771 492 3085

Office: +44(0) 118 943 6715

Email: patrick_whelan AT symantec DOT com

                                                           

Description: cid:image001.gif@01C95F60.3A312C10

                                                                          

Description: http://syminfo.ges.symantec.com/marketing/globalcommunications/images/sig_green_bug.gif

 

From: Patrick Whelan
Sent: 22 May 2013 09:17
To: 'Jim VandeVegt'; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] How can I list the files from the NBU Catalog if I know the Barcode?

 

Hi All,

 

If you know the media id(s) and you want a list of all the files on that media you could try the following:

 

for i in cw<media id 1> <media id2> …; do bpimmedia -U -mediaid E03002 | grep Backup |  awk '{ print $NF }' | awk -F_ '{ print $1,$2 }' | while read client time; do echo "============ ${client}_${time} ==============="; bpflist -client $client -ut $time -rl 9999; done done | more

 

Many regards,

 

Pat Whelan

Principal Remote Product Specialist - NBU
Business Critical Services
Symantec Corporation 
www.symantec.com
                                                                          

 

Mobile: +44(0) 771 492 3085

Office: +44(0) 118 943 6715

Email: patrick_whelan AT symantec DOT com

                                                           

Description: cid:image001.gif@01C95F60.3A312C10

                                                                          

Description: http://syminfo.ges.symantec.com/marketing/globalcommunications/images/sig_green_bug.gif

 

From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Jim VandeVegt
Sent: 21 May 2013 19:54
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] How can I list the files from the NBU Catalog if I know the Barcode?

 

[Apologies if the list gets this twice. I think I typed the address wrong the first attempt.]

 

Wayne, my notes for bpflist:

 

List Files on an Image:
# bpflist [ -l | -L | -U ] -backupid ID -rl 999 -d 1/1/2000 -e 1/1/2010 -client CLIENT
# bpflist -l -client {hostname}  -ut {epoch time}  -option GET_ALL_FILES -rl 999

 

I've found that the seemingly optional arguments, like -client on the first example, are not optional at all. It ought to know the client name from the backup ID, but doesn't seem to make the connection. I also included the recursion level. I don't think it defaults to infinity. See if you get better mileage from this,

------------------

Jim VandeVegt | ETG, Solutions Architect; Enterprise UNIX, Backup, & Storage Administration

Physicians Mutual | 2600 Dodge Street | Omaha, NE 68131

402.930.2649 | http://www.PhysiciansMutual.com | Jim.VandeVegt AT PhysiciansMutual DOT com

 

Insurance for all of us.™

health | life | retirement

 


From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of BeDour, Wayne [WBedour AT lear DOT com]
Sent: Tuesday, May 21, 2013 12:36
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] How can I list the files from the NBU Catalog if I know the Barcode?

All:

Our environment, HP-UX 11-31 currently running one master & 1 media server on NetBackup 6.5.2.  We are running mostly unix / Linux backups and a couple windows b/u’s.  Along with an HP Library we are using a VTL on a DataDomain 880.

 

My problem is that a few of our VTL tapes got deleted and re-added on the Data Domain which obviously caused all the data on the tapes to be deleted.  NetBackup still thinks they are valid tapes and they show up in the catalog.  I’ve got the barcodes of the tapes and want to list off the files that were on the tapes.  I’ve tried running a bpimmedia to get the image from the tape and then a bpflist command to list what’s in the image.  The bpflist come back with “no entity was found”  I can’t find a man page or much documentation on the bpflist command so I’m flying blind on this command.  Below is what I’m getting:

#

 # bpimmedia -mediaid D10315 -l

IMAGE hqhp3 8 hqhp3_1321085674 dbn-pkg01-db-bcv-dd 0 dbn-pkg01-db-bcv-dd-df 0 3 15 2147483647 0 0

FRAG 1 1 16794880 0 2 6 4 D10315 hqhp3 262144 343813 0 6 0 *NULL* 2147483647 0 3 1 *NULL*

FRAG 1 2 13540192 0 2 6 1 D10825 hqhp3 262144 2 0 7 0 *NULL* 0 0 3 1 *NULL*

 

#

 # bpimmedia -mediaid D10314 -L

 

Backup-ID            Policy     Type  RL  Files   C  E  T  PC  Expires

Copy Frag    KB Type Density FNum      Off       Host       DWO MPX Expires          RL MediaID

------------------------------------------------------------------------------------------------

 

yos_sam1_1278313201  dbn-pkg21- FULL  9   5025    N  N  R  1   INFINITY     

 1   1 11332800 RMed hcart   6         1460571   hqhp3      9   N   INFINITY         9  D10314

1   2 20093984 RMed hcart   1         2         hqhp3      8                           D10625

 

#

 #

 # bpflist -backupid yos_sam1_1278313201 -d 01/01/2008 -e 12/31/2012

no entity was found

 

 

Has anyone successfully used the bpflist command and if so, is there any doc on the options for bpflist?  Does anyone have any other ideas of how or if I can get a list of files from the catalog images if the tapes themselves are no longer around?

 

Thanks in advance…

 

 

Wayne BeDour

Unix System Administrator

PH: 248-447-1739

Internet: wbedour AT lear DOT com

 

**********************
** LEGAL DISCLAIMER **
**********************
 
This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.
____________________________________________________________
This message and any attachments are confidential, may contain privileged information, and are intended solely for the recipient named above.
If you are not the intended recipient, or a person responsible for delivery to the named recipient, you are notified that any review, distribution, dissemination or copying is prohibited.
If you have received this message in error, you should notify the sender by return email and delete the message from your computer system.
 
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu