X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=master%2Froot%2Fbin%2Fconf_swm_integration.tcl;fp=master%2Froot%2Fbin%2Fconf_swm_integration.tcl;h=0000000000000000000000000000000000000000;hb=3a8d2b2fc527b9194dd3e37519b27102ba1333c7;hp=8230cf9ce3cf146e6f1aed7c6d2d7d54a347a91a;hpb=8a1c6cffeac80ef8db05bc1e9547de833ba31f45;p=debian6500.git diff --git a/master/root/bin/conf_swm_integration.tcl b/master/root/bin/conf_swm_integration.tcl deleted file mode 100755 index 8230cf9..0000000 --- a/master/root/bin/conf_swm_integration.tcl +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/expect - -set sub [lrange $argv 0 0] -if { $sub == "" } { set sub "1" } -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 } -} -expect -exact ">" { send "enable\r" } -expect "Password:" { send "thales\r" } - -expect -exact "#" { send "config terminal\r" } - -expect -exact "#" { send "vlan 192\r" } -expect -exact "#" { send "name Integration\r" } -expect -exact "#" { send "exit\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" } - -expect -exact "#" { send "interface vlan 192\r" } -expect -exact "#" { send "ip address 192.168.$sub.231 255.255.255.0\r" } -expect -exact "#" { send "ip pim dense-mode\r" } -expect -exact "#" { send "no shutdown\r" } -expect -exact "#" { send "exit\r" } - -expect -exact "#" { send "ip route 192.168.$sub.0 255.255.255.0 Vlan192\r" } -expect -exact "#" { send "ip route 192.168.$sub.160 255.255.255.255 10.133.28.160\r" } -expect -exact "#" { send "ip route 192.168.$sub.101 255.255.255.255 Vlan10\r" } -expect -exact "#" { send "ip route 192.168.0.0 255.255.255.0 192.168.$sub.230\r" } -expect -exact "#" { send "exit\r" } - -expect -exact "#" { send "exit\r" } -