Login failure script for last one week (264 Views)
Reply
Occasional Advisor
Ramasubramanian Krishna
Posts: 14
Registered: ‎12-15-2006
Message 1 of 4 (264 Views)

Login failure script for last one week

Hi

 

Looking for a script that will generate a report of unsuccessful logins for last one week for both linux and hp-ux env

Honored Contributor
Patrick Wallek
Posts: 13,787
Registered: ‎06-21-2000
Message 2 of 4 (262 Views)

Re: Login failure script for last one week

You can see unsuccessful logins via the 'lastb' command.

Occasional Advisor
Ramasubramanian Krishna
Posts: 14
Registered: ‎12-15-2006
Message 3 of 4 (253 Views)

Re: Login failure script for last one week

I needed a script to running on weekly basis and generate a failure report for that particular week only . using lastb i will be getting for the full month


Patrick Wallek wrote:

You can see unsuccessful logins via the 'lastb' command.


 

 

Acclaimed Contributor
Dennis Handly
Posts: 25,287
Registered: ‎03-06-2006
Message 4 of 4 (249 Views)

Re: Login failure script for last one week

>I needed a script to running on weekly basis and generate a failure report for that particular week only . Using lastb I will be getting for the full month

 

Using lastb(1) goes back as far as the last time the EOF was reset.

So either you need to reset it once a week.  Or you need to script a check for the current week using data arithmetic.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.