[rancid] Cisco Banners
Todd Heide
workwithcisco at yahoo.com
Tue Apr 14 21:31:27 UTC 2015
Tried a few different things, including a direct match for the expression and still errors.
expect: does "\r\nrouter#\r\nrouter#terminal length 0\r\nrouter#" (spawn_id exp6) match regular expression "###############################################################################"? Gate "###############################################################################"? gate=no
What I am seeing though, and wonder if this is why, terminal length 0 For several lines down I am seeing ter, termin, terminal, etc. until the last line above then is gives up. I dont know why terminal length 0 is coming up at the prompt, but when I turn debug off I am seeing it every time I clogin to this router. If this was the only router that has a MOTD, I would push to have it removed, but they want it on all devices.
From: heasley <heas at shrubbery.net>
To: Todd Heide <workwithcisco at yahoo.com>
Cc: heasley <heas at shrubbery.net>; "rancid-discuss at shrubbery.net" <rancid-discuss at shrubbery.net>
Sent: Tuesday, April 14, 2015 3:32 PM
Subject: Re: [rancid] Cisco Banners
Tue, Apr 14, 2015 at 08:19:18PM +0000, Todd Heide:
> OK Found it.
> add prompt <router name glob> {<regex>}
> Match login prompt, or initial login prompt in the case of some of the login
> contain forbidden characters that conflict with CLI prompt markers.
> should use if or when prompted for one.
>
>
> OY REGEX, I hate Regex! Now to figure this part out!
its not that difficult. it will set you free.
sth like {\[^ ]\[#>]+} might do it.
i've updated the html manpages too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20150414/df370175/attachment.html>
More information about the Rancid-discuss
mailing list