Login failure script for last one week (180 Views)
Reply
Occasional Advisor
Ramasubramanian Krishna
Posts: 14
Registered: ‎12-15-2006
Message 1 of 4 (180 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

Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,722
Registered: ‎06-21-2000
Message 2 of 4 (178 Views)

Re: Login failure script for last one week

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

Please use plain text.
Occasional Advisor
Ramasubramanian Krishna
Posts: 14
Registered: ‎12-15-2006
Message 3 of 4 (169 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.


 

 

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,784
Registered: ‎03-06-2006
Message 4 of 4 (165 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.

Please use plain text.
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