Can't echo to router /dev/ttyS0 after reload/quit!
 




IT Certification FAQ

 
|
Home
|
Microsoft
|
CISCO
|
CompTIA
|
Exam/Study FAQ
|
Employment FAQ
| Links  | Forums  |
Book Reviews


FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  ProfileProfile  Log in to check your private messagesPrivate messages  Log inLog in

Can't echo to router /dev/ttyS0 after reload/quit!

 
Post new topic   Reply to topic    Forum Index -> alt.certification.cisco
Author Message
BOK
Guest





PostPosted: Sun Jul 27, 2003 1:49 pm    Post subject: Can't echo to router /dev/ttyS0 after reload/quit! Reply with quote

I have this shell script, that runs:
1. write erase
2. reload
3. answers "no" for the configuration dialog question
4. enable
5 some more commands..

All the writings to the router are echo $1 > /dev/ttyS0.
After step 3, the script commands no longer reach the router!
I have to enter minicom, press Enter, and quit minicom (without "quit"
command. only CTRL-A-q).
It seems as if i enter minicom, type "quit" (and get the "press return
to get started" print), and exit minicom without hitting enter, I
encounter the same problem.
btw, echo-ing "enters" doesn't do the job either.

Does anyone have a clue?!

i'm using a cisco 26xx with ios 12.2.
Back to top
Magnus Eriksson
Guest





PostPosted: Sun Jul 27, 2003 8:58 pm    Post subject: Re: Can't echo to router /dev/ttyS0 after reload/quit! Reply with quote

BOK wrote:
Quote:
I have this shell script, that runs:
1. write erase
2. reload
3. answers "no" for the configuration dialog question
4. enable
5 some more commands..

All the writings to the router are echo $1 > /dev/ttyS0.
After step 3, the script commands no longer reach the router!
I have to enter minicom, press Enter, and quit minicom (without "quit"
command. only CTRL-A-q).
It seems as if i enter minicom, type "quit" (and get the "press return
to get started" print), and exit minicom without hitting enter, I
encounter the same problem.
btw, echo-ing "enters" doesn't do the job either.

Does anyone have a clue?!
Using Linux?


If so, make sure you use setserial command to set 9600,8,n,1 no flow
control. Some PCs have a tendency to set flowcontrol on when the routers
lowers/raises the DTE on the COM port.

Regards
Magnus
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> alt.certification.cisco All times are GMT
Page 1 of 1

 

Copyright © 2002-2006 Web-S-Sense Pty. Ltd. All rights reserved.

Powered by phpBB
Advertising | Policies/Disclaimers | Contact us | Link to us


Featured Sites: Free Antivirus and Antispyware Info | Free PC Support | MCSE Directory