<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><span style="font-size: 12pt;">Thanks for the help. At line 1622 I added:</span><br><div><div dir="ltr"><div><br></div><div><div>        # Filter IOS XE Bug</div><div>        next if (/VRF table-id 0 not active/);</div><div><br></div><div>and it worked perfectly, no more annoying spam after logins to the switches.</div><div><br></div><div>By the way, the command shows up in a sh run, so it went in the "WriteTerm" command subsection</div><br><div>> Date: Mon, 3 Feb 2014 18:59:26 +0200<br>> From: alan.mckinnon@gmail.com<br>> To: rancid-discuss@shrubbery.net<br>> Subject: Re: [rancid] VRF table-id 0 not active on Cisco IOS XE Switches<br>> <br>> That's very easy to do, rancid itself is full of such rules.<br>> <br>> For an example, look in sub ShowFlash for the script "rancid", you will<br>> see this near line 716:<br>> <br>>         # Filter dhcp database<br>>         next if (/dhcp_[^. ]*\.txt/);<br>> <br>> if the regular expression matches, the code branches to the next line in<br>> the input, effectively skipping over the unwanted input.<br>> <br>> Which IOS command returns your unwanted line? Find the command in<br>> @commandtable near the end of the script, it points to the sub that<br>> parses that command. Edit the sub by putting your custom code in it<br>> somewhere reasonable:<br>> <br>>    next if (/VRF table-id 0 not active/);<br>> <br>> Almost all reasonable rancid installations acquire a collection of<br>> customizations like this, it's how we users make rancid do what we need<br>> it to do :-)<br>> <br>> You might want to tweak that regex a bit more, eg the 0 so probably use<br>> a /d+, I will leave that up to you.<br>> <br>> <br>> <br>> <br>> On 03/02/2014 18:44, Peter Conrad wrote:<br>> > Hi, I have quite a few Cisco 4500-E switches running IOS XE. Every time<br>> > a switch is logged into, this line is in the next RANCID diff:<br>> > <br>> > !<br>> > <br>> >   config-register 0x2101<br>> > <br>> >   % VRF table-id 0 not active<br>> > <br>> > + % VRF table-id 0 not active<br>> > <br>> >   !<br>> > <br>> >  <br>> > <br>> > The next run, the line is removed:<br>> > <br>> >   !<br>> > <br>> >   config-register 0x2101<br>> > <br>> >   % VRF table-id 0 not active<br>> > <br>> > - % VRF table-id 0 not active<br>> > <br>> >   !<br>> > <br>> >  <br>> > <br>> > This is rather annoying because I have other systems that login to the<br>> > switches on a regular basis, so my RANCID diffs are full of this spam now.<br>> > <br>> >  <br>> > <br>> > Is there any way to filter out the line “% VRF table-id 0 not active” so<br>> > this doesn’t happen again?<br>> > <br>> >  <br>> > <br>> > Thanks<br>> > <br>> > <br>> > <br>> > _______________________________________________<br>> > Rancid-discuss mailing list<br>> > Rancid-discuss@shrubbery.net<br>> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss<br>> > <br>> <br>> <br>> -- <br>> Alan McKinnon<br>> alan.mckinnon@gmail.com<br>> <br>> _______________________________________________<br>> Rancid-discuss mailing list<br>> Rancid-discuss@shrubbery.net<br>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss<br></div></div>                                     </div></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>                                      </div></body>
</html>