Results 1 to 2 of 2

Thread: how to view date and time of last logins of all users

  1. #1
    nskmdu is offline Senior Member
    Join Date
    Jun 2008
    Posts
    62
    Rep Power
    6

    Default how to view date and time of last logins of all users

    hi pals

    i want to view all users' last logged in date and time.

    is it possible?

  2. #2
    drhughes is offline Senior Member
    Join Date
    Dec 2007
    Posts
    50
    Rep Power
    7

    Default

    At the CLI you could do the following:

    zmprov gaa your_domain >> /tmp/listofallusers.txt

    for x in $(cat /tmp/listofallusers.txt | cut -f 1 -d@)
    do
    echo -n "$x," >> /tmp/listoflastlogin.txt
    zmprov ga $x zimbraLastLogonTimestamp |grep zimbraLastLogonTimestamp|cut -f 2 -d:|cut -f 2 -d' ' >> /tmp/listoflastlogin.txt
    done



    I just pulled that off the top of my head. I did not test the code, Try it at your own risk!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Date AND Time in received column
    By skydve1 in forum Users
    Replies: 4
    Last Post: 09-21-2009, 12:28 PM
  2. How to display time and date in "Received" column
    By celeron in forum Administrators
    Replies: 3
    Last Post: 01-28-2009, 02:26 AM
  3. Display full date and time on message list
    By mteixeira in forum Users
    Replies: 0
    Last Post: 06-24-2008, 01:21 AM
  4. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  5. Time and Date Issue
    By menonumesh in forum Administrators
    Replies: 3
    Last Post: 04-18-2007, 06:06 AM

Posting Permissions

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