H_Sharma
10 years agoLevel 6
bppllist Command
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,
- Try this : bpplclients (policy_name) -U
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,
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.
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}