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_01C2D853.F9B1CEE0
Content-Type: text/plain
By the way, this is for v4.5. Change "bppllist" to "bpcllist" for v3.4.
-M
-----Original Message-----
From: Donaldson, Mark
Sent: Wednesday, February 19, 2003 1:06 PM
To: 'Paul Boatman'; Mark.Eisenhardt AT hughessupply DOT com;
brian.blake AT veritas DOT com
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Easy question... (Netbackup Datacenter 3.4
UNIX)
Client list:
bpclclients -allunique -noheader | awk '{print $3}'
Filelist by client:
for client in `bpclclients -allunique -noheader | awk '{print $3}'`
do
echo "\n## Client $client"
bppllist -byclient $client |awk '$1=="INCLUDE" {print $2}'
done
HTH - Mark
-----Original Message-----
From: Paul Boatman [mailto:boatm005 AT admin.ndis.umn DOT edu]
Sent: Wednesday, February 19, 2003 12:44 PM
To: Mark.Eisenhardt AT hughessupply DOT com; brian.blake AT veritas DOT com
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Easy question... (Netbackup Datacenter 3.4
UNIX)
Just to clarify,
What I am looking for is so simple. All I want is a client list, and
what drives are being backed up on each client. The schedules and host
is not necessary, but could be useful I suppose.
Unfortunately, check_coverage is just getting stuck on my first client
and doesn't skip to the next one even when I know there is an error.
This is because we must have some inactive clients.
Basically a script that would do dbcoverage -coverage -c <ALL CLIENTS
SOMEHOW> would be perfect...
None of the scripts I have received so far have worked. But thanks for
the ideas guys.
- Paul
>>> Brian Blake <brian.blake AT veritas DOT com> 02/18/03 09:05PM >>>
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.
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
--
Brian Blake
Professional Services Organization
VERITAS Software
brian.blake AT veritas DOT com
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
------_=_NextPart_001_01C2D853.F9B1CEE0
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="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=2>By the way, this is for v4.5. Change "bppllist"
to "bpcllist" for v3.4.</FONT>
<BR><FONT SIZE=2>-M</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Donaldson, Mark </FONT>
<BR><FONT SIZE=2>Sent: Wednesday, February 19, 2003 1:06 PM</FONT>
<BR><FONT SIZE=2>To: 'Paul Boatman'; Mark.Eisenhardt AT hughessupply DOT
com;</FONT>
<BR><FONT SIZE=2>brian.blake AT veritas DOT com</FONT>
<BR><FONT SIZE=2>Cc: veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=2>Subject: RE: [Veritas-bu] Easy question... (Netbackup
Datacenter 3.4</FONT>
<BR><FONT SIZE=2>UNIX)</FONT>
</P>
<BR>
<P><FONT SIZE=2>Client list:</FONT>
</P>
<P><FONT SIZE=2>bpclclients -allunique -noheader | awk '{print $3}'</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>Filelist by client:</FONT>
</P>
<P><FONT SIZE=2>for client in `bpclclients -allunique -noheader | awk '{print
$3}'`</FONT>
<BR><FONT SIZE=2>do</FONT>
<BR><FONT SIZE=2> echo "\n## Client $client"</FONT>
<BR><FONT SIZE=2> bppllist -byclient $client |awk
'$1=="INCLUDE" {print $2}'</FONT>
<BR><FONT SIZE=2>done</FONT>
</P>
<P><FONT SIZE=2>HTH - Mark</FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Paul Boatman [<A HREF="mailto:boatm005 AT admin.ndis.umn
DOT edu">mailto:boatm005 AT admin.ndis.umn DOT edu</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, February 19, 2003 12:44 PM</FONT>
<BR><FONT SIZE=2>To: Mark.Eisenhardt AT hughessupply DOT com; brian.blake AT
veritas DOT com</FONT>
<BR><FONT SIZE=2>Cc: veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=2>Subject: Re: [Veritas-bu] Easy question... (Netbackup
Datacenter 3.4</FONT>
<BR><FONT SIZE=2>UNIX)</FONT>
</P>
<BR>
<P><FONT SIZE=2>Just to clarify,</FONT>
</P>
<P><FONT SIZE=2>What I am looking for is so simple. All I want is a client
list, and</FONT>
<BR><FONT SIZE=2>what drives are being backed up on each client. The schedules
and host</FONT>
<BR><FONT SIZE=2>is not necessary, but could be useful I suppose.</FONT>
</P>
<P><FONT SIZE=2>Unfortunately, check_coverage is just getting stuck on my first
client</FONT>
<BR><FONT SIZE=2>and doesn't skip to the next one even when I know there is an
error.</FONT>
<BR><FONT SIZE=2>This is because we must have some inactive clients.</FONT>
</P>
<P><FONT SIZE=2>Basically a script that would do dbcoverage -coverage -c
<ALL CLIENTS</FONT>
<BR><FONT SIZE=2>SOMEHOW> would be perfect... </FONT>
<BR><FONT SIZE=2>None of the scripts I have received so far have worked. But
thanks for</FONT>
<BR><FONT SIZE=2>the ideas guys.</FONT>
</P>
<P><FONT SIZE=2>- Paul</FONT>
</P>
<P><FONT SIZE=2>>>> Brian Blake <brian.blake AT veritas DOT com>
02/18/03 09:05PM >>></FONT>
<BR><FONT SIZE=2>We usually don't recommend you look directly at the ASCII
files as</FONT>
<BR><FONT SIZE=2>they</FONT>
<BR><FONT SIZE=2>could change between versions...</FONT>
</P>
<P><FONT SIZE=2>I usually use the CLI's to get info... In this case, you could
use</FONT>
<BR><FONT SIZE=2>bppllist to get the list of policies, then bpplinclude
<policy> to get</FONT>
<BR><FONT SIZE=2>the includes, and bpplsched <policy> -U to get the
schedules. Most of</FONT>
<BR><FONT SIZE=2>the bppl* CLIs (in ../netbackup/bin/admincmd) will give you
usage info</FONT>
<BR><FONT SIZE=2>(-help) and the args are pretty much the same throughout those
CLIs.</FONT>
</P>
<P><FONT SIZE=2>B-</FONT>
</P>
<P><FONT SIZE=2>On 2/18/03 3:34 PM, "Mark Eisenhardt"</FONT>
<BR><FONT SIZE=2><Mark.Eisenhardt AT hughessupply DOT com></FONT>
<BR><FONT SIZE=2>wrote:</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>See if this will provide what you need. </FONT>
<BR><FONT SIZE=2>It works as long as your files are ASCII and it gives a little
less</FONT>
<BR><FONT SIZE=2>info</FONT>
<BR><FONT SIZE=2>than check_coverage does </FONT>
</P>
<BR>
<BR>
<P><FONT
SIZE=2>########################################################################</FONT>
<BR><FONT SIZE=2>################ </FONT>
</P>
<P><FONT SIZE=2>for i in `ls /usr/openv/netbackup/db/class | sort -t_ +3`
</FONT>
<BR><FONT SIZE=2>do </FONT>
<BR><FONT SIZE=2>ACTIVE=`grep "ACTIVE 0"
/usr/openv/netbackup/db/class/$i/info |wc -l` </FONT>
<BR><FONT SIZE=2>RESIDENCE=`grep RESIDENCE
/usr/openv/netbackup/db/class/$i/info |cut</FONT>
<BR><FONT SIZE=2>-f2</FONT>
<BR><FONT SIZE=2>-d' ' | wc -l` </FONT>
<BR><FONT SIZE=2>CLIENT=`cat /usr/openv/netbackup/db/class/$i/clients | grep -v
"#"</FONT>
<BR><FONT SIZE=2>|awk</FONT>
<BR><FONT SIZE=2>'{print $1}'` </FONT>
<BR><FONT SIZE=2>if [ $ACTIVE -ne 0 ] </FONT>
<BR><FONT SIZE=2> then </FONT>
<BR><FONT SIZE=2> if [ $RESIDENCE -ne
0 ] </FONT>
<BR><FONT
SIZE=2>
then </FONT>
<BR><FONT
SIZE=2>
echo</FONT>
<BR><FONT
SIZE=2>"*************************************************************"
</FONT>
<BR><FONT
SIZE=2>
echo "Residence : Whoever or the RESIDENCE value" </FONT>
<BR><FONT
SIZE=2>
echo "Client :" $CLIENT </FONT>
<BR><FONT
SIZE=2>
echo "Class :" $i </FONT>
<BR><FONT
SIZE=2>
echo "Includes :\n`cat</FONT>
<BR><FONT SIZE=2>/usr/openv/netbackup/db/class/$i/includes`" </FONT>
<BR><FONT
SIZE=2>
echo "" </FONT>
<BR><FONT
SIZE=2>
echo "Schedule(s) :" </FONT>
<BR><FONT
SIZE=2>
for j in ` ls</FONT>
<BR><FONT SIZE=2>/usr/openv/netbackup/db/class/$i/schedule`</FONT>
</P>
<P><FONT
SIZE=2>
do </FONT>
<BR><FONT
SIZE=2>
/usr/openv/netbackup/bin/admincmd/bpclsched $i -label</FONT>
<BR><FONT SIZE=2>$j</FONT>
<BR><FONT SIZE=2>-U </FONT>
<BR><FONT
SIZE=2>
echo </FONT>
<BR><FONT
SIZE=2>
done </FONT>
<BR><FONT
SIZE=2>
echo</FONT>
<BR><FONT
SIZE=2>"*************************************************************"
</FONT>
<BR><FONT SIZE=2> fi </FONT>
<BR><FONT SIZE=2>fi </FONT>
<BR><FONT SIZE=2>done </FONT>
<BR><FONT
SIZE=2>########################################################################</FONT>
<BR><FONT SIZE=2>###### </FONT>
</P>
<P><FONT SIZE=2>Mark Eisenhardt </FONT>
<BR><FONT SIZE=2>Sr. UNIX Systems Administrator </FONT>
<BR><FONT SIZE=2>Hughes Supply Inc </FONT>
<BR><FONT SIZE=2>407.299.6573 ext. 5483 </FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message----- </FONT>
<BR><FONT SIZE=2>From: Paul Boatman [<A HREF="mailto:boatm005 AT admin.ndis.umn
DOT edu">mailto:boatm005 AT admin.ndis.umn DOT edu</A>] </FONT>
<BR><FONT SIZE=2>Sent: Tuesday, February 18, 2003 1:07 PM </FONT>
<BR><FONT SIZE=2>To: ssesar AT mitre DOT org </FONT>
<BR><FONT SIZE=2>Cc: veritas-bu AT mailman.eng.auburn DOT edu </FONT>
<BR><FONT SIZE=2>Subject: Re: [Veritas-bu] Easy question... (Netbackup
Datacenter 3.4 </FONT>
<BR><FONT SIZE=2>UNIX) </FONT>
</P>
<BR>
<P><FONT SIZE=2>Well, </FONT>
</P>
<P><FONT SIZE=2>The check_coverage script doesn't seem to be working for me :(
</FONT>
</P>
<P><FONT SIZE=2>So far what I was doing is: </FONT>
</P>
<P><FONT SIZE=2>cd openv/netbackup/db/class </FONT>
<BR><FONT SIZE=2>du -ak|grep includes > tempincludes </FONT>
</P>
<P><FONT SIZE=2>then I have to somehow get that output into a script and
display the </FONT>
<BR><FONT SIZE=2>contents of each includes file :( </FONT>
</P>
<BR>
<P><FONT SIZE=2>>>> "Steven L. Sesar" <ssesar AT mitre
DOT org> 02/18/03 11:30AM >>> </FONT>
<BR><FONT SIZE=2>There's a script
/opt/openv/netbackup/bin/goodies/check_coverage which</FONT>
</P>
<BR>
<P><FONT SIZE=2>will do just that. </FONT>
</P>
<P><FONT SIZE=2>--Steve </FONT>
</P>
<P><FONT SIZE=2>Paul Boatman wrote: </FONT>
</P>
<P><FONT SIZE=2>>Hey guys and gals, </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>>I need a report to list every client, and what directories
are being </FONT>
<BR><FONT SIZE=2>>backed up on that client. Is there a easy script or report
to do this</FONT>
</P>
<P><FONT SIZE=2>? </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>>Thanks, </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>>Paul </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT
SIZE=2>>***********************************************************************</FONT>
<BR><FONT SIZE=2>*** </FONT>
<BR><FONT SIZE=2>>This e-mail and its attachments have been scanned for
viruses. </FONT>
<BR><FONT SIZE=2>>NDIS - University of Minnesota </FONT>
<BR><FONT
SIZE=2>>***********************************************************************</FONT>
<BR><FONT SIZE=2>*** </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>>_______________________________________________ </FONT>
<BR><FONT SIZE=2>>Veritas-bu maillist - Veritas-bu AT
mailman.eng.auburn DOT edu </FONT>
<BR><FONT SIZE=2>><A
HREF="http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"
TARGET="_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</A>
</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
<P><FONT
SIZE=2>************************************************************************</FONT>
<BR><FONT SIZE=2>** </FONT>
<BR><FONT SIZE=2>This e-mail and its attachments have been scanned for viruses.
</FONT>
<BR><FONT SIZE=2>NDIS - University of Minnesota </FONT>
<BR><FONT
SIZE=2>************************************************************************</FONT>
<BR><FONT SIZE=2>** </FONT>
</P>
<P><FONT SIZE=2>_______________________________________________ </FONT>
<BR><FONT SIZE=2>Veritas-bu maillist - Veritas-bu AT
mailman.eng.auburn DOT edu </FONT>
<BR><FONT SIZE=2><A
HREF="http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"
TARGET="_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</A>
</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Brian Blake</FONT>
<BR><FONT SIZE=2>Professional Services Organization</FONT>
<BR><FONT SIZE=2>VERITAS Software</FONT>
<BR><FONT SIZE=2>brian.blake AT veritas DOT com </FONT>
</P>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Veritas-bu maillist - Veritas-bu AT
mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=2><A
HREF="http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"
TARGET="_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</A></FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C2D853.F9B1CEE0--
|