Page 1 of 1

Last Login

Posted: Fri Oct 06, 2006 10:24 am
by Brian_K
I know in SAC you can see when the last time a user has logged into check their email, but is there a way to produce a global report from the command line that will give the last time a user has logged into the system? I know if you run the olkvers script from the admin resource kit it will give you some of thie information, but I don't think it is listing everyone.

Any ideas?

Thanks,
Brian in RI

Posted: Fri Oct 06, 2006 6:40 pm
by AussieOwner
This little script should do the trick.

Code: Select all

omshowu -m all | while read ID
  do
    lastsignon=`omshowu -n "$ID" | grep "Last Signon :"`
    echo -e "$ID\t$lastsignon"
  done


Darrell

Posted: Tue Oct 10, 2006 10:09 am
by Brian_K
Hi Darrell,

Thanks for the script. However I tried to run it and it listed the CN name but didn't list any of the last login information. Is there something I'm missing?

Thanks,
Brian