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

From: Victor Cappuccio <vcappuccio_at_gmail.com>
Date: Sat, 9 Feb 2013 19:23:41 +0000

Cool!! This works!

Thanks Pushcar

On Sat, Feb 9, 2013 at 11:04 AM, Radioactive Frog <pbhatkoti_at_gmail.com>wrote:

>
> 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
>>
>>
>>
>>
>>
>>
>>
>>
>

-- 
Victor Cappuccio
CCIE R/S# 20657
CCSI# 31452
www.anetworkerblog.com
www.linkedin.com/in/vcappuccio
Blogs and organic groups at http://www.ccie.net
Received on Sat Feb 09 2013 - 19:23:41 ART

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