NetNodeMan
Technical User
Hi all.
I have a script which telnets to a switch and enter in IP information and then does a "sh run" on that switch. this works perfect for one switch. However, if I want it to run for 10 switches I need to hard code the information.
I have searched on here but I've been even more confused by what I've found. Can anyone help me with this? I want to read in an IP from a text file and pass it to the telnet session. Can anyone help? Please post code if you have it because it's not my script and I am completely clueless when it comes to scripting.
I have a script which telnets to a switch and enter in IP information and then does a "sh run" on that switch. this works perfect for one switch. However, if I want it to run for 10 switches I need to hard code the information.
I have searched on here but I've been even more confused by what I've found. Can anyone help me with this? I want to read in an IP from a text file and pass it to the telnet session. Can anyone help? Please post code if you have it because it's not my script and I am completely clueless when it comes to scripting.