TuxanForLife
11 years agoLevel 3
How to List All Active Clients (on a linux master server)
Here is a single command the dumps all active clients from a Linux Master Sever.
bppllist -L -allpolicies | egrep "^Policy Name:|^Active:" | paste - - | awk '$NF~yes { print $3 }' | xargs -i bp...
- 11 years ago
It's probably more useful if you sort the output:
bppllist -L -allpolicies | egrep "^Policy Name:|^Active:" | paste - - | awk '$NF~yes { print $3 }' | xargs -i bpplclients {} -noheader 2> /dev/null | awk '{ print $3 }' | sort -u