[rancid] Cisco Banners
Todd Heide
workwithcisco at yahoo.com
Wed Apr 15 00:41:39 UTC 2015
That's probably where I will go. Wasted enough time already.
Sent from my iPhone
> On Apr 14, 2015, at 4:41 PM, Bob Brunette <Bob.Brunette at cdw.com> wrote:
>
> Would it be difficult to change the “#”’s to “*”’s or “=“’s? RANCID doesn’t choke on those, and it’s what we normally do.
>
> Bob
>
>
> From: Todd Heide <workwithcisco at yahoo.com>
> Reply-To: Todd Heide <workwithcisco at yahoo.com>
> Date: Tuesday, April 14, 2015 at 4:31 PM
> To: heasley <heas at shrubbery.net>
> Cc: "rancid-discuss at shrubbery.net" <rancid-discuss at shrubbery.net>
> Subject: Re: [rancid] Cisco Banners
>
> 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/378f9d80/attachment.html>
More information about the Rancid-discuss
mailing list