Veritas-bu

[Veritas-bu] bpflist output field definitions?

2007-09-18 15:10:06
Subject: [Veritas-bu] bpflist output field definitions?
From: "Roger Wilber" <rogerwilber AT gmail DOT com>
To: veritas-bu AT mailman.eng.auburn DOT edu
Date: Tue, 18 Sep 2007 14:46:36 -0400

This might be a little late but this is a script I wrote to pull the path and file names from an GET_ALL_FILES dump from bpflist called convert-nb-manifest.pl.  I couldn't use awk due to the spaces in the file names and then I noticed that there were fields for how long the path and file name was and how far from the end it was.  From that point it was a math problem mainly.


#!/usr/bin/perl
#
# convert-nb-manifest.pl - by Roger Wilber
#
use strict;
use warnings;

my $usage = "\nconvert-nb-manifest.pl <filename>  Where <filename> is a netbackup manifest created using bpflist.\n\n";

my $nargs = $#ARGV + 1;
die $usage if ($nargs < 1);

my $inputfile = $ARGV[0];
chomp $inputfile;
open(DATAFILE, $inputfile) or die "Couldn't open $inputfile.";
LINE: while (<DATAFILE>) {
        chomp;
        next LINE if /^FILE/;
        my $length = (split / /, $_)[2];
        my $negoffset = (split / /, $_)[3];
        my $fulloffset = $negoffset + $length + 1;
        my $fragment = substr $_, -$fulloffset, $length;
        print "$fragment\n";
}


Running that against your test data gives the following:

/bcv/corp/data/vault/tape/archive_southfield/D219 PSA LAYOUT.XIF



On 9/13/07, Bobby Williams <bobbyrjw AT comcast DOT net> wrote:
I would not suggest using bpflist in this case.  Use bplist.
 
You can use the -l and / or -b option to show the size of the file and either the time stamp or the date backed up.
 


Bobby Williams
2205 Peterson Drive
Chattanooga, Tennessee  37421
423-296-8200

 


From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of BeDour, Wayne
Sent: Thursday, September 13, 2007 3:08 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] bpflist output field definitions?

Our environment is HP-UX 11.11, Netbackup 5.1 MP3 backing up mostly HP unix with some Sun and Windows backups. 

I'm trying to find the field definitions for output of bpflist.  I have to pull the path and filename of files backed up and some of our users are using a space in their name.  Below is an example of a "bpflist –option GET_ALL_FILES –class policy-name  -client host-name –d 12/09/01  00:00:00  -e 12/31/10 00:00:00 "  command:

 

76 0 64 56 538839 1 0 0 1075773441 /bcv/corp/data/vault/tape/archive_southfield/D219 PSA LAYOUT.XIF 33188 210014 100 528582 1163080113 1163080113 1189688679

 

The filename ends after the above .XIF.  Two questions,

  1. What is the field containing 33188 ?
  2. Can I be assured that there will always be 6 fields after the file name field?

Thanks in advance.

 

Wayne BeDour

IT Unix System Administrator

PH: 313-240-3374  FAX: 313-240-3065

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.

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu