Re: OT: Phyton/Perl Script for devices hanging of the Terminal

From: Radioactive Frog <pbhatkoti_at_gmail.com>
Date: Sat, 9 Feb 2013 22:04:13 +1100

In bash we do like this;

push_at_CDlinux /usr/sbin $
push_at_CDlinux /usr/sbin $ pwd
/usr/sbin
push_at_CDlinux /usr/sbin $
push_at_CDlinux /usr/sbin $ more iou-tsLogin-openCxn
#!/usr/bin/expect
spawn telnet ts 2099
send "\r"
send "\r"
expect "TS>"
send "enable\r"
expect "Password:"
send "cisco\n"
send "\r"
send "who\r"

expect "TS#"
 send "r1\r"
 send "\r"
 send "\036x" <-----------ctrl+shift+6
 sleep 3

On Sat, Feb 9, 2013 at 12:01 PM, Victor Cappuccio <vcappuccio_at_gmail.com>wrote:

> Greetings Groupstudy!
>
> Could anyone provide a sample phyton/perl script, able to perform escape
> sequence on the console router?
>
> Thanks a lot
> Victor
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Sat Feb 09 2013 - 22:04:13 ART

This archive was generated by hypermail 2.2.0 : Fri Mar 01 2013 - 07:57:58 ART