Re: Scripting/Information Help

From: Provoost, Richard (Richard.Provoost@ESSENT.NL)
Date: Thu Mar 25 2004 - 08:09:51 EST


Terry,

Here an ugly but functional oneliner:

lsuser -a time_last_login ALL | grep time_last_login | awk -F'=' '{ if
(1080133450-$2 > 86400*180) print $0}'

Where 1080133450 is the time somewhere of today in seconds from root or
anybody like: lsuser -a time_last_login root
180 is days and 86400 is nr seconds a day

If it works it gives back an ugly list of users that haven't login since 180
days !!

HTH,

Richard.

-----Oorspronkelijk bericht-----
Van: terry.german@PHONES4U.CO.UK [mailto:terry.german@PHONES4U.CO.UK]
Verzonden: donderdag 25 maart 2004 13:37
Aan: aix-l@Princeton.EDU
Onderwerp: Scripting/Information Help

Before acting on this e-mail or opening any attachments you are advised to
read
The Caudwell Holdings group of companies' disclaimer at the end of this
e-mail.
=======================================================

Guru's,

As I am not a wizz on scripting I was just wondering if anyone out there can
help me.

I want to find out which users on our M80 running AIX 4.3.3 have not
accessed there id for the last 6 months?

If anyone could help it would be great...

Thanks

Terry German
AIX System Administrator
IBM Certified Specialist - AIX
Phones 4u Limited
Swift House
Liverpool Road
Newcastle Under Lyme
ST5 9JJ.
[E] terry.german@phones4u.co.uk
<mailto:terry.german@phones4u.co.uk <mailto:terry.german@phones4u.co.uk> >
[T] +44 (0)1782 600783
[M] +44 (0)7748908609
[F] +44 (0)1782 587192
[W] http://www.phones4u.co.uk <http://www.phones4u.co.uk>

=======================================================
Confidentiality Notice
This e-mail is confidential and intended for the use of the named recipient
only.
If you are not the intended recipient please notify us by telephone
immediately
on +44(0)1782 600600 or return it to us by e-mail. Please then delete it
from
your system and note that any use, dissemination, forwarding, printing or
copying
is strictly prohibited.

Any views or opinions are solely those of the author and do not necessarily
represent those of The Caudwell Holdings group of companies.

Encryptions and Viruses
Please note that this e-mail and any attachments have not been encrypted.
They may therefore be liable to be compromised. Please also note that it is
your
responsibility to scan this e-mail and any attachments for viruses. We do
not,
to the extent permitted by law, accept any liability (whether in contract,
negligence
or otherwise) for any virus infection and/or external compromise of security
and/or
confidentiality in relation to transmissions sent by e-mail.

Monitoring
Activity and use of The Caudwell Holdings group of companies' systems is
monitored
to secure its effective use and operation and for other lawful business
purposes.
Communications using these systems will also be monitored and may be
recorded to
secure effective use and operation and for other lawful business purposes.

----
This message is confidential and may be privileged. Any review, retransmission, dissemination or other use of, or taking any action with reference to this information by persons other than the intended recipient is prohibited. If you received this message in error, please notify the sender by reply e-mail and delete this message from all computers. Please note that e-mails are susceptible to change. The sender will not accept liability for the improper or incomplete transmission of the information contained in this message.


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:45 EDT