Page 1 of 1

how to get list of groups via command line

Posted: Tue Mar 27, 2007 9:40 am
by les
Whilst in the throws of a major rebuild and reinstall (full use of sxmboxexp and sxmboximp) due to a probelm i've already logged on the forums, i forgot to note down the groups that had been created via sac.

i've got all the user info thanks to omshowu etc.

I dont know of an equivalent command to show a list of groups. is there one? or is there an "access" style db somewhere in the scalix directories?

Posted: Tue Mar 27, 2007 10:12 am
by jeffs
Hi Les -

omshowpdl -l all should just dump the list of groups - is that what you need?

Jeff

Posted: Tue Mar 27, 2007 11:54 am
by KevinAnderson
I'd advise also running omsearch -s and dumping the output to a file. This will give you a copy of everyone's alias and other information.

Kev.

Posted: Tue Mar 27, 2007 12:06 pm
by les
KevinAnderson wrote:I'd advise also running omsearch -s and dumping the output to a file. This will give you a copy of everyone's alias and other information.

Kev.


Thanks Kev, omsearch does the trick, outputs a bit messy though.....anyone know of any other ways that are a bit cleaner?
I haven't got time now but i guess i could do a more specific omsearch...

omshowpdl only lists the pdl's and optionally the internet address for that pdl. It wont show you the members belonging to the pdl.

p.s. on another note....

is there a utility/command to save user created rules? they must live in files on the server somewhere, can they be exported/imported/retrieved easily?

TIA

Posted: Tue Mar 27, 2007 12:39 pm
by KevinAnderson
I believe you can add users/groups based on the line of output from omsearch with the addu or addpdln commands.

That might help.

Kev.