06-27-2012 01:47 PM
Hi All,
I need to list out all the polices associated with a particular client. For ex: If I have a client called 'abc'.
I need a command line that gives all the policies associated with 'abc'.
Thanks,
RAJ
Solved! Go to Solution.
06-28-2012 11:28 PM
bppllist policy_name -L | grep "Client/HW/OS/Pri"
altho' without stripping out with awk you get a little extra info & you can't simply use -U here as there is no commonality to allow you to grep out the client names.
There's probably other ways ......
***EDIT***
& here's one! (Suprised no-one got here first ;) )
bpplclients policy_name -U
06-27-2012 01:59 PM
For unix:
bpplclients -allunique | grep abc
Windows:
bpplclients -allunique | findstr abc
06-27-2012 04:15 PM
Thanks for the reply. I have unix machine.
bpplclients -allunique | grep abc
is giving only the client OS version and hardware version. And what does bpplclients -allunique does? I ran 'bpplclients' and 'bpplclients -allunique' , both giving me the same output.
Actually I need to find the policy name for abc,
06-27-2012 08:41 PM
I am not close to a system to test, but try this:
bppllist -byclient <client>
Depending on the output, you could add -U or -L to make it more 'readable'.
06-28-2012 12:51 AM
the bppllist command will be you what you need & then some.
If you only need the policy names associated with the client then, as Marianne states, use the -U or -L option & grep out "Policy Name".
06-28-2012 06:14 PM
Thanks Marianne. That was working right.
Yes, I had to grep out "Policy Name" .
Just curious, I hope there would be a command in the reverse way also.
Some command which list out all the client name a policy contains. :) Thanks.
06-28-2012 11:28 PM
bppllist policy_name -L | grep "Client/HW/OS/Pri"
altho' without stripping out with awk you get a little extra info & you can't simply use -U here as there is no commonality to allow you to grep out the client names.
There's probably other ways ......
***EDIT***
& here's one! (Suprised no-one got here first ;) )
bpplclients policy_name -U