Results 1 to 7 of 7

Thread: CLI for # of zimbra active Web client, administrator and IMAP sessions

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Canada
    Posts
    22
    Rep Power
    7

    Default CLI for # of zimbra active Web client, administrator and IMAP sessions

    Hi Folks,

    Is there a CLI for finding out the # of active Web client, administrator and IMAP sessions that are displayed in Admin console

    or

    preferably a way to see these numbers graphically over a period of time.

    Any help is greatly appreciated.

    Thx.
    Lalit

  2. #2
    Join Date
    Jan 2008
    Location
    Canada
    Posts
    22
    Rep Power
    7

    Default

    anybody interested in answering this? Thx.

  3. #3
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    zmjava com.zimbra.common.soap.SoapCommandUtil got revamped as zmsoap in 5.0.7
    zmsoap -z -v DumpSessionsRequest

    zmsoap -z -v -e DumpSessionsRequest @groupByAccount=1 @listSessions=1
    (Realize that POP connections end fast/aren't the same concept of 'session' in the sence that we use the word for web-client, admin, and IMAP.)
    For trending that, you can find info on the zmstat/zmstat-chart command here: Server Monitoring - Zimbra :: Wiki
    More than just IMAP/POP history: Bug 32140 - zmstat - should have some trending data on ALL client connections (web/soap)
    Last edited by mmorse; 12-12-2008 at 04:10 PM.

  4. #4
    Join Date
    Apr 2006
    Posts
    14
    Rep Power
    9

    Default Script: zimbra.find_session_count_by_user

    Thanks for the info on the zmsoap command. I put together a perl script to summarize this info thusly. No arguments needed, and it's safe:

    WebGUI: 3 usera@zimbra.example.com
    WebGUI: 2 userb@zimbra.example.com
    ---------------------------------------------
    WebGUI Total: 5

    etc. Same for IMAP, admin, and synclistener.

    Cheers, -Brian
    Attached Files Attached Files

  5. #5
    Join Date
    Aug 2012
    Location
    Venezuela
    Posts
    3
    Rep Power
    3

    Default

    Thanks, excellent contribution

    how I can turn that into a report. cvs

    Quote Originally Posted by brianfinley View Post
    Thanks for the info on the zmsoap command. I put together a perl script to summarize this info thusly. No arguments needed, and it's safe:

    WebGUI: 3 usera@zimbra.example.com
    WebGUI: 2 userb@zimbra.example.com
    ---------------------------------------------
    WebGUI Total: 5

    etc. Same for IMAP, admin, and synclistener.

    Cheers, -Brian

  6. #6
    Join Date
    Feb 2009
    Location
    Silicon Valley, CA
    Posts
    32
    Rep Power
    6

    Default Nice script but there's been a change

    I had to remove the -e from the zmsoap line to get it to work in 7.1.4.

    Otherwise, great script!!

  7. #7
    Join Date
    Sep 2010
    Posts
    113
    Rep Power
    5

    Default nice script

    Quote Originally Posted by rayb2001 View Post
    I had to remove the -e from the zmsoap line to get it to work in 7.1.4.

    Otherwise, great script!!
    I agree, nice work .

    There is a small time lag when users disconnect: users sessions still show up in although they have logged out. This seems to come from the zmsoap command which still sees the session as active. Not an important issue though.
    --
    cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •