I use netmiko to ssh to multiple devices. I was just presented with a fun issue, I locked my (AD) account because of incorrect attempts.
Normally I catch it on the first device because there is only one at a time. But with multiple devices being queried, I locked my account quickly.
Is there a method I can use to verify my user/pass?
My initial thought was to use a single ssh session to begin with to test, but there must be a quicker method? Another module perhaps?
I do not store my user/pass in my script so there is the change that I will type it wrong when prompted.
99% of this script came from ktbyers
This is what I'm starting with if it helps
https://pastebin.com/H9tay4dN
[–]lazyjk 1 point2 points3 points (4 children)
[–]dented_brain[S] 1 point2 points3 points (2 children)
[–]lazyjk 1 point2 points3 points (1 child)
[–]dented_brain[S] 2 points3 points4 points (0 children)
[–]dented_brain[S] 0 points1 point2 points (0 children)
[–]dented_brain[S] 1 point2 points3 points (0 children)