cancel
Showing results for 
Search instead for 
Did you mean: 

Policies associated with a client

raj08
Level 4

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

1 ACCEPTED SOLUTION

Accepted Solutions

Andy_Welburn
Level 6

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

View solution in original post

6 REPLIES 6

Nicolai
Moderator
Moderator
Partner    VIP   

For unix:

bpplclients -allunique | grep abc

Windows:

bpplclients -allunique | findstr abc

raj08
Level 4

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,

 

Marianne
Level 6
Partner    VIP    Accredited Certified

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

Andy_Welburn
Level 6

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

 

raj08
Level 4

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.

Andy_Welburn
Level 6

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