Forum Discussion
JPrice_230829
Nimbostratus
Jan 06, 2016Execute a shell script prior to full login
Anyone know of a way to initiate a script during ssh login? I have a requirement to provide users with their failed login count, from a remote authentication server, upon successful logon. I have a l...
JPrice_230829
Nimbostratus
Jan 07, 2016With some help form a coworker this is what I ended up with:
startdate=$( aureport -au | tail -2 | head -1 | awk '{print $2}' )
starttime=$( aureport -au | tail -2 | head -1 | awk '{print $3}' )
failcountt=$(aureport -au --start $startdate $starttime | grep $USER | grep no | wc -l)
echo "Failed login attempts since your last successful login: ${failcount}"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
