Forum Discussion

nike_new's avatar
nike_new
Level 6
11 years ago

client remove

I have a single client in 6 policies.(FS BACKUP/ORACLE/INCR/FULL...) Client is now decommisioned. What command i can run so that this client is deleted from each 6 policies without other clients ...
  • revarooo's avatar
    11 years ago

    Google: netbackup client remove policy.

    1st 3 matches yield this page:

    https://www-secure.symantec.com/connect/forums/command-line-unixaix-deleting-client-multiple-policies

    Comment mentions:

    1. Policies by client name
    /usr/openv/netbackup/bin/admincmd/bppllist -byclient CLIENTNAME | grep CLASS | cut -d' ' -f2
    2. Delete client from policy
    /usr/openv/netbackup/bin/admincmd/bpplclients POLICY -delete CLIENTNAME

     

    So in UNIX:

    for policies in `/usr/openv/netbackup/bin/admincmd/bppllist -byclient <clientname> | grep CLASS | cut -d' ' -f2`

    do

    /usr/openv/netbackup/bin/admincmd/bpplclients $policies -delete <clientname>

    done