Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-2009, 05:37 AM
Active Member
 
Posts: 29
Default [SOLVED] zmlicense accounts not in use

Hello.

żIs there any other method than license tab to know the number of used accounts ?

We need to setup an alarm if we only have five or less unused license.

Any idea ?

BR
Reply With Quote
  #2 (permalink)  
Old 11-18-2009, 05:45 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

You could use zmlicense:

Code:
zmlicense -p
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 11-18-2009, 07:17 AM
Active Member
 
Posts: 29
Default

Hello.

With zmlicense i can't see the number of free licenses, i can only see the total number of licenses.

The goal is to know how much free licenses still we have.

Br.
Reply With Quote
  #4 (permalink)  
Old 11-18-2009, 07:48 AM
Active Member
 
Posts: 29
Default

Solved with curl .

BR
Reply With Quote
  #5 (permalink)  
Old 11-18-2009, 08:01 AM
Moderator
 
Posts: 1,531
Default

a quick and dirty way to get the number of licenses in use would be to do like

Code:
zmprov gaa | egrep -c -v 'admin@domain.com|spamtrain@domain.com|hamtrain@domain.com'
This would count the numbre of accounts excluding ones that don't use licenses like admin. add any other accounts that don't count toward licenses like wiki account to the inverse grep statement (i can't remember them all)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.