List users from command line?
-
cwsonline
List users from command line?
What is an simple way to dump all the users from the command line? I have used >listerm in the past but this will only show users that have assigned equipment. I've used >ednump and >cuser to pull out the users that way but for scripting purposes I would like to keep it to a simple command or query from the command line. I have also looked into using a ctree module from Perl but I have had trouble getting a perl interpreter to run well on the OXE. Any ideas would be apprecitated.
-
cwsonline
Thank you. That has given me some good ideas. Instead of using the Phone Book table I used the POSTE table to look at only the local users. We have large networks here and I wanted to only see the local users. I am looking at something like:
strings /usr3/mao/POSTEM.idx | grep -E '^[[:digit:]]' | sort | uniq
I found that using POSTEM.dat didn't give an 'up-to-the-moment' view of the users. I do end up with a couple garbage characters at the end of my extension numbers but I can remove those easily in my script. This also includes my hunt group number but isn't a problem. Thank you for the ideas!
strings /usr3/mao/POSTEM.idx | grep -E '^[[:digit:]]' | sort | uniq
I found that using POSTEM.dat didn't give an 'up-to-the-moment' view of the users. I do end up with a couple garbage characters at the end of my extension numbers but I can remove those easily in my script. This also includes my hunt group number but isn't a problem. Thank you for the ideas!
-
andi
-
lata
Re: List users from command line?
I use command
> ednump
> dir
> mean
> go
which prints out all numbers with its information
BR Lata
> ednump
> dir
> mean
> go
which prints out all numbers with its information
BR Lata

