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

Tom Simpson tosimpson at forchtgroup.com
Thu Feb 14 20:40:31 UTC 2013

Yeah, if TACACS was an option, I would as well. Plus I can't get it removed right now, since someone else has been convinced we "need that information" every time we run any show commands....

I am trying to get TACACS implemented sometime this year, but it is low on my todo list, since the authentication we are currently using works...


Tom Simpson
LAN/WAN Engineer
Forcht Group of Kentucky
859.259.9700 x538

"We all knew there was just one way to improve our odds for survival: train, train, train. Sometimes, if your training is properly intense it will kill you. More often -- much, much more often -- it will save your life."  - Richard Marcinko, former US Navy SEAL Team Commander

From: Lempka, Jason [jason.lempka at pbvllc.com]
Sent: Thursday, February 14, 2013 3:38 PM
To: Tom Simpson
Cc: rancid-discuss at shrubbery.net
Subject: RE: Help with suppressing part of the show run output

> 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.



This message contains confidential information and is intended only for the individual named.  If you are not the named addressee you should not disseminate, distribute or copy this e-mail.  Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

Forcht Group IT, 2400 South Main Street, Corbin, Ky.

More information about the Rancid-discuss mailing list