Page 1 of 1

listing just the internet addresses

Posted: Tue Jan 04, 2011 6:11 pm
by mnauta
I need to have a listing of all the internet addresses on the server, "omshowu -m all -I" gives to much info. is there a way to just get the internet addresses?

Thanks

Re: listing just the internet addresses

Posted: Tue Jan 04, 2011 7:08 pm
by tdeklein
You can do that with omsearch:

omsearch -e 'entry-type=1|entry-type=4' -m 'cn/internet-addr'

entry-type 1 represents users while entry-type 4 is for groups. With -m you can choose what attributes will be listed:

CN=Simpson, Bart/INTERNET-ADDR="Simpson, Bart" <Bart.Simpson@springfield.private>
CN=Simpsons/INTERNET-ADDR="Simpsons" <Simpsons@springfield.private>

Cheers
Thomas

Re: listing just the internet addresses

Posted: Wed Jan 05, 2011 11:37 am
by mnauta
tdeklein wrote:You can do that with omsearch:

omsearch -e 'entry-type=1|entry-type=4' -m 'cn/internet-addr'

entry-type 1 represents users while entry-type 4 is for groups. With -m you can choose what attributes will be listed:

CN=Simpson, Bart/INTERNET-ADDR="Simpson, Bart" <Bart.Simpson@springfield.private>
CN=Simpsons/INTERNET-ADDR="Simpsons" <Simpsons@springfield.private>

Cheers
Thomas


Thanks, that works perfectly!