Re: [Tutor] Telnet to cisco device

2006-02-28 Thread STREET Gideon (SPARQ)
tutorials). Fun and games :) -Original Message- From: Python [mailto:[EMAIL PROTECTED] Sent: Tuesday, 28 February 2006 11:05 PM To: STREET Gideon (SPARQ) Cc: Tutor Python Subject: Re: [Tutor] Telnet to cisco device On Tue, 2006-02-28 at 16:36 +1000, STREET Gideon (SPARQ) wrote: >

Re: [Tutor] Telnet to cisco device

2006-02-28 Thread Python
On Tue, 2006-02-28 at 16:36 +1000, STREET Gideon (SPARQ) wrote: > tn.read_until('Username: ') #expected prompt after telnetting to the > router > tn.write(user + '\r\n') #hopefully write username and pass character > return > Sending both \r and \n may be confusing things. I'd recommend using t

Re: [Tutor] Telnet to cisco device

2006-02-28 Thread David Heiser
Title: Message   The following works with the Cisco switch that I have available. Cisco 4006 with CatOS 6.2. It may not work with your model/OS or your switch may be configured differently. For instance, the default prompt terminates with "(enable)" so I used "tn.read_until(')')" instead of

Re: [Tutor] Telnet to cisco device

2006-02-27 Thread Hugo González Monteverde
Hi Gideon, Seems that you're looking for some prompts, but are you sure they are presented as such from the server? For example, your password prompt has a space after the colon: > tn.read_until('Password: ') #expected prompt after putting in the username Have you tested what you are supposed