[rancid] dlogin / 6248 System Up Time..

Alan McKinnon alan.mckinnon at gmail.com
Wed Jul 31 16:57:22 UTC 2013


On 31/07/2013 15:02, B. Cook wrote:
> Hello all, 
> 
> Recently updated a set of 6248's from 3.3.6.4 to 3.3.7.2.
> 
> Since then I've been getting (hourly b/c of the people in the
> organization..) updates with the 'System Up Time' being changed.. 
> 
> retrieving revision 1.189
> diff -U 4 -r1.189 10.20.0.254
> @@ -1,9 +1,9 @@
>   !RANCID-CONTENT-TYPE: Dell
>   !
>   !
>   System Description................ Dell Ethernet Switch
> - System Up Time.................... 7 days, 12h:18m:46s
> + System Up Time.................... 7 days, 13h:18m:46s
> 
> Index: configs/10.20.0.254 <http://10.20.0.254/>
> ===================================================================
> retrieving revision 1.190
> diff -U 4 -r1.190 10.20.0.254
> @@ -1,9 +1,9 @@
>   !RANCID-CONTENT-TYPE: Dell
>   !
>   !
>   System Description................ Dell Ethernet Switch
> - System Up Time.................... 7 days, 13h:18m:46s
> + System Up Time.................... 7 days, 14h:18m:46s
> 
> 
> I'm running rancid 2.3.8 on a CentOS 6.x machine (fwiw).. and the dlogin
> from Jeremy Singletary.
> 
> Any suggestions on how I could 'filter' out that change? 
> 
> Thank you for taking the time to read this and for any help you may have
> to offer.

I don't know drancid at all, I have no need of it. So flying somewhat
blind, with only common sense as a guide:

Assuming drancid somewhat follows the pattern of all the other parser
scripts, it should have a loop that processes each line of output for a
command in sequence then does $RELEVANT_STUFF to that line.

You need to find that loop and add a check to ignore (i.e. discard) line
containing the phrase "System Up Time". Something like this:

next if (/^System Up Time.*$/);

There's lots of examples in existing code and the regex may need
tweaking depending on what Dell's output. Especially check for the
phrase System Up Time being used elsewhere in lines that you DO want to
keep.

Onto why this happens:

Is this a new feature of Dell kit to display the up time? Did they
change the exact format used?


-- 
-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list