Forum Discussion

susindran_surul's avatar
13 years ago
Solved

Need active backup clients list

Hi Folks,

I need to take out only active backup clients for my licence renewel process.

-->We have more then 600 clients and some of the clients is decommisoned.

---->We may forgot to remove client from the list(Summary of all backup policies).

I need only active client name,policy and client.Is there any way to take out.

 

Thanks,

Susi.S

  • I have another idea - you can see all deactivated policies in the GUI, right?

    Make a list of the policy names, the go to /usr/openv/netbackup/db/class. 
    All policies are represented as folders in this directory.
    Move all inactive policies to a non-NBU folder.
    Best to do this with GUI closed and NBU shut down.

    If you now start NBU and list clients (bpplclients -allunique .....) you will only see clients in active policies.

    PS: No need to keep deactivated policies for decommissioned clients around. There is no need for policies to exist in order to perform restores.

  • Marked Mariannes post as the solution as it looked like that was the way you were intending to go, but just for completeness, & as promised, a cobbled together script using the correct commands in the right places.

    Based on the command you'd already got (which I believe came from an earlier post of Martins)

    for POLICY in `bppllist -U -verbose -allpolicies | egrep '^Policy Name|Active' | awk '/Active.*yes/{print x};{x=$3}'`
    do
    bpplclients $POLICY -noheader | awk '{print $3}' >> /tmp/active_clients.tmp
    done
    sort -u /tmp/active_clients.tmp
    rm /tmp/active_clients.tmp

     

    [[Editted]]

11 Replies

Replies have been turned off for this discussion