Discussion:
[rancid] Cisco
Adam Korab
2011-08-02 15:21:16 UTC
Permalink
Hi rancideers,

Just added a couple SAN switches (Cisco MDS 9216i, SAN-OS 3.3(3)) to
rancid using the regular device type cisco and receive the below
cycling outputs every hour: What could cause this, a pager problem?
FWIW I've already added 'term width 0' to the usual 'terminal length
0' in bin/clogin to address the VLAN membership line-wrap behavior.

Thanks,

--Adam

Index: configs/s1
===================================================================
- -- configs/s1 (revision 1777)
- Hide quoted text -
@@ -135,10 +135,10 @@
snmp-server enable traps fcs
snmp-server enable traps rscn
snmp-server enable traps vrrp
- snmp-server enable traps snmp authentication
snmp-server enable traps fspf
snmp-server enable traps fdmi
snmp-server enable traps license
+ snmp-server enable traps snmp authentication
zone mode enhanced vsan 10
callhome
snmp-server enable traps aaa server-state-change

Index: configs/s1
===================================================================
- -- configs/s1(revision 1816)
- Hide quoted text -
@@ -135,10 +135,10 @@
snmp-server enable traps fcs
snmp-server enable traps rscn
snmp-server enable traps vrrp
+ snmp-server enable traps snmp authentication
snmp-server enable traps fspf
snmp-server enable traps fdmi
snmp-server enable traps license
- snmp-server enable traps snmp authentication
zone mode enhanced vsan 10
callhome
snmp-server enable traps aaa server-state-change
john heasley
2011-08-02 15:45:41 UTC
Permalink
Post by Adam Korab
Hi rancideers,
Just added a couple SAN switches (Cisco MDS 9216i, SAN-OS 3.3(3)) to
rancid using the regular device type cisco and receive the below
cycling outputs every hour: What could cause this, a pager problem?
FWIW I've already added 'term width 0' to the usual 'terminal length
0' in bin/clogin to address the VLAN membership line-wrap behavior.
it wasn't coded properly when the command was added to the ios code.
report it to the TAC and try a newer image or filter the line in the
rancid script.
Adam Korab
2011-08-02 16:16:09 UTC
Permalink
Hi John,
Post by john heasley
it wasn't coded properly when the command was added to the ios code.
report it to the TAC and try a newer image or filter the line in the
rancid script.
Can I get a quick how-to on filtering lines within rancid? I need
this for another application as well; I've got another line to filter
within the fortigate. I attempted modeling it after what I saw in
fnracid for conf_file_ver

# remove occurrances of conf_file_ver
next if (/^#?conf_file_ver=/);

I added a next if immediately after this one, matching off of Disk
Usage, which is also prepended with # in the config:

# remove disk usage cycling from fortianalyzer
next if (/^ #?Disk Usage/);

But it's not suppressing these. What am I missing? The line in question is:

- #Disk Usage: Free 145.30GB, Total 330.10GB
+ #Disk Usage: Free 144.76GB, Total 330.10GB

Thanks,

--Adam
john heasley
2011-08-05 00:18:24 UTC
Permalink
Post by Adam Korab
Hi John,
Post by john heasley
it wasn't coded properly when the command was added to the ios code.
report it to the TAC and try a newer image or filter the line in the
rancid script.
Can I get a quick how-to on filtering lines within rancid? I need
this for another application as well; I've got another line to filter
within the fortigate. I attempted modeling it after what I saw in
fnracid for conf_file_ver
# remove occurrances of conf_file_ver
next if (/^#?conf_file_ver=/);
I added a next if immediately after this one, matching off of Disk
# remove disk usage cycling from fortianalyzer
next if (/^ #?Disk Usage/);
either the format or case doesn't match the line properly or its in the
wrong location. I do not have a fortinet, so i don't know which it is.
Post by Adam Korab
- #Disk Usage: Free 145.30GB, Total 330.10GB
+ #Disk Usage: Free 144.76GB, Total 330.10GB
Thanks,
--Adam
Alex DEKKER
2011-08-05 07:19:31 UTC
Permalink
Post by Adam Korab
I added a next if immediately after this one, matching off of Disk
# remove disk usage cycling from fortianalyzer
next if (/^ #?Disk Usage/);
- #Disk Usage: Free 145.30GB, Total 330.10GB
+ #Disk Usage: Free 144.76GB, Total 330.10GB
Does the line really start with a space as your regexp [and that
excerpt from RANCID] suggests? I ask this because the diff emails I get
from RANCID have a space between the - or + and the line, but I don't
think that space is really there in the config.

alexd

Continue reading on narkive:
Loading...