[rancid] Help with suppressing part of the show run output

Lempka, Jason jason.lempka at pbvllc.com
Thu Feb 14 20:38:53 UTC 2013

> I am assuming that this would be a regex, but I don't know where to begin
> adding it inside the rancid script, what would be the best section to put
> this in? Should it be possible to strip the first few lines off of the
> configuration output? Or would ignoring these lines be easier?
> The config line that we added is:  exec prompt timestamp
> and it gets added to the vty config section

I disabled that prompt upon login via clogin.  Here's a diff:

--- bin/clogin  2012-11-29 08:12:39.688077830 -0500
+++ clogin      2012-11-29 08:08:44.387041585 -0500
@@ -918,6 +918,9 @@
                send "terminal length 0\r"
                expect -re $prompt      {}
                send "terminal width 132\r"
+               expect -re $prompt      {}
+               send "terminal no exec prompt timestamp\r"
+               #expect -re $prompt     {}
            expect -re $prompt          {}
        } else {

Had I been aware of an autocmd via tacacs as heasley points out in another message, I would have asked them to remove the vty command and shoved it into their tacacs profile.


More information about the Rancid-discuss mailing list