Veritas-bu

[Veritas-bu] Easy question... (Netbackup Datacenter 3.4 UNIX)

2003-02-18 22:05:27
Subject: [Veritas-bu] Easy question... (Netbackup Datacenter 3.4 UNIX)
From: brian.blake AT veritas DOT com (Brian Blake)
Date: Tue, 18 Feb 2003 22:05:27 -0500
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3128450728_11656211
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

We usually don't recommend you look directly at the ASCII files as they
could change between versions...

I usually use the CLI's to get info... In this case, you could use
bppllist to get the list of policies, then bpplinclude <policy> to get
the includes, and bpplsched <policy> -U to get the schedules. Most of
the bppl* CLIs (in ../netbackup/bin/admincmd) will give you usage info
(-help) and the args are pretty much the same throughout those CLIs.

B-

On 2/18/03 3:34 PM, "Mark Eisenhardt" =
<Mark.Eisenhardt AT hughessupply DOT com>
wrote:



See if this will provide what you need.=20
It works as long as your files are ASCII and it gives a little less =
info
than check_coverage does=20



########################################################################=

################=20

for i in `ls /usr/openv/netbackup/db/class | sort -t_ +3`=20
do=20
ACTIVE=3D`grep "ACTIVE 0" /usr/openv/netbackup/db/class/$i/info |wc -l` =

RESIDENCE=3D`grep RESIDENCE /usr/openv/netbackup/db/class/$i/info |cut =
-f2
-d' ' | wc -l`=20
CLIENT=3D`cat /usr/openv/netbackup/db/class/$i/clients | grep -v "#" =
|awk
'{print $1}'`=20
if [ $ACTIVE -ne 0 ]=20
        then=20
        if [ $RESIDENCE -ne 0 ]=20
                then=20
                echo
"*************************************************************"=20
                echo "Residence : Whoever or the RESIDENCE value"=20
                echo "Client :" $CLIENT=20
                echo "Class :" $i=20
                echo "Includes :\n`cat
/usr/openv/netbackup/db/class/$i/includes`"=20
                echo ""=20
                echo "Schedule(s) :"=20
                for j in ` ls =
/usr/openv/netbackup/db/class/$i/schedule`

                do=20
                /usr/openv/netbackup/bin/admincmd/bpclsched $i -label =
$j
-U=20
                echo=20
                done=20
                echo
"*************************************************************"=20
        fi=20
fi=20
done=20
########################################################################=

######=20

Mark Eisenhardt=20
Sr. UNIX Systems Administrator=20
Hughes Supply Inc=20
407.299.6573 ext. 5483=20


-----Original Message-----=20
From: Paul Boatman [mailto:boatm005 AT admin.ndis.umn DOT edu]=20
Sent: Tuesday, February 18, 2003 1:07 PM=20
To: ssesar AT mitre DOT org=20
Cc: veritas-bu AT mailman.eng.auburn DOT edu=20
Subject: Re: [Veritas-bu] Easy question... (Netbackup Datacenter 3.4=20
UNIX)=20


Well,=20

The check_coverage script doesn't seem to be working for me :(=20

So far what I was doing is:=20

cd openv/netbackup/db/class=20
du -ak|grep includes > tempincludes=20

then I have to somehow get that output into a script and display the=20
contents of each includes file :(=20


>>> "Steven L. Sesar" <ssesar AT mitre DOT org> 02/18/03 11:30AM >>>=20
There's a script /opt/openv/netbackup/bin/goodies/check_coverage which=20

will do just that.=20

--Steve=20

Paul Boatman wrote:=20

>Hey guys and gals,=20
>=20
>I need a report to list every client, and what directories are being=20
>backed up on that client. Is there a easy script or report to do this=20
?=20
>=20
>Thanks,=20
>=20
>Paul=20
>=20
>=20
>=20
>=20
>***********************************************************************=

***=20
>This e-mail and its attachments have been scanned for viruses.=20
>NDIS -  University of Minnesota=20
>***********************************************************************=

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






************************************************************************=

**=20
This e-mail and its attachments have been scanned for viruses.=20
NDIS -  University of Minnesota=20
************************************************************************=

**=20

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





--=20
Brian Blake
Professional Services Organization
VERITAS Software
brian.blake AT veritas DOT com


--B_3128450728_11656211
Content-type: text/html; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>Re: [Veritas-bu] Easy question... (Netbackup Datacenter 3.4 =
UNIX)</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana">We usually don&#8217;t recommend you look =
directly at the ASCII files as they could change between =
versions...<BR>
<BR>
I usually use the CLI&#8217;s to get info... In this case, you could =
use bppllist to get the list of policies, then bpplinclude =
&lt;policy&gt; to get the includes, and bpplsched &lt;policy&gt; -U to =
get the schedules. Most of the bppl* CLIs (in =
../netbackup/bin/admincmd) will give you usage info (-help) and the =
args are pretty much the same throughout those CLIs.<BR>
<BR>
B-<BR>
<BR>
On 2/18/03 3:34 PM, &quot;Mark Eisenhardt&quot; =
&lt;Mark.Eisenhardt AT hughessupply DOT com&gt; wrote:<BR>
<BR>
</FONT><BLOCKQUOTE><FONT FACE=3D"Verdana"><FONT SIZE=3D"2">See if this =
will provide what you need.</FONT> <BR>
<FONT SIZE=3D"2">It works as long as your files are ASCII and it gives =
a little less info than check_coverage does <BR>
</FONT><BR>
<BR>
<BR>
<FONT =
SIZE=3D"2">#############################################################=
###########################</FONT> <BR>
<BR>
<FONT SIZE=3D"2">for i in `ls /usr/openv/netbackup/db/class | sort -t_ =
+3` <BR>
do <BR>
ACTIVE=3D`grep &quot;ACTIVE 0&quot; =
/usr/openv/netbackup/db/class/$i/info |wc -l` <BR>
RESIDENCE=3D`grep RESIDENCE /usr/openv/netbackup/db/class/$i/info |cut =
-f2 -d' ' | wc -l` <BR>
CLIENT=3D`cat /usr/openv/netbackup/db/class/$i/clients | grep -v =
&quot;#&quot; |awk '{print $1}'`</FONT> <BR>
<FONT SIZE=3D"2">if [ $ACTIVE -ne 0 ] <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;then <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if [ $RESIDENCE -ne 0 ] =
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;then <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;echo =
&nbsp;&quot;************************************************************=
*&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;Residence : Whoever or the RESIDENCE =
value&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;Client :&quot; $CLIENT <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;Class :&quot; $i <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;Includes :\n`cat =
/usr/openv/netbackup/db/class/$i/includes`&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;Schedule(s) :&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;for j in ` ls =
/usr/openv/netbackup/db/class/$i/schedule` <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;do <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;/usr/openv/netbackup/bin/admincmd/bpclsched $i =
-label $j -U <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;echo <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;done <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;echo =
&nbsp;&quot;************************************************************=
*&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fi <BR>
fi <BR>
done</FONT> <BR>
<FONT =
SIZE=3D"2">#############################################################=
#################</FONT> <BR>
<BR>
<FONT SIZE=3D"2">Mark Eisenhardt</FONT> <BR>
<FONT SIZE=3D"2">Sr. UNIX Systems Administrator</FONT> <BR>
<FONT SIZE=3D"2">Hughes Supply Inc</FONT> <BR>
<FONT SIZE=3D"2">407.299.6573 ext. 5483 <BR>
</FONT><BR>
<BR>
<FONT SIZE=3D"2">-----Original Message-----</FONT> <BR>
<FONT SIZE=3D"2">From: Paul Boatman =
[mailto:boatm005 AT admin.ndis.umn DOT edu]</FONT> <BR>
<FONT SIZE=3D"2">Sent: Tuesday, February 18, 2003 1:07 PM</FONT> <BR>
<FONT SIZE=3D"2">To: ssesar AT mitre DOT org</FONT> <BR>
<FONT SIZE=3D"2">Cc: veritas-bu AT mailman.eng.auburn DOT edu</FONT> <BR>
<FONT SIZE=3D"2">Subject: Re: [Veritas-bu] Easy question... (Netbackup =
Datacenter 3.4</FONT> <BR>
<FONT SIZE=3D"2">UNIX)</FONT> <BR>
<BR>
<BR>
<FONT SIZE=3D"2">Well,</FONT> <BR>
<BR>
<FONT SIZE=3D"2">The check_coverage script doesn't seem to be working =
for me :(</FONT> <BR>
<BR>
<FONT SIZE=3D"2">So far what I was doing is:</FONT> <BR>
<BR>
<FONT SIZE=3D"2">cd openv/netbackup/db/class</FONT> <BR>
<FONT SIZE=3D"2">du -ak|grep includes &gt; tempincludes</FONT> <BR>
<BR>
<FONT SIZE=3D"2">then I have to somehow get that output into a script =
and display the</FONT> <BR>
<FONT SIZE=3D"2">contents of each includes file :(</FONT> <BR>
<FONT SIZE=3D"2"> <BR>
</FONT><BR>
<FONT SIZE=3D"2">&gt;&gt;&gt; &quot;Steven L. Sesar&quot; =
&lt;ssesar AT mitre DOT org&gt; 02/18/03 11:30AM &gt;&gt;&gt;</FONT> <BR>
<FONT SIZE=3D"2">There's a script =
/opt/openv/netbackup/bin/goodies/check_coverage which</FONT> <BR>
<BR>
<FONT SIZE=3D"2">will do just that.</FONT> <BR>
<BR>
<FONT SIZE=3D"2">--Steve</FONT> <BR>
<BR>
<FONT SIZE=3D"2">Paul Boatman wrote:</FONT> <BR>
<BR>
<FONT SIZE=3D"2">&gt;Hey guys and gals,</FONT> <BR>
<FONT SIZE=3D"2">&gt;</FONT> <BR>
<FONT SIZE=3D"2">&gt;I need a report to list every client, and what =
directories are being</FONT> <BR>
<FONT SIZE=3D"2">&gt;backed up on that client. Is there a easy script =
or report to do this</FONT> <BR>
<FONT SIZE=3D"2">?</FONT> <BR>
<FONT SIZE=3D"2">&gt;</FONT> <BR>
<FONT SIZE=3D"2">&gt;Thanks,</FONT> <BR>
<FONT SIZE=3D"2">&gt;</FONT> <BR>
<FONT SIZE=3D"2">&gt;Paul</FONT> <BR>
<FONT SIZE=3D"2">&gt;</FONT> <BR>
<FONT SIZE=3D"2">&gt;</FONT> <BR>
<FONT SIZE=3D"2">&gt;</FONT> <BR>
<FONT SIZE=3D"2">&gt;</FONT> <BR>
<FONT =
SIZE=3D"2">&gt;*********************************************************=
*****************</FONT> <BR>
<FONT SIZE=3D"2">&gt;This e-mail and its attachments have been scanned =
for viruses.</FONT> <BR>
<FONT SIZE=3D"2">&gt;NDIS - &nbsp;University of Minnesota <BR>
&gt;********************************************************************=
******</FONT> <BR>
<FONT SIZE=3D"2">&gt;</FONT> <BR>
<FONT =
SIZE=3D"2">&gt;_______________________________________________</FONT> =
<BR>
<FONT SIZE=3D"2">&gt;Veritas-bu maillist &nbsp;- =
&nbsp;Veritas-bu AT mailman.eng.auburn DOT edu <BR>
&gt;http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu <BR>
&gt; &nbsp;<BR>
&gt;</FONT> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<FONT =
SIZE=3D"2">*************************************************************=
*************</FONT> <BR>
<FONT SIZE=3D"2">This e-mail and its attachments have been scanned for =
viruses.</FONT> <BR>
<FONT SIZE=3D"2">NDIS - &nbsp;University of Minnesota <BR>
************************************************************************=
**</FONT> <BR>
<BR>
<FONT SIZE=3D"2">_______________________________________________</FONT> =
<BR>
<FONT SIZE=3D"2">Veritas-bu maillist &nbsp;- =
&nbsp;Veritas-bu AT mailman.eng.auburn DOT edu</FONT> <BR>
<FONT =
SIZE=3D"2">http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</FO=
NT> <BR>
<BR>
</FONT></BLOCKQUOTE><FONT FACE=3D"Verdana"><BR>
<BR>
-- <BR>
Brian Blake<BR>
Professional Services Organization<BR>
VERITAS Software<BR>
brian.blake AT veritas DOT com<BR>
</FONT>
</BODY>
</HTML>


--B_3128450728_11656211--