[rancid] Re: Rancid Reports Config Changes when none have taken place

Jon Peatfield J.S.Peatfield at damtp.cam.ac.uk
Mon Oct 12 21:45:04 UTC 2009


On Mon, 5 Oct 2009, Shane Kavanagh wrote:

> Hi all
>
> I am having an issue with rancid reporting changes to ports in a VLAN when
> no changes have taken place.
>
> Here is an example
>
> - !VLAN: 4    server                           active    Fa1/0/1, Fa1/0/2,
> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8
> - !VLAN:                                                 Fa1/0/9, Fa1/0/10,
> Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15
> - !VLAN:                                                 Fa1/0/16, Gi1/0/2
> + !VLAN: 4    server                           active    Fa1/0/1, Fa1/0/2,
> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11,
> Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2
>
> note that when rancid stores the information id broke it up onto 3 lines and
> when it retrieves the config again it has it on one line.  This does not
> happen every time it retrieves the config.
>
> Any Ideas or suggestions welcome.

I see similar formatting differences in the output from some Cisco 
switches if I run rancid-run from a terminal - since the terminal width 
seems to get through to the switch and IOS tries to format the lines to 
look pretty.

If I always make sure that rancid-run is run without a terminal (so no 
width to get passed through) then for output doesn't change.

There are some places in the code where it tried to set terminal-width 0 
(or equivalent) but as far as I can tell rancid-run uses options which 
don't force that.


-- 
/--------------------------------------------------------------------\
| "Computers are different from telephones.  Computers do not ring." |
|       -- A. Tanenbaum, "Computer Networks", p. 32                  |
---------------------------------------------------------------------|
| Jon Peatfield, _Computer_ Officer, DAMTP,  University of Cambridge |
| Mail:  jp107 at damtp.cam.ac.uk     Web:  http://www.damtp.cam.ac.uk/ |
\--------------------------------------------------------------------/


More information about the Rancid-discuss mailing list