cancel
Showing results for 
Search instead for 
Did you mean: 

Command to Count Clients Being Backed up

backup-botw
Level 6

We have a mix of physical servers as well as VM's that we snapshot. I was wondering if there was a quick command I could run that isnt overly intensive that could give me a quick client count as far as how many clients we are actually backing up for reporting purposes. We are running Netbackup 7.6.0.2 here.

1 ACCEPTED SOLUTION

Accepted Solutions

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

bpplclients

command will give you the list of all clients that are in Policies..

and if you just need a count 

bpplclients -allunique -noheader | wc -l

and do remember, as you said you are also doing the Vmware snapshot backups.. if you are using the policy type as VMWARE for those and Query buidler to select the VMs those VMs will not get included in bplclients command.

those Vmware clients list you only needs to get it from activity moniter or from catalog

 

View solution in original post

3 REPLIES 3

CRZ
Level 6
Employee Accredited Certified

Here's the quickest, dirtiest thing I could come up with right now:

# bppllist -l -allpolicies | grep CLIENT | awk '{print $2}' | sort | uniq

Of course, this will list EVERY client in EVERY policy, including ones you may have disabled.  Hey, I said it was quick & dirty!  It might be a good starting point, though.  Good luck!

(I'm certain that years ago there was a REAL way to do this, but either the commands have changed or my brian has - or both.  You may get a better answer later in this thread!)

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

bpplclients

command will give you the list of all clients that are in Policies..

and if you just need a count 

bpplclients -allunique -noheader | wc -l

and do remember, as you said you are also doing the Vmware snapshot backups.. if you are using the policy type as VMWARE for those and Query buidler to select the VMs those VMs will not get included in bplclients command.

those Vmware clients list you only needs to get it from activity moniter or from catalog

 

CRZ
Level 6
Employee Accredited Certified
bpplclients -allunique -noheader

THAT was the thing I couldn't remember - thanks, RamNagalla!