http://www.perlmonks.org?node_id=1126685


in reply to How do get a list of failed servers?
in thread How do I get expect.pm to ignore special characters?

After that I went to the target box and cleared out the pam_tally2 and then my perl script worked.

If I understood you correctly and the script is now working, then the account got locked while you where debugging your script or was locked for some other failed log in attempts. Is there something that is not working if you run your script now?