Hi,
im trying to monitor Fex status on cisco nexus devices. The issue i come to is that to name each item correctly, I need to modify the {#SNMPINDEX} (or the value).
I've tried many combinations of regsub to modify the macro in the SNMP OID but i still cannot get it to work. The regex is good, however, it does not run as code. I am trying to do this in a discovery rule.
Below are two examples. the text in red is the part i'd like to extract
SNMPv2-SMI::mib-2.47.1.1.1.1.2.100000022 = STRING: "Fex-100 Fabric Extender Module: 32x10G BaseT downlinks in FixedModule-1"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.101000022 = STRING: "Fex-101 Fabric Extender Module: 32x10G BaseT downlinks in FixedModule-1"
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.100021590 = INTEGER: 34 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.100021591 = INTEGER: 29
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.100021592 = INTEGER: 23 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.100021593 = INTEGER: 33
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.101021590 = INTEGER: 29 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.101021591 = INTEGER: 30
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.101021592 = INTEGER: 22 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.101021593 = INTEGER: 32
Thanks in advance
im trying to monitor Fex status on cisco nexus devices. The issue i come to is that to name each item correctly, I need to modify the {#SNMPINDEX} (or the value).
I've tried many combinations of regsub to modify the macro in the SNMP OID but i still cannot get it to work. The regex is good, however, it does not run as code. I am trying to do this in a discovery rule.
Below are two examples. the text in red is the part i'd like to extract
SNMPv2-SMI::mib-2.47.1.1.1.1.2.100000022 = STRING: "Fex-100 Fabric Extender Module: 32x10G BaseT downlinks in FixedModule-1"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.101000022 = STRING: "Fex-101 Fabric Extender Module: 32x10G BaseT downlinks in FixedModule-1"
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.100021590 = INTEGER: 34 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.100021591 = INTEGER: 29
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.100021592 = INTEGER: 23 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.100021593 = INTEGER: 33
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.101021590 = INTEGER: 29 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.101021591 = INTEGER: 30
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.101021592 = INTEGER: 22 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.101021593 = INTEGER: 32
Thanks in advance
Comment