[rancid] Cisco APs and RANCID 3.1 => traffic counters in output

Howard Jones howie at thingy.com
Wed Jun 18 12:56:29 UTC 2014


Answering my own question, here's a small patch to remove the counter 
data from 'show vlan' for a Cisco Aironet WAP.

--- rancid-3.1/lib/ios.pm       2014-05-28 10:39:39.000000000 +0100
+++ lib/rancid/ios.pm   2014-06-17 19:37:17.000000000 +0100
@@ -393,7 +393,10 @@
                 $type = "12000";
             } elsif ($proc =~ /1240[48]\/(GRP|PRP)/ || $proc =~ 
/1241[06]\/(GRP|PRP)/) {
                 $type = "12400";
-           } else {
+           } elsif ($proc =~ /AIR-L?AP1[12][1234][[1234]/ ) {
+            $type="Aironet";
+            $device="wireless access point";
+        } else {
                 $type = $proc;
             }

@@ -1786,6 +1789,10 @@
         }

         next if (/total.*packets.*(input|output)/i);
+    # Aironet AP's traffic counters
+       next if (/\d+\s+bytes.*(input|output)/i);
+    next if (/^\s*Other\s+\d+\s+\d+\s*$/i);
+    next if (/^\s*Bridging\s+Bridge.Group.\d+\s+\d+\s+\d+\s*$/i);

         ProcessHistory("COMMENTS","keysort","IO","!VLAN: $_");
      }



More information about the Rancid-discuss mailing list