Mailing List Archive

Router banners
I have come across a problem with RANCID when trying to login to
routers with a banner. Two real world examples are attached ( ahhhh pretty ;) )

It looks like the ?login script thinks it's already logged in due to the presence
of the > in both banners.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cisco_banner.txt
Url: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20011121/83c88e83/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nortel_banner.txt
Url: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20011121/83c88e83/attachment-0001.txt
Router banners [ In reply to ]
On Wed, Nov 21, 2001 at 12:44:58PM -0000, Mark Cooper wrote:
> It looks like the ?login script thinks it's already logged in due
> to the presence of the > in both banners.

Yup. We had to ban some characters in banners (and other motds)
- no > or #.

The trickest part about clogin (et al) is recognizing the prompt
correctly. [.expect turns out to be a horrible language for writting
anything complicated in.]

Looks like this needs to be added to the FAQ.
--asp