RE: Autocommand multiple exec command

From: Henry Chen (henrchen@xxxxxxxxx)
Date: Fri Feb 01 2002 - 12:47:27 GMT-3


   
 Thank you all for the tips. But I believe the "alt-tab" method for WinTel mac
hine is the most feasible and practical one. Easy to get that setup too, i.e j
ust start multiple reverse telnet section to the terminal server.

  "Wu, Sean" <sean.wu@capitalone.com> wrote: Here is what I did using expect

#!/usr/local/bin/expect --
spawn telnet 9.4.19.88
expect "Password: $"
send "cisco\r"
expect ">$"
send "en\r"
expect "Password: $"
send "cisco\r"
expect "#$"
send "r1\r\r"
expect "via line"
send "\r\r\r"
expect "#$"
send "^^x\r\r\r"
expect "#$"
send "r2\r\r"
expect "via line"
send "\r\r\r"
expect "#$"
send "^^x\r\r\r"
expect "#$"

you may want to change expect "content", you even can make it more advanced
using loop, or whatever. I have a set of scripts to reload all routers,
backup configurations. make sure ctrl+shift+6+x is "ctrl+v ^ x"

Sean Wu

-----Original Message-----
From: Hansang Bae [mailto:hbae@nyc.rr.com]
Sent: Wednesday, January 30, 2002 1:02 PM
To: ccielab@groupstudy.com
Cc: Sikander@nht.com.kw
Subject: RE: Autocommand multiple exec command

At 07:30 AM 1/30/2002 -0800, Henry Chen wrote:
>[snip]
>My question is: Is there any way I can put all those initial connect and
>disconnect commands in one startup script and automatically run that
>whenever the terminal server is rebooted.

I did exactly this using ZOC (www.emtec.com) The scripting is very
powerful and I used it to reverse telnet to all the routers in order.

I guess the other option is to use the autocommand with the rotary command.

line vty 15
no login
autocommand telnet 1.1.1.1 2016
rotary 1
line vty 16
no login
autocommand telnet 1.1.1.1 2016
rotary 2
line vty 16
no login
autocommand telnet 1.1.1.1 2016
rotary 3
etc.

**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.



This archive was generated by hypermail 2.1.4 : Thu Jun 20 2002 - 13:46:09 GMT-3