[rancid] VRF table-id 0 not active on Cisco IOS XE Switches

heasley heas at shrubbery.net
Mon Feb 3 17:51:49 UTC 2014


Mon, Feb 03, 2014 at 06:59:26PM +0200, Alan McKinnon:
> That's very easy to do, rancid itself is full of such rules.
> 
> For an example, look in sub ShowFlash for the script "rancid", you will
> see this near line 716:
> 
>         # Filter dhcp database
>         next if (/dhcp_[^. ]*\.txt/);
> 
> if the regular expression matches, the code branches to the next line in
> the input, effectively skipping over the unwanted input.
> 
> Which IOS command returns your unwanted line? Find the command in
> @commandtable near the end of the script, it points to the sub that
> parses that command. Edit the sub by putting your custom code in it
> somewhere reasonable:
> 
> 	next if (/VRF table-id 0 not active/);
> 
> Almost all reasonable rancid installations acquire a collection of
> customizations like this, it's how we users make rancid do what we need
> it to do :-)
> 
> You might want to tweak that regex a bit more, eg the 0 so probably use
> a /d+, I will leave that up to you.

it could be from logging too; if logging is enabled on your vtys.
> 
> 
> 
> On 03/02/2014 18:44, Peter Conrad wrote:
> > Hi, I have quite a few Cisco 4500-E switches running IOS XE. Every time
> > a switch is logged into, this line is in the next RANCID diff:
> > 
> > !
> > 
> >   config-register 0x2101
> > 
> >   % VRF table-id 0 not active
> > 
> > + % VRF table-id 0 not active
> > 
> >   !
> > 
> >  
> > 
> > The next run, the line is removed:
> > 
> >   !
> > 
> >   config-register 0x2101
> > 
> >   % VRF table-id 0 not active
> > 
> > - % VRF table-id 0 not active
> > 
> >   !
> > 
> >  
> > 
> > This is rather annoying because I have other systems that login to the
> > switches on a regular basis, so my RANCID diffs are full of this spam now.
> > 
> >  
> > 
> > Is there any way to filter out the line ?% VRF table-id 0 not active? so
> > this doesn?t happen again?
> > 
> >  
> > 
> > Thanks
> > 
> > 
> > 
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss at shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> > 
> 
> 
> -- 
> Alan McKinnon
> alan.mckinnon at gmail.com
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss


More information about the Rancid-discuss mailing list