Discussion:
[rancid] Foundry STACKID
Jose Madrid
2010-10-01 19:58:56 UTC
Permalink
I have a few Foundry FLS648's on which I currently run Rancid. When output
the "show version" on this device, the STACKID line changes everytime
because it includes the uptime. This means that a change is picked up
everything Rancid runs. I have found the section of francid which parses
the output of show version, but not sure what exactly to edit to make it
ignore this line. Any help?

- !STACKID 1 system uptime is 21 days 17 hours 31 minutes 36 seconds
+ !STACKID 1 system uptime is 21 days 20 hours 31 minutes 31 seconds
--
It has to start somewhere, it has to start sometime. What better place than
here? What better time than now?
Jethro R Binks
2010-10-02 10:14:47 UTC
Permalink
Post by Jose Madrid
I have a few Foundry FLS648's on which I currently run Rancid. When
output the "show version" on this device, the STACKID line changes
everytime because it includes the uptime. This means that a change is
picked up everything Rancid runs. I have found the section of francid
which parses the output of show version, but not sure what exactly to
edit to make it ignore this line. Any help?
- !STACKID 1 system uptime is 21 days 17 hours 31 minutes 36 seconds
+ !STACKID 1 system uptime is 21 days 20 hours 31 minutes 31 seconds
I don't have this model, but assuming the STACKID number is useful to
have, the line in the following line should fix this, which is certainly
in my copy of francid, but not sure if it is in the current distribution
(mines a bit of a mangled copy, and can't check the repository just now).
It's in the ShowVersion function:

s/^\s*(HW|SW)/$1/;
s/^\s*(Compiled on)/SW: $1/;
s/^\s*(\(\d+ bytes\) from )/SW: $1/;
# remove uptime on newer switches
s/(STACKID \d+)\s+system uptime is.*$/$1/;

So try editing francid to add the last line.

While we're talking Foundry, someone mailed rancid@ the other day with
another Foundry-related patch and asked about others that had been sent;
can you please make yourself known to me, thanks (I didn't keep the
message, rashly).

Jethro.


. . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks, Network Manager,
Information Services Directorate, University Of Strathclyde, Glasgow, UK

The University of Strathclyde is a charitable body, registered in
Scotland, number SC015263.

Loading...