AIX; Auto clearing of 'too many invalid login attempts by user'

Does anyone have a good script / cron job that handles this?

I have looked in smit and see it is clearing this count with:
chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s '{userid}'

However when I looked around to find ways to automate this I have not found an easy solution.

I know that the file .../lastlog is a text file however I am not good at stanza filtering. Thus do not know who has hit the limit to pass to the chsec command.

user1:
time_last_login = 1167758143
tty_last_login = /dev/pts/2
host_last_login = joe.somewhere.com
unsuccessful_login_count = 2
time_last_unsuccessful_login = 1166659165
tty_last_unsuccessful_login = /dev/pts/4
host_last_unsuccessful_login = joe.somewhere.com

user2:
time_last_unsuccessful_login = 1166735510
tty_last_unsuccessful_login = /dev/pts/0
host_last_unsuccessful_login = jane.somewhere.com
unsuccessful_login_count = 5
time_last_login = 1166738412

any help would be great. -KJ