Forum Discussion

backup-botw's avatar
11 years ago
Solved

Command to Count Clients Being Backed up

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.

  • 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

     

3 Replies

  • 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!)

  • 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

     

  • bpplclients -allunique -noheader

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