Discussion:
[rancid] rancid finding changes that do not exist
Jason Humes
2015-03-12 20:05:56 UTC
Permalink
Hi
We've got some devices that rancid thinks have changed but have not, for example;


Index: configs/acs_internetmonitoringfirewall
===================================================================
- -- configs/acs_internetmonitoringfirewall (revision 3422)
@@ -344,13 +344,13 @@
ip http secure-server
ip http secure-port 4444
!
+ ip nat inside source static tcp 142.46.14.24 21 interface
+ FastEthernet0/0 21 ip nat inside source static tcp 142.46.14.172 443
+ interface FastEthernet0/0 443 ip nat inside source static tcp
+ 142.46.14.172 80 interface FastEthernet0/0 80
ip nat inside source static udp 142.46.14.167 162 interface FastEthernet0/0 162
ip nat inside source static udp 142.46.14.163 69 interface FastEthernet0/0 69
ip nat inside source static udp 142.46.14.19 514 interface FastEthernet0/0 514
ip nat inside source static udp 142.46.14.169 9996 interface FastEthernet0/0 9996
- ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21
- ip nat inside source static tcp 142.46.14.172 443 interface FastEthernet0/0 443
- ip nat inside source static tcp 142.46.14.172 80 interface FastEthernet0/0 80
ip nat inside source route-map nat interface FastEthernet0/0 overload
ip route 10.1.0.0 255.255.0.0 172.31.230.225
=================================================================

The line;

+ ip nat inside source static tcp 142.46.14.24 21 interface
+ FastEthernet0/0 21

Is actually;
ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21

Which rancid says was remvoed (-ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21)

Any idea why it is parsing the text like this?

Jason
Alan McKinnon
2015-03-12 20:36:26 UTC
Permalink
Post by Jason Humes
Hi
We've got some devices that rancid thinks have changed but have not, for example;
Index: configs/acs_internetmonitoringfirewall
===================================================================
- -- configs/acs_internetmonitoringfirewall (revision 3422)
@@ -344,13 +344,13 @@
ip http secure-server
ip http secure-port 4444
!
+ ip nat inside source static tcp 142.46.14.24 21 interface
+ FastEthernet0/0 21 ip nat inside source static tcp 142.46.14.172 443
+ interface FastEthernet0/0 443 ip nat inside source static tcp
+ 142.46.14.172 80 interface FastEthernet0/0 80
ip nat inside source static udp 142.46.14.167 162 interface FastEthernet0/0 162
ip nat inside source static udp 142.46.14.163 69 interface FastEthernet0/0 69
ip nat inside source static udp 142.46.14.19 514 interface FastEthernet0/0 514
ip nat inside source static udp 142.46.14.169 9996 interface FastEthernet0/0 9996
- ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21
- ip nat inside source static tcp 142.46.14.172 443 interface FastEthernet0/0 443
- ip nat inside source static tcp 142.46.14.172 80 interface FastEthernet0/0 80
ip nat inside source route-map nat interface FastEthernet0/0 overload
ip route 10.1.0.0 255.255.0.0 172.31.230.225
=================================================================
The line;
+ ip nat inside source static tcp 142.46.14.24 21 interface
+ FastEthernet0/0 21
Is actually;
ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21
Which rancid says was remvoed (-ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21)
Any idea why it is parsing the text like this?
You seem to have a bunch of newlines removed. Considering how rancid
works, it's hard to imagine that the bug is happening inside rancid
itself, so maybe the device itself is doing it? But, the previous time
rancid ran, it parsed the input correctly. Interesting....


What kind of device is this, what rancid version are you using, and what
device type have you configured the firewall as?
--
Alan McKinnon
***@gmail.com
heasley
2015-03-12 21:32:25 UTC
Permalink
Post by Alan McKinnon
Post by Jason Humes
Hi
We've got some devices that rancid thinks have changed but have not, for example;
Index: configs/acs_internetmonitoringfirewall
===================================================================
- -- configs/acs_internetmonitoringfirewall (revision 3422)
@@ -344,13 +344,13 @@
ip http secure-server
ip http secure-port 4444
!
+ ip nat inside source static tcp 142.46.14.24 21 interface
+ FastEthernet0/0 21 ip nat inside source static tcp 142.46.14.172 443
+ interface FastEthernet0/0 443 ip nat inside source static tcp
+ 142.46.14.172 80 interface FastEthernet0/0 80
ip nat inside source static udp 142.46.14.167 162 interface FastEthernet0/0 162
ip nat inside source static udp 142.46.14.163 69 interface FastEthernet0/0 69
ip nat inside source static udp 142.46.14.19 514 interface FastEthernet0/0 514
ip nat inside source static udp 142.46.14.169 9996 interface FastEthernet0/0 9996
- ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21
- ip nat inside source static tcp 142.46.14.172 443 interface FastEthernet0/0 443
- ip nat inside source static tcp 142.46.14.172 80 interface FastEthernet0/0 80
ip nat inside source route-map nat interface FastEthernet0/0 overload
ip route 10.1.0.0 255.255.0.0 172.31.230.225
=================================================================
The line;
+ ip nat inside source static tcp 142.46.14.24 21 interface
+ FastEthernet0/0 21
Is actually;
ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21
Which rancid says was remvoed (-ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21)
Any idea why it is parsing the text like this?
You seem to have a bunch of newlines removed. Considering how rancid
works, it's hard to imagine that the bug is happening inside rancid
itself, so maybe the device itself is doing it? But, the previous time
rancid ran, it parsed the input correctly. Interesting....
What kind of device is this, what rancid version are you using, and what
device type have you configured the firewall as?
and is the login script able to disable the pager on this device?
Jason Humes
2015-03-17 15:02:28 UTC
Permalink
Hi

This is a Cisco 1800 IOS router/firewall configured in router.db as a 'cisco'. The version of RANCID is;

***@Netmon-Backup:~$ bin/rancid -V
rancid 3.1

I'm not sure what is meant by maybe the device is doing it...doing what? The diff is done by rancid, the router just does outputs the response of 'show' commands, no?

Thanks

Jason


-----Original Message-----
From: Jason Humes
Sent: Thursday, March 12, 2015 4:06 PM
To: rancid-***@shrubbery.net
Subject: rancid finding changes that do not exist

Hi
We've got some devices that rancid thinks have changed but have not, for example;


Index: configs/acs_internetmonitoringfirewall
===================================================================
- -- configs/acs_internetmonitoringfirewall (revision 3422)
@@ -344,13 +344,13 @@
ip http secure-server
ip http secure-port 4444
!
+ ip nat inside source static tcp 142.46.14.24 21 interface
+ FastEthernet0/0 21 ip nat inside source static tcp 142.46.14.172 443
+ interface FastEthernet0/0 443 ip nat inside source static tcp
+ 142.46.14.172 80 interface FastEthernet0/0 80
ip nat inside source static udp 142.46.14.167 162 interface FastEthernet0/0 162
ip nat inside source static udp 142.46.14.163 69 interface FastEthernet0/0 69
ip nat inside source static udp 142.46.14.19 514 interface FastEthernet0/0 514
ip nat inside source static udp 142.46.14.169 9996 interface FastEthernet0/0 9996
- ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21
- ip nat inside source static tcp 142.46.14.172 443 interface FastEthernet0/0 443
- ip nat inside source static tcp 142.46.14.172 80 interface FastEthernet0/0 80
ip nat inside source route-map nat interface FastEthernet0/0 overload
ip route 10.1.0.0 255.255.0.0 172.31.230.225 =================================================================

The line;

+ ip nat inside source static tcp 142.46.14.24 21 interface
+ FastEthernet0/0 21

Is actually;
ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21

Which rancid says was remvoed (-ip nat inside source static tcp 142.46.14.24 21 interface FastEthernet0/0 21)

Any idea why it is parsing the text like this?

Jason

Loading...