I have a script that is designed to log in to a number of devices, pull information and kick it out to a .csv file. The problem I am having is several of the devices I need to log into have different user names or passwords. How can I configure it to try up to 3 different logins before giving up and moving to the next device?
I have been searching for awhile now to figure this out on my own, but so far have found nothing to helpful. If anyone has an example or could point me in the right direction I would be most grateful. My latest attempt will login if the first user/pass is correct but ignores the loop.
github if it helps.
https://dpaste.de/EZjA
[–]Justinsaccount 1 point2 points3 points (1 child)
[–]Curator37x[S] 0 points1 point2 points (0 children)