TCL / Expect Scripting - Using a conditional statement to attempt a secondary login password
- 阅读更多 关于 TCL / Expect Scripting - Using a conditional statement to attempt a secondary login password
问题 I am very close to finish a TCL/TK app that logs into a Cisco Access Point via a serial connection (RS232} and gives it an IP address (very basic) However, I would like my script to attempt a secondary password if the first one fails This is how the Cisco CLI behaves with a serial connection when the incorrect password is entered 3 times (No User Name is needed, only prompts for a password) Password: Password: Password: % Bad secrets Again, if the default password of "Cisco" does not work, I