Forum Discussion

8 Replies

  • 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  

  • Hello Riaan,

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

  • Hi Marianne,

    Thanks very much :)

    does it contain the deactivated policies host as well?

  • 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.

  • 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.
  • 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}