# Catalyst switch sub-tree defaults - for use with genCatConfig # # # This file is formated with a tab width of 4. # ############################################################################### # If you're using this version of genCatConfig with Cricket 1.02 or # earlier, you'll need to uncomment the following default target and OID # definitions in order to use SNMP version 2c to retrieve HC counters. # You'll also need SNMP_Session 0.77 or later. ############################################################################### # #Target --default-- # snmp-timeout = 2.0 # snmp-retries = 5 # snmp-backoff = 1.0 # snmp-version = 1 # snmp = %snmp-community%@%snmp-host%:%snmp-port%:%snmp-timeout%:%snmp-retries%:%snmp-backoff%:%snmp-version% # #OID ifHCInOctets 1.3.6.1.2.1.31.1.1.1.6 #OID ifHCOutOctets 1.3.6.1.2.1.31.1.1.1.10 # ############################################################################### # This is where we collect stats on Cisco Catalyst switches. Target --default-- snmp-host = %switch% target-type = switch-port inst = map(module-port) # These are from the MIB2 ifmib. OID ifName 1.3.6.1.2.1.31.1.1.1.1 # These are from the cisco MIBs. OID sysTraffic 1.3.6.1.4.1.9.5.1.1.8.0 OID chassisPs1Status 1.3.6.1.4.1.9.5.1.2.4.0 OID chassisPs2Status 1.3.6.1.4.1.9.5.1.2.7.0 OID chassisFanStatus 1.3.6.1.4.1.9.5.1.2.9.0 OID chassisTempAlarm 1.3.6.1.4.1.9.5.1.2.13.0 OID ciscoMemoryPoolName 1.3.6.1.4.1.9.9.48.1.1.1.2 OID ciscoMemoryPoolUsed 1.3.6.1.4.1.9.9.48.1.1.1.5 OID entSensorValue 1.3.6.1.4.1.9.9.91.1.1.1.1.4 OID cseL2ForwardedTotalPkts 1.3.6.1.4.1.9.9.97.1.1.1.1.3 OID cseL2NewAddressLearns 1.3.6.1.4.1.9.9.97.1.1.1.1.4 OID cseL2AddrLearnFailures 1.3.6.1.4.1.9.9.97.1.1.1.1.5 OID cseL2DstAddrLookupMisses 1.3.6.1.4.1.9.9.97.1.1.1.1.6 OID cpmCPUTotalPhysicalIndex 1.3.6.1.4.1.9.9.109.1.1.1.1.2 OID cpmCPUTotal5min 1.3.6.1.4.1.9.9.109.1.1.1.1.5 # ifInOctets and ifOutOctets come from above, (in the config tree) but we # define their high capacity cousins here. datasource ifHCInOctets ds-source = snmp://%snmp%/ifHCInOctets.%inst% datasource ifHCOutOctets ds-source = snmp://%snmp%/ifHCOutOctets.%inst% datasource sysTraffic ds-source = snmp://%snmp%/sysTraffic rrd-ds-type = GAUGE datasource chassisPs1Status ds-source = snmp://%snmp%/chassisPs1Status rrd-ds-type = GAUGE datasource chassisPs2Status ds-source = snmp://%snmp%/chassisPs2Status rrd-ds-type = GAUGE datasource chassisFanStatus ds-source = snmp://%snmp%/chassisFanStatus rrd-ds-type = GAUGE datasource chassisTempAlarm ds-source = snmp://%snmp%/chassisTempAlarm rrd-ds-type = GAUGE datasource cpmCPUTotal5min ds-source = snmp://%snmp%/cpmCPUTotal5min.%inst% rrd-ds-type = GAUGE datasource ciscoMemoryPoolUsed ds-source = snmp://%snmp%/ciscoMemoryPoolUsed.%inst% rrd-ds-type = GAUGE ### Uncomments the next four data sources to use the old method for ### retrieving layer 2 switching engine stats. # # datasource cseL2ForwardedTotalPkts # ds-source = snmp://%snmp%/cseL2ForwardedTotalPkts.%inst% # # datasource cseL2NewAddressLearns # ds-source = snmp://%snmp%/cseL2NewAddressLearns.%inst% # # datasource cseL2AddrLearnFailures # ds-source = snmp://%snmp%/cseL2AddrLearnFailures.%inst% # # datasource cseL2DstAddrLookupMisses # ds-source = snmp://%snmp%/cseL2DstAddrLookupMisses.%inst% ### Uncomments the next four data sources and ensure that the path to ### the walkL2SE script is correct to use the new method for retrieving ### layer 2 switching engine stats. ### ### If you want to receive email notification when a supervisor change ### (failover) is detected, add an email address to the end of the command. ### Eg. ### ### exec:1:"\$HOME/cricket/util/walkL2SE %snmp% %rrd-datafile% admin@foo.com" ### datasource cseL2ForwardedTotalPkts ds-source = exec:1:"\$HOME/cricket/util/walkL2SE %snmp% %rrd-datafile%" datasource cseL2NewAddressLearns ds-source = exec:2:"\$HOME/cricket/util/walkL2SE %snmp% %rrd-datafile%" datasource cseL2AddrLearnFailures ds-source = exec:3:"\$HOME/cricket/util/walkL2SE %snmp% %rrd-datafile%" datasource cseL2DstAddrLookupMisses ds-source = exec:4:"\$HOME/cricket/util/walkL2SE %snmp% %rrd-datafile%" ### Temperature sensor data source. datasource entSensorValue_modintake ds-source = snmp://%snmp%/entSensorValue.%inst1% rrd-ds-type = GAUGE datasource entSensorValue_modexhaust ds-source = snmp://%snmp%/entSensorValue.%inst2% rrd-ds-type = GAUGE datasource entSensorValue_moddev1 ds-source = snmp://%snmp%/entSensorValue.%inst3% rrd-ds-type = GAUGE datasource entSensorValue_moddev2 ds-source = snmp://%snmp%/entSensorValue.%inst4% rrd-ds-type = GAUGE datasource entSensorValue_l3seintake ds-source = snmp://%snmp%/entSensorValue.%inst7% rrd-ds-type = GAUGE datasource entSensorValue_l3seexhaust ds-source = snmp://%snmp%/entSensorValue.%inst8% rrd-ds-type = GAUGE ### Target types for Catalysts targetType switch-hwstatus ds = "chassisTempAlarm, chassisFanStatus, chassisPs1Status, chassisPs2Status" targetType switch-port ds = "ifInOctets, ifOutOctets" targetType switch-port-hc ds = "ifHCInOctets, ifHCOutOctets" targetType switch-cpu ds = "cpmCPUTotal5min" targetType switch-mem ds = "ciscoMemoryPoolUsed" targetType switch-traffic ds = "sysTraffic" targetType switch-layer2 ds = "cseL2ForwardedTotalPkts, cseL2NewAddressLearns, cseL2AddrLearnFailures, cseL2DstAddrLookupMisses" view = "L2TotalPkts: cseL2ForwardedTotalPkts, L2AddrStats: cseL2NewAddressLearns cseL2AddrLearnFailures cseL2DstAddrLookupMisses" targettype line-card-temp ds = "entSensorValue_modintake, entSensorValue_modexhaust, entSensorValue_moddev1, entSensorValue_moddev2" targettype sup-temp ds = "entSensorValue_modintake, entSensorValue_modexhaust, entSensorValue_moddev1, entSensorValue_moddev2, entSensorValue_l3seintake, entSensorValue_l3seexhaust" ### Graph settings graph --default-- draw-max-as = LINE1 graph ifHCInOctets color = dark-green max-color = green draw-as = AREA legend = "Average bits in" y-axis = "bits per second" units = "bits/sec" scale = 8,* y-min = 0 # bytes = true show-max = true graph ifHCOutOctets color = blue max-color = magenta legend = "Average bits out" y-axis = "bits per second" units = "bits/sec" scale = 8,* # bytes = true show-max = true graph chassisTempAlarm color = red draw-as = AREA y-axis = "state" units = "" legend = "Temp Alarm" y-max = 8 y-min = -3 scale = "1,-" precision = 0 show-avg-max = 0 graph chassisFanStatus color = blue draw-as = STACK y-axis = "status" units = "" legend = "Fan Status" scale = "2,-" precision = 0 show-avg-max = 0 graph chassisPs1Status color = magenta draw-as = STACK y-axis = "status" units = "" legend = "PS1 Status" scale = "2,-" precision = 0 show-avg-max = 0 graph chassisPs2Status color = green draw-as = STACK y-axis = "status" units = "" legend = "PS2 Status" scale = "2,-" precision = 0 show-avg-max = 0 graph sysTraffic color = dark-green draw-as = AREA y-axis = "percentage utilization" units = "%" legend = "Average Percent of Bandwidth Utilization" graph cseL2ForwardedTotalPkts color = dark-green draw-as = AREA y-axis = "packets per second" units = "pkt/sec" legend = "Average num Packets Forwarded at Layer 2" graph cseL2NewAddressLearns color = dark-green draw-as = AREA y-axis = "addresses per second" units = "addr/sec" legend = "Average Addresses Learned" graph cseL2DstAddrLookupMisses color = blue y-axis = "misses per second" units = "miss/sec" legend = "Average Address Lookup Misses" graph cseL2AddrLearnFailures color = magenta y-axis = "failures per second" units = "fails/sec" legend = "Average Address Learn Failures" graph ciscoMemoryPoolUsed color = magenta draw-as = AREA y-axis = "bytes" units = "bytes" legend = "Bytes Used" graph cpmCPUTotal5min color = green draw-as = AREA y-axis = "percent busy" units = "%" legend = "5 Minute CPU Utilization" ### If you want temps in degrees F, modify these graphs as follows: ### ### y-axis = "degrees F" ### units = "F" ### scale = 9,*,5,/,32,+ graph entSensorValue_modintake color = blue draw-as = LINE2 y-axis = "degrees C" units = "C" legend = "Module Intake" graph entSensorValue_modexhaust color = magenta draw-as = LINE2 y-axis = "degrees C" units = "C" legend = "Module Exhaust" graph entSensorValue_moddev1 color = green draw-as = LINE2 y-axis = "degrees C" units = "C" legend = "Module Device 1" graph entSensorValue_moddev2 color = dark-green draw-as = LINE2 y-axis = "degrees C" units = "C" legend = "Module Device 2" graph entSensorValue_l3seintake color = dark-blue draw-as = LINE2 y-axis = "degrees C" units = "C" legend = "L3 SE Intake" graph entSensorValue_l3seexhaust color = red draw-as = LINE2 y-axis = "degrees C" units = "C" legend = "L3 SE Exhaust" ### Use this map for switch ports. map module-port base-oid = ifName match = "%module-number%/%port-number%" ### Use this one for EtherChannel interfaces. map ifname base-oid = ifName match = "%interface-name%" ### A match-anything map to get us the current instance for layer 2 stats. ### In a Cat 6500 with dual sups, the stats are indexed to the entity number ### of the standby supervisor's layer 2 engine. When the primary sup is ### pulled and the secondary takes over, the index changes to the old ### primary's layer 2 engine entity number. If the original comes back ### online, the stats index may move to it's MSFC entity index. It gets ### stange from there... Since there's only one index used in the table, ### (in my own humble experience...) just use the first thing we find. ### ### NOTE: This method has been abandoned in the latest version since sup ### failover generates errors until the .meta file is removed. map l2-stats base-oid = cseL2ForwardedTotalPkts match = /.*/ map mem-stats base-oid = ciscoMemoryPoolName match = DRAM map cpu-stats base-oid = cpmCPUTotalPhysicalIndex match = /^.+$/