This is a multi-part message in MIME format.
------=_NextPart_000_003A_01C2F49A.BEDEAB40
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_003B_01C2F49A.BEDEAB40"
------=_NextPart_001_003B_01C2F49A.BEDEAB40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi All
I have made a short script that list the files on a media.
Syntax: files_on_tape <mediaid>
files_on_tape script:
#!/bin/ksh
media=3D$1
NBADM=3D/usr/openv/netbackup/bin/admincmd
echo "Media $media contains following files:"
$NBADM/bpimmedia -l -mediaid $media | grep "^IMAGE" | awk {'print $4'} | =
while read BID
do
ctime=3D`echo $BID | sed 's/^.*_//'`
$NBADM/bpflist -l -backupid $BID -ut $ctime | awk {'print $10'}
done
-----Oprindelig meddelelse-----
Fra: O'Shea, Don <Don.OShea AT emergis DOT com>
Til: Veritas-Bu (E-mail) <veritas-bu AT mailman.eng.auburn DOT edu>
Dato: 26. marts 2003 20:32
Emne: [Veritas-bu] CMD Line
=20
=20
Does anyone know what the command line command is to execute a =
report that would give me exact files backed up to a specific tape. I am =
trying to do it through the gui and it takes a long time and I have to =
do it for a bunch of tapes. I don't have much time available so I was =
hoping I could set of a bunch of instances and pipe it out to a file to =
distribute to a user.
Thanks,=20
Don O'Shea=20
BCE Emergis Inc.=20
(905)707-4000 Ext 3765=20
The information contained herein, including any attachments, is =
proprietary and confidential and is intended for the exclusive use of =
the addressee. It also may contain privileged information and/or =
personal information subject to privacy legislation. The authorized =
addressee of this information, by its retention and use, agrees to =
protect the information contained herein from loss, disclosure, theft or =
compromise with at least the same care it employs to protect its own =
confidential information. Any dissemination or use of this information =
by a person other than the intended recipient is unauthorized and may be =
illegal. If you have received this e-mail in error, please notify us =
immediately by reply e-mail and destroy all copies.
=20
=20
------=_NextPart_001_003B_01C2F49A.BEDEAB40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type><TITLE>CMD Line</TITLE><!DOCTYPE HTML PUBLIC =
"-//W3C//DTD HTML 3.2//EN">
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hi All</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I have made a short script that list the files on a=20
media.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Syntax: files_on_tape <mediaid></FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>files_on_tape script:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT face=3D"Courier New" =
size=3D2>
<P>#!/bin/ksh</P>
<P>media=3D$1</P>
<P>NBADM=3D/usr/openv/netbackup/bin/admincmd</P>
<P>echo "Media $media contains following files:"</P>
<P>$NBADM/bpimmedia -l -mediaid $media | grep "^IMAGE" | awk =
{'print=20
$4'} | </P>
<P>while read BID</P>
<P>do</P>
<P>ctime=3D`echo $BID | sed 's/^.*_//'`</P>
<P>$NBADM/bpflist -l -backupid $BID -ut $ctime | awk {'print $10'}</P>
<P>done</FONT></P></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
<DIV><FONT face=3DArial size=3D2><B>-----Oprindelig=20
meddelelse-----</B><BR><B>Fra: </B>O'Shea, Don <<A=20
=
href=3D"mailto:Don.OShea AT emergis DOT com">Don.OShea AT emergis DOT
com</A>><BR><B=
>Til:=20
</B>Veritas-Bu (E-mail) <<A=20
=
href=3D"mailto:veritas-bu AT mailman.eng.auburn DOT edu">veritas-bu AT mailman
DOT eng.=
auburn.edu</A>><BR><B>Dato:=20
</B>26. marts 2003 20:32<BR><B>Emne: </B>[Veritas-bu] CMD=20
Line<BR><BR></DIV></FONT>
<P><FONT face=3DArial size=3D2>Does anyone know what the command =
line command is=20
to execute a report that would give me exact files backed up to a =
specific=20
tape. I am trying to do it through the gui and it takes a long time =
and I=20
have to do it for a bunch of tapes. I don't have much time available =
so I=20
was hoping I could set of a bunch of instances and pipe it out to a =
file to=20
distribute to a user.</FONT></P>
<P><FONT face=3DArial size=3D2>Thanks,</FONT> </P>
<P><FONT face=3DArial size=3D2>Don O'Shea</FONT> <BR><FONT =
face=3DArial size=3D2>BCE=20
Emergis Inc.</FONT> <BR><FONT face=3DArial size=3D2>(905)707-4000 =
Ext=20
3765</FONT> </P>
<P><FONT face=3DArial size=3D2>The information contained herein, =
including any=20
attachments, is proprietary and confidential and is intended for the =
exclusive use of the addressee. It also may contain privileged =
information=20
and/or personal information subject to privacy legislation. The =
authorized=20
addressee of this information, by its retention and use, agrees to =
protect=20
the information contained herein from loss, disclosure, theft or =
compromise=20
with at least the same care it employs to protect its own =
confidential=20
information. Any dissemination or use of this information by a =
person other=20
than the intended recipient is unauthorized and may be illegal. If =
you have=20
received this e-mail in error, please notify us immediately by reply =
e-mail=20
and destroy all =
copies.</FONT></P><BR><BR></BLOCKQUOTE></BODY></HTML>
------=_NextPart_001_003B_01C2F49A.BEDEAB40--
------=_NextPart_000_003A_01C2F49A.BEDEAB40
Content-Type: application/octet-stream;
name="files_on_tape"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="files_on_tape"
IyEvYmluL2tzaAptZWRpYT0kMQpOQkFETT0vdXNyL29wZW52L25ldGJhY2t1cC9iaW4vYWRtaW5j
bWQKZWNobyAiTWVkaWEgJG1lZGlhIGNvbnRhaW5zIGZvbGxvd2luZyBmaWxlczoiCiROQkFETS9i
cGltbWVkaWEgLWwgLW1lZGlhaWQgJG1lZGlhIHwgZ3JlcCAiXklNQUdFIiB8IGF3ayB7J3ByaW50
ICQ0J30gfCAKd2hpbGUgcmVhZCBCSUQKZG8KY3RpbWU9YGVjaG8gJEJJRCB8IHNlZCAncy9eLipf
Ly8nYAokTkJBRE0vYnBmbGlzdCAtbCAtYmFja3VwaWQgJEJJRCAtdXQgJGN0aW1lIHwgYXdrIHsn
cHJpbnQgJDEwJ30KZG9uZQo=
------=_NextPart_000_003A_01C2F49A.BEDEAB40--
|