Re: Scripting/Information Help

From: Provoost, Richard (Richard.Provoost_at_ESSENT.NL)
Date: 03/25/04

  • Next message: Ignacio Vidal: "Re: Scripting/Information Help"
    Date:         Thu, 25 Mar 2004 14:09:51 +0100
    To: aix-l@Princeton.EDU
    
    

    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.
    

  • Next message: Ignacio Vidal: "Re: Scripting/Information Help"

    Relevant Pages

    • Re: NTP for AIX
      ... > I am not aware that it can run on a AIX platform, ... > necessarily represent those of The Caudwell Holdings group of companies. ... > confidentiality in relation to transmissions sent by e-mail. ...
      (AIX-L)
    • Re: AIX 5.2L "who" question
      ... Subject: AIX 5.2L "who" question ... read The Caudwell Holdings group of companies' disclaimer at the end of this ... confidentiality in relation to transmissions sent by e-mail. ... Monitoring ...
      (AIX-L)
    • Re: SSH password Expiry
      ... Is the a patch for AIX 4.3.3 to correct this or has ... > represent those of The Caudwell Holdings group of companies. ... > confidentiality in relation to transmissions sent by e-mail. ...
      (AIX-L)
    • Re: AIX 5.2L "who" question
      ... AIX Administrator, Komatsu America ... confidentiality in relation to transmissions sent by e-mail. ... Monitoring ...
      (AIX-L)
    • Re: No Root password
      ... > acces the root volume group and just simply change the root password by ... My AIX 5.1 ML5 didn't get a shell booted from the AIX ... When you boot form the CDmedia you usually have no vi ... Emergency brakes rules and btw i have not heard Steve mentioning ...
      (comp.unix.aix)