cancel
Showing results for 
Search instead for 
Did you mean: 

NBU command or report to list all active clients

jcgaustin
Level 2
Employee Accredited

I thought there was a blclient command to list active clients or clients in active policies but I am not seeing that.  Anyone know of a way to get a list of all clients that are active.....kind of like check coverage but for an entire master?

 

Thanks

11 REPLIES 11

MOHAMED_PATEL
Level 5
Partner Accredited Certified

Found this on the net -

Applies to POLICIES if any interested..

Credit should go to the writer of the script and not me -

I found it useful....especially when doing upgrades and you want to deactivate policies...

 


create a script file and run it with 755 permissions

#!/bin/sh
# Written by Scott Kampen on 12/25/04
#set -x
rm /tmp/mo/classstatus
bppllist=/usr/openv/netbackup/bin/admincmd/./bppllist
bpplinfo=/usr/openv/netbackup/bin/admincmd/./bpplinfo
classlist=/tmp/mo/classlist
classstatus=/tmp/mo/classstatus

$bppllist > $classlist

for policy in `cat  $classlist`
do
state=`$bpplinfo $policy -L | grep Active | awk '{print $2}'`
if [ "$state" = "yes" ]
then
status="Yes $policy is active"
else
status="No  $policy is not active"
fi
echo "$status" >> $classstatus
done
more $classstatus

Andy_Welburn
Level 6

in conjunction with bpplclients to get your list of clients for those "active" policies:

/usr/openv/netbackup/bin/admincmd/bpplclients policy_name  |
     -allunique [-pt policy_type] [-L | -l | -U | -noheader]
     [-M master_server,...] [-v]

Eric_Zhang
Level 5

one solution is script it up .

get all the client names from Active Netbackup polices.

 

Eric

Marianne
Level 6
Partner    VIP    Accredited Certified

This is how I would it:

Ensure all NBU GUI's are closed. Temporarily move ALL inactive policies out of the netbackup/db/class folder.

Then run bppllist -allpolicies -allunique

Move inactive policies back to original location.

cgoliver
Level 5

This is not a valid option at least not in 7.1

 

Gives the error,

 

"  bppllist -allpolicies -allunique
bppllist: unrecognized option -allunique
bppllist: [<policy name>] [-L|-l|-U] [-verbose] [-allpolicies] [-inventory]
        [-M <master_server,...,master_server>]
        [-hwos]
        [-byclient <client>] [-keyword "keyword phrase"]  "

Andy_Welburn
Level 6

/usr/openv/netbackup/bin/admincmd/bpplclients policy_name  |
     -allunique [-pt policy_type] [-L | -l | -U | -noheader]
     [-M master_server,...] [-v]

cgoliver
Level 5

Then I have to list all policies, before running bpplclients, which will have to be piped into UNIX commands for the desired output.

 

We need a command like "bppllist -allpolicies -allunique"

Andy_Welburn
Level 6

If you follow Mariannes suggestion of temporarily moving the inactive policies from the "class" folder/directory, thus leaving only active policies, then run bpplclients -allunique you will get a list of all clients in all active (& only active) policies.

cgoliver
Level 5

Really need a tool for querying all the VM's

RBC_Storage_adm
Level 1

bppllist -allpolicies | grep CLIENT | awk {'print $2'} | sort -u

Marianne
Level 6
Partner    VIP    Accredited Certified
This discussion is 5 years old.... I doubt that the original poster is still looking for an answer...