Nortel/bay routers and rancid

stefmit stefmit at comcast.net
Sat Jun 7 11:05:04 UTC 2003


Minor correction, more for completeness (though irrelevant, as long as the 
*prompt* is to be analyzing only the last character): 

- after issuing the *config* command, under the *bcc>* prompt, the prompt 
changes to *box#*, not *bcc#* ... sorry.

On Saturday 07 June 2003 05:48 am, stefmit wrote:
> Thank you ... didn't work, yet, but you pointed me to the right place, and
> I started to play around with it. I need to figure out where you have the
> "bcc" part, to see if I can figure it out in conjunction with the "enable"
> and prompt sequence.
>
> FYI: the sequence of events (including prompt "history" during the login
> and enable processing) is as I explained it in the original message, i.e.:
>
> telnet <my_router> <CR>
> prompt is Login: 	--> <my_username> <CR>
> prompt is Password:	--> <my_password> <CR>
> prompt is $		--> bcc <CR>
> prompt is bcc>		--> config <CR>
> prompt is bcc#		--> this is what I could probably call "enable" mode, if I
> were to compare it - somehow - with Cisco
>
> So - after logging in succesfully, the sequence of prompts is $, >, then #.
>
> Thanks again for all the help,
> Stef
>
> On Friday 06 June 2003 03:42 pm, Mark Cooper wrote:
> > The "$" prompt ? The bay's I've come across usually have a prompt of ">"
> > which is probably the cause of your problem.
> >
> > Try the following patch..
> >
> >
> > --- blogin.ORIG Fri Jun  6 21:12:57 2003
> > +++ blogin      Fri Jun  6 21:13:22 2003
> > @@ -483,7 +483,7 @@
> >              set prompt "#"
> >          } else {
> >              set autoenable 0
> > -           set prompt ">"
> > +           set prompt "$"
> >          }
> >       }
> >
> > stefmit wrote:
> > > Here is what I have:
> > >
> > > .cloginrc:
> > >
> > > add password router password (tried also {password}
> > > add user router user (tried alternatively with the above, {user})
> > > add userprompt {Login:}
> > > # the above is the only one getting me to the $ prompt, all other
> > > options # (e.g. {"Login:"}) leaving me at the Login: prompt!
> > > add autoenable router 1
> > > add userpwassword password
> > > # last two lines tried without, with one at a time, with both, etc.
> > >
> > > With all five lines above, in the form I have them now, get me as far
> > > as the $ prompt, which is one step before the bcc.
> > >
> > > When running the suggested:
> > >
> > > blogin -c "help" router
> > >
> > > I still stop at the $ prompt - no "help" and no logout.
> > >
> > > Any ideas of what could be wrong at this level?
> > >
> > > Thx,
> > > Stefan
>
> <snip>





More information about the Rancid-discuss mailing list