Veritas-bu

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

2003-02-18 15:34:32
Subject: [Veritas-bu] Easy question... (Netbackup Datacenter 3.4 UNIX)
From: Mark.Eisenhardt AT hughessupply DOT com (Mark Eisenhardt)
Date: Tue, 18 Feb 2003 15:34:32 -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.

------_=_NextPart_001_01C2D78D.24EE6433
Content-Type: text/plain

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



############################################################################
############

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

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


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


Well,

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

So far what I was doing is:

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

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

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

will do just that.

--Steve

Paul Boatman wrote:

>Hey guys and gals,
>
>I need a report to list every client, and what directories are being
>backed up on that client. Is there a easy script or report to do this
?
>
>Thanks,
>
>Paul
>
>
>
>
>**************************************************************************
>This e-mail and its attachments have been scanned for viruses.
>NDIS -  University of Minnesota 
>**************************************************************************
>
>_______________________________________________
>Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu 
>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu 
>  
>






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

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

------_=_NextPart_001_01C2D78D.24EE6433
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] Easy question... (Netbackup Datacenter 3.4 =
UNIX)</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>See if this will provide what you need.</FONT>
<BR><FONT SIZE=3D2>It works as long as your files are ASCII and it =
gives a little less info than check_coverage does </FONT>
</P>
<BR>
<BR>

<P><FONT =
SIZE=3D2>###############################################################=
#########################</FONT>
</P>

<P><FONT SIZE=3D2>for i in `ls /usr/openv/netbackup/db/class | sort -t_ =
+3` </FONT>
<BR><FONT SIZE=3D2>do </FONT>
<BR><FONT SIZE=3D2>ACTIVE=3D`grep &quot;ACTIVE 0&quot; =
/usr/openv/netbackup/db/class/$i/info |wc -l` </FONT>
<BR><FONT SIZE=3D2>RESIDENCE=3D`grep RESIDENCE =
/usr/openv/netbackup/db/class/$i/info |cut -f2 -d' ' | wc -l` </FONT>
<BR><FONT SIZE=3D2>CLIENT=3D`cat =
/usr/openv/netbackup/db/class/$i/clients | grep -v &quot;#&quot; |awk =
'{print $1}'`</FONT>
<BR><FONT SIZE=3D2>if [ $ACTIVE -ne 0 ] </FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then =
</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ =
$RESIDENCE -ne 0 ] </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; then </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo&nbsp; =
&quot;*************************************************************&quot=
; </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;Residence : Whoever or the =
RESIDENCE value&quot; </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;Client :&quot; $CLIENT </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;Class :&quot; $i </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;Includes :\n`cat =
/usr/openv/netbackup/db/class/$i/includes`&quot; </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;&quot; </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;Schedule(s) :&quot; </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; for j in ` ls =
/usr/openv/netbackup/db/class/$i/schedule` </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; do </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/openv/netbackup/bin/admincmd/bpclsched =
$i -label $j -U </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; done </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo&nbsp; =
&quot;*************************************************************&quot=
; </FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi =
</FONT>
<BR><FONT SIZE=3D2>fi </FONT>
<BR><FONT SIZE=3D2>done</FONT>
<BR><FONT =
SIZE=3D2>###############################################################=
###############</FONT>
</P>

<P><FONT SIZE=3D2>Mark Eisenhardt</FONT>
<BR><FONT SIZE=3D2>Sr. UNIX Systems Administrator</FONT>
<BR><FONT SIZE=3D2>Hughes Supply Inc</FONT>
<BR><FONT SIZE=3D2>407.299.6573 ext. 5483 </FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Paul Boatman [<A =
HREF=3D"mailto:boatm005 AT admin.ndis.umn DOT edu">mailto:boatm005 AT admin DOT 
ndis.u=
mn.edu</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, February 18, 2003 1:07 PM</FONT>
<BR><FONT SIZE=3D2>To: ssesar AT mitre DOT org</FONT>
<BR><FONT SIZE=3D2>Cc: veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [Veritas-bu] Easy question... =
(Netbackup Datacenter 3.4</FONT>
<BR><FONT SIZE=3D2>UNIX)</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Well,</FONT>
</P>

<P><FONT SIZE=3D2>The check_coverage script doesn't seem to be working =
for me :(</FONT>
</P>

<P><FONT SIZE=3D2>So far what I was doing is:</FONT>
</P>

<P><FONT SIZE=3D2>cd openv/netbackup/db/class</FONT>
<BR><FONT SIZE=3D2>du -ak|grep includes &gt; tempincludes</FONT>
</P>

<P><FONT SIZE=3D2>then I have to somehow get that output into a script =
and display the</FONT>
<BR><FONT SIZE=3D2>contents of each includes file :(</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
</P>

<P><FONT SIZE=3D2>&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=3D2>There's a script =
/opt/openv/netbackup/bin/goodies/check_coverage which</FONT>
</P>

<P><FONT SIZE=3D2>will do just that.</FONT>
</P>

<P><FONT SIZE=3D2>--Steve</FONT>
</P>

<P><FONT SIZE=3D2>Paul Boatman wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt;Hey guys and gals,</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;I need a report to list every client, and what =
directories are being</FONT>
<BR><FONT SIZE=3D2>&gt;backed up on that client. Is there a easy script =
or report to do this</FONT>
<BR><FONT SIZE=3D2>?</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Thanks,</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Paul</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT =
SIZE=3D2>&gt;***********************************************************=
***************</FONT>
<BR><FONT SIZE=3D2>&gt;This e-mail and its attachments have been =
scanned for viruses.</FONT>
<BR><FONT SIZE=3D2>&gt;NDIS -&nbsp; University of Minnesota </FONT>
<BR><FONT =
SIZE=3D2>&gt;***********************************************************=
***************</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT =
SIZE=3D2>&gt;_______________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt;Veritas-bu maillist&nbsp; -&nbsp; =
Veritas-bu AT mailman.eng.auburn DOT edu </FONT>
<BR><FONT SIZE=3D2>&gt;<A =
HREF=3D"http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"; =
TARGET=3D"_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas=
-bu</A> </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>

<P><FONT =
SIZE=3D2>***************************************************************=
***********</FONT>
<BR><FONT SIZE=3D2>This e-mail and its attachments have been scanned =
for viruses.</FONT>
<BR><FONT SIZE=3D2>NDIS -&nbsp; University of Minnesota </FONT>
<BR><FONT =
SIZE=3D2>***************************************************************=
***********</FONT>
</P>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Veritas-bu maillist&nbsp; -&nbsp; =
Veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"; =
TARGET=3D"_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas=
-bu</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2D78D.24EE6433--