Veritas-bu

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

2003-02-19 15:27:06
Subject: [Veritas-bu] Easy question... (Netbackup Datacenter 3.4 UNIX)
From: pwinkeler AT pbnj-solutions DOT com (Paul Winkeler)
Date: Wed, 19 Feb 2003 15:27:06 -0500
Hi Paul (great name btw)

Please take a look-see at the PERL modules I have loaded up at CPAN:
  http://search.cpan.org/author/DUTCHMAN/NBU-0.86/
This module distribution contains a script called client-list.pl which does
exactly what you want.  (I think)

 PaulW

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Paul 
Boatman
Sent: Wednesday, February 19, 2003 2: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