From: Laurent Mazet Date: Tue, 5 Jan 2016 15:04:47 +0000 (+0100) Subject: correct script for internal lab network X-Git-Tag: debian_7.8.10~12 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=fb2f0839cef2d882f33bbf528ad2455ce2a31f35;hp=574f6303968a6f8b1dba7190c44eb42dad48fb7b;p=debian6500.git correct script for internal lab network --- diff --git a/master/root/bin/conf_switch_integration b/master/root/bin/conf_switch_integration index 1bc0deb..69698bb 100755 --- a/master/root/bin/conf_switch_integration +++ b/master/root/bin/conf_switch_integration @@ -2,7 +2,7 @@ set sub [lrange $argv 0 0] if { $sub == "" } { set sub "1" } -spawn telnet sw1 +spawn telnet swm expect { "Password:" { send "thales\r" } @@ -18,7 +18,7 @@ expect -exact "#" { send "config terminal\r" } expect -exact "#" { send "vlan 192\r" } expect -exact "#" { send "name Integration\r" } expect -exact "#" { send "exit\r" } -f + expect -exact "#" { send "interface gigabitEthernet 1/47\r" } expect -exact "#" { send "switchport mode access\r" } expect -exact "#" { send "switchport access vlan 192\r" }