list active accounts ?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
padraig
Outstanding Member
Outstanding Member
Posts: 375
Joined: Fri Sep 12, 2014 10:13 pm

list active accounts ?

Postby padraig » Fri Jul 19, 2013 4:20 am

the command #su - zimbra -c 'zmprov -l gaa' will list all accounts active & locked
is there a command to list just active accounts ?
great weather in IRELAND! our first summer in YEARS Yellow weather alert issued as highs of 30 degrees forecast - Environmental News | The Irish Times - Thu, Jul 18, 2013


User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 612
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P9

list active accounts ?

Postby ccelis5215 » Fri Jul 19, 2013 5:35 pm

hi padraig,
[quote user="padraig"]the command #su - zimbra -c 'zmprov -l gaa' will list all accounts active & locked
is there a command to list just active accounts ?

[/QUOTE]


This may work for you
su - zimbra -c 'zmaccts|grep active|grep @|cut -d" " -f1'

ccelis
User avatar
Federico Bertola
Advanced member
Advanced member
Posts: 133
Joined: Wed Oct 09, 2013 8:08 am
Contact:

list active accounts ?

Postby Federico Bertola » Sat Jul 20, 2013 3:27 am

Hi all,
I just add my 2 cents, there is a little issue with `zmacts`, its output is limited to 36 characters for the account name, so I suggest to use the SearchAccount command of zmprov:

zmprov -l sa "(zimbraAccountStatus=active)"

I hope this helps you.
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 612
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P9

list active accounts ?

Postby ccelis5215 » Sat Jul 20, 2013 7:17 am

[quote user="federico.bertola"]Hi all,
I just add my 2 cents, there is a little issue with `zmacts`, its output is limited to 36 characters for the account name, so I suggest to use the SearchAccount command of zmprov:

zmprov -l sa "(zimbraAccountStatus=active)"
[/QUOTE]
You're right.
Thanks.
ccelis

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 10 guests