[Veritas-bu] NetBackup Enterprise 5.x -> 5.1MP4 - bpflist no longer has same syntax?
2005-12-27 13:16:52
Subject: |
[Veritas-bu] NetBackup Enterprise 5.x -> 5.1MP4 - bpflist no longer has same syntax? |
From: |
jpiszcz AT servervault DOT com (Piszcz, Justin) |
Date: |
Tue, 27 Dec 2005 13:16:52 -0500 |
This is a multi-part message in MIME format.
------_=_NextPart_001_01C60B12.0010FC24
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
This used to work before 5.1MP4, any idea what changed?
=20
I used to run this to get a list of _ALL_ the files on a particular box,
any idea of the current syntax? I am currently looking myself but
thought it'd be a good idea to send this out ahead of time.
=20
=20
#!/usr/bin/bash
=20
if [ ! -d "/indexing" ]; then
mkdir /indexing
elif [ -d "/indexing" ]; then
rm -f /indexing/*
fi
=20
cd /usr/openv/netbackup/db/images
num=3D`/bin/ls -1 | grep -c .`
count=3D$num
=20
for i in *
do
echo "On client $i, $count clients to go."
bpflist -U -client $i > /indexing/$i.idx
count=3D`expr $count - 1`
done
------_=_NextPart_001_01C60B12.0010FC24
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>This used to work before 5.1MP4, any idea what =
changed?<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I used to run this to get a list of _<i><span
style=3D'font-style:italic'>ALL</span></i>_ the files on a particular =
box, any
idea of the current syntax? I am currently looking myself but thought =
it’d
be a good idea to send this out ahead of =
time.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>#!/usr/bin/bash<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>if [ ! -d "/indexing" ]; =
then<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> mkdir /indexing<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>elif [ -d "/indexing" ]; =
then<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> rm -f /indexing/*<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>fi<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cd =
/usr/openv/netbackup/db/images<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>num=3D`/bin/ls -1 | grep -c =
.`<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>count=3D$num<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>for i in *<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>do<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> echo "On client $i, $count clients to =
go."<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> bpflist -U -client $i > =
/indexing/$i.idx<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> count=3D`expr $count - =
1`<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>done<o:p></o:p></span></font></p>
</div>
</body>
</html>
------_=_NextPart_001_01C60B12.0010FC24--
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] NetBackup Enterprise 5.x -> 5.1MP4 - bpflist no longer has same syntax?,
Piszcz, Justin <=
|
|
|