Video Screencast Help

Duplicate client in backup rotation

Created: 02 Feb 2013 • Updated: 25 Mar 2013 | 6 comments
This issue has been solved. See solution.

Hello All,

My Company has a NBU Master runs on a Unix OS with 12 Media server with Unix & Windows OS flavor with 1800+ client in backup rotation.

There is any way to find out duplicate of any client in backup rotation; recently I found a client was added in two different policies. Which created a 2 image of the same client, finally resulted in more tape utilization.

Could someone educate me if there is any command/script to detect all the duplicate clients under a master server?

Thanks smiley

 

 

Comments 6 CommentsJump to latest comment

Nagalla's picture

when you see the GUI---> Policies---> Summary of all policies --> Clients

in the side pane, it will show you the ALL clinets and Unique client.(this will give you the basic idea how many Duplicate clients you have in policices)

---

use bpplclients , it will list the all clients in alphabhate order, so  you can copy those to export spreed sheet and find the duplicate once,

Nicolai's picture

It's a question we often see here at Connect. Try searching some of the old threads as well

http://www.symantec.com/docs/TECH28410

Best Regards

Nicolai

 

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

Mr.Fox Foot's picture

Nagella & Nicolai,

Thanks for your help, Is there any possiblities to find out the duplication in backup selection with respective to the client and the NDMP volume for the same senario mentioed above.

Andy Welburn's picture

Using the T/N quoted by Nicolai as a starting point you could use the bppllist command without the -U option & cut out the information that's of relevance.

e.g.

bppllist -byclient client | egrep "CLASS |INCLUDE" | awk '{print $2}'

which would give output along the lines of:

policy name
backup selection
backup selection
policy name
backup selection
backup selection
backup selection
etc etc etc

or 'refine' it slightly:

bppllist -byclient client | egrep "CLASS |INCLUDE" | awk '{print $1,":",$2}' | sed s/CLASS/"POLICY "/

so you'd get the output a little clearer:

POLICY   : policy name
INCLUDE : backup selection
INCLUDE : backup selection
POLICY   : policy name
INCLUDE : backup selection
INCLUDE : backup selection
INCLUDE : backup selection
etc etc etc

 

But if you're going to do that you may as well script the whole thing & read in a list of clients from the output of bpplclients:

for CLIENT in `bpplclients -allunique -noheader | awk '{print $3}'`
do
echo "CLIENT  :" $CLIENT
bppllist -byclient $CLIENT|egrep "CLASS |INCLUDE" | awk '{print $1,":",$2}' | sed s/CLASS/"POLICY "/
echo
done

 

There's still going to be some reading ahead to determine any duplicates tho'!

Stumpr2's picture

easy way is to run /usr/openv/netbackup/bin/admincmd/bpcoverage

 

VERITAS ain't it the truth?

SOLUTION
Andy Welburn's picture

BOB!!!!! smiley

Knew there would be something easier than messing around with multiple commands.

Bob is 100% correct - to be expected!

(Altho' having now looked at the output not sure if this will cover NDMP policies & I haven't any around to test anymore)

# bpcoverage -c client
       File System Backup Coverage Report (UNIX and Windows only)
       ------------------------------------------------------------------

       Key:  *         - Policy is not active
             UNCOVERED - Mount Point not covered by an active policy
             MULTIPLE  - Mount Point covered by multiple active policies


CLIENT: client

   Mount Point     Device              Backed Up By Policy   Notes
   -----------     ------              -------------------   -----
   /mnt            /dev/md/dsk/d0      Policy
   /mnt1           /dev/md/dsk/d80     Policy1               MULTIPLE
   /mnt1           /dev/md/dsk/d80     Policy1               MULTIPLE