X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=master%2Froot%2Fbin%2Fconf_swm_integration.tcl;h=8230cf9ce3cf146e6f1aed7c6d2d7d54a347a91a;hb=6ded6f01e55bbc73e2505f8fdaaf6a4410a038b0;hp=0afda89da12db44cd489b906d04ca81b227ca431;hpb=74cd9444a47ca9295696deae8d8a7c3c1799587b;p=debian6500.git diff --git a/master/root/bin/conf_swm_integration.tcl b/master/root/bin/conf_swm_integration.tcl index 0afda89..8230cf9 100755 --- a/master/root/bin/conf_swm_integration.tcl +++ b/master/root/bin/conf_swm_integration.tcl @@ -2,13 +2,13 @@ set sub [lrange $argv 0 0] if { $sub == "" } { set sub "1" } -spawn telnet swm +spawn telnet swg expect { - "Password:" { send "thales\r" } - incorrect { send_user "invalid password or account\n"; exit } - timeout { send_user "connection to $sub timed out\n"; exit } - eof { send_user "connection to host failed\n"; exit } + "Password:" { send "thales\r" } + incorrect { send_user "invalid password or account\n"; exit } + timeout { send_user "connection to $sub timed out\n"; exit } + eof { send_user "connection to host failed\n"; exit } } expect -exact ">" { send "enable\r" } expect "Password:" { send "thales\r" } @@ -19,7 +19,7 @@ expect -exact "#" { send "vlan 192\r" } expect -exact "#" { send "name Integration\r" } expect -exact "#" { send "exit\r" } -expect -exact "#" { send "interface gigabitEthernet 1/45\r" } +expect -exact "#" { send "interface gigabitEthernet 1/47\r" } expect -exact "#" { send "switchport mode access\r" } expect -exact "#" { send "switchport access vlan 192\r" } expect -exact "#" { send "exit\r" }