Dukie91191
July 24th, 2008, 03:37 PM
Hi all, thanks in advance for helping me with this.
I have recently been tasked with creating a script to automate the login/initial configuration process of an Extreme Networks switch running XOS 11. After doing a bit of reading, I have elected to try and do this using Expect with Minicom as my interface program. I have never written Expect or Tcl before, so this may be a very noobish question, but here it goes. I have started to write this script (with my minimal Expect knowledge), but it hangs at login. Heres a list of what I need it to do.
1) Login to switch (via a serial to USB connection)
2) Tell the switch to unconfigure and reboot
3) after reboot, login to switch again, create vlan, configure an IP for said vlan.
From what I've read, this should be relatively simple, but I'm going mad trying to get it to work.
So, my question is, is this possible using Expect? is this possible at all? if so, how and if not, is there any way to get this automation process to work?
I realize that this is a pretty long winded question, and I apologize. Thank you all for your time, and I look forward to any input you may have!
I have recently been tasked with creating a script to automate the login/initial configuration process of an Extreme Networks switch running XOS 11. After doing a bit of reading, I have elected to try and do this using Expect with Minicom as my interface program. I have never written Expect or Tcl before, so this may be a very noobish question, but here it goes. I have started to write this script (with my minimal Expect knowledge), but it hangs at login. Heres a list of what I need it to do.
1) Login to switch (via a serial to USB connection)
2) Tell the switch to unconfigure and reboot
3) after reboot, login to switch again, create vlan, configure an IP for said vlan.
From what I've read, this should be relatively simple, but I'm going mad trying to get it to work.
So, my question is, is this possible using Expect? is this possible at all? if so, how and if not, is there any way to get this automation process to work?
I realize that this is a pretty long winded question, and I apologize. Thank you all for your time, and I look forward to any input you may have!