cancel
Showing results for 
Search instead for 
Did you mean: 

bppllist Command

H_Sharma
Level 6

Hello Experts,

I would like to have fetch only the client list (Configured in policy) in bppllist command or if possible in other command.

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified
Try this : bpplclients (policy_name) -U

View solution in original post

8 REPLIES 8

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Hi,

 

Use bpplclients.

 

USAGE: bpplclients policy_name [-expand_groups] | {-allunique [-pt policy_type]}
           [-L|-l|-U|-noheader]
           [-M master_server,...] [-v]

       bpplclients policy_name [-M master_server,...] [-v] [-generation generation] [-reason "<reason>"]
           {-add host_name hardware os [priority]}
           {-delete host_name...} |
           {-modify host_name [-hardware hardware] [-os os]
            [-priority priority]} |
           {-rename old_host_name new_host_name [-hardware hardware]
            [-os os] [-priority priority]}

       bpplclients policy_name [-M master_server,...] [-v] [-generation generation] [-reason "<reason>"]
           {-add_instance instance_name host_name} |
           {-delete_instance instance_name host_name}

       bpplclients policy_name [-M master_server,...] [-v] [-generation generation] [-reason "<reason>"]
           {-add_instance_database instance_name database_name host_name} |
           {-delete_instance_database instance_name database_name host_name}

       bpplclients policy_name [-M master_server,...] [-v] [-generation generation] [-reason "<reason>"]
           {-add_instance_group instance_group_name} |
           {-delete_instance_group instance_group_name}

       Valid values for policy_type:
           Standard,  Oracle,  Informix-On-BAR,  Sybase,  
           MS-SharePoint,  MS-Windows,  MS-SQL-Server,  
           MS-Exchange-Server,  SAP,  DB2,  NDMP,  FlashBackup,  
           DataStore,  Lotus-Notes,  FlashBackup-Windows,  
           Vault,  NBU-Catalog,  Generic,  PureDisk-Export,  
           Enterprise-Vault,  VMware,  Hyper-V  

Marianne
Level 6
Partner    VIP    Accredited Certified
bpplclients -allunique -U

H_Sharma
Level 6

Hello Riaan,

Could you please tell me the syntax for a single policy? I would be requiring host name for a specific policy.

Marianne
Level 6
Partner    VIP    Accredited Certified
Try this : bpplclients (policy_name) -U

H_Sharma
Level 6

Hi Marianne,

Thanks very much :)

does it contain the deactivated policies host as well?

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

The command shows you which clients are listed in a policy. It doesn't care if its acvite or not, it reports the policy clients.

Marianne
Level 6
Partner    VIP    Accredited Certified
Deactivated policies or deactivated clients? Two totally different concepts that need different commands. bppllist and bpplclients reports from policy database. bpclient reports from client db on the master (Host Properties -> Master -> Client Attributes ) where individual clients can be deactivated. Maybe best if you can tell us what exactly you are looking for. The requirement seems to change with each new post.

Tape_Archived
Moderator
Moderator
   VIP   

If you are looking to find clients form the active policies

1. Use bppllist to list out the all the policies, forward it to some tmp file. bppllist > tmp.txt

2. Remove the inactive policies from the tmp.txt

3. Use for loop to find the clients from each policy

UNIX- for policy_name in `cat tmp.txt`; do echo $policy_name; bpplclients $policy_name -U ; done

POWERSHELL - foreach ($policy_name in Get-Content tmp.txt)

                          {echo $policy_name

                           bpplclients $policy_name -U}