My situation is that i have to bacup the config of some switches. The authentication on switches is by password and user/password
I cannot seem to find an expect script that checks to login first with just password, and if it fails then to try user and password.
it should be something like: telnet to host if password ok then execupt backup command else send user and password and execute backup command
Thank You
Aucun commentaire:
Enregistrer un commentaire