Hi,
We currently have the snmp_ta app (v1.27) collecting metrics from our Cisco MDS switches using the IF-MIB, SNMPv2-MIB, SNMPv2-SMI & ENTITY-MIB. All is working fine. Now we need to collect data using a few other mibs and I don't seem to be able to get it working.
The mib in question is CISCO-FC-FE-MIB which converted to a py mib without error. The dependencies are all present:
CISCO-FC-FE-MIB.py
CISCO-IF-EXTENSION-MIB.py
CISCO-NS-MIB.py
CISCO-SMI.py
CISCO-ST-TC.py
CISCO-TC.py
CISCO-VSAN-MIB.py
CISCO-ZS-MIB.py
The error received on every poll is:
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" Exception with bulkCmd to 10.120.143.164:161: poll error: Traceback (most recent call last):
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.5-py2.7.egg/pysnmp/carrier/asynsock/dispatch.py", line 37, in runDispatcher
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" use_poll=True, map=self.__sockMap, count=1)
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/lib/python2.7/asyncore.py", line 220, in loop
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" poll_fun(timeout, map)
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/lib/python2.7/asyncore.py", line 201, in poll2
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" readwrite(obj, flags)
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/lib/python2.7/asyncore.py", line 123, in readwrite
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" obj.handle_error()
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/lib/python2.7/asyncore.py", line 108, in readwrite
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" obj.handle_read_event()
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/lib/python2.7/asyncore.py", line 449, in handle_read_event
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" self.handle_read()
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.5-py2.7.egg/pysnmp/carrier/asynsock/dgram/base.py", line 83, in handle_read
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" self._cbFun(self, transportAddress, incomingMessage)
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.5-py2.7.egg/pysnmp/carrier/base.py", line 52, in _cbFun
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" self, transportDomain, transportAddress, incomingMessage
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.5-py2.7.egg/pysnmp/entity/engine.py", line 64, in __receiveMessageCbFun
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" self, transportDomain, transportAddress, wholeMsg
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.5-py2.7.egg/pysnmp/proto/rfc3412.py", line 453, in receiveMessage
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" cachedParams['cbCtx']
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.5-py2.7.egg/pysnmp/entity/rfc3413/cmdgen.py", line 156, in processResponsePdu
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" (cbFun, cbCtx),
03-14-2017 11:14:50.382 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.5-py2.7.egg/pysnmp/entity/rfc3413/cmdgen.py", line 599, in _handleResponse
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" varBindTable, cbCtx):
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.5-py2.7.egg/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 370, in __cbFun
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" [ self.unmakeVarBinds(varBindTableRow, lookupNames, lookupValues) for varBindTableRow in varBindTable ],
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.5-py2.7.egg/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 241, in unmakeVarBinds
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" value = varName.getMibNode().getSyntax().clone(value)
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pyasn1-0.1.6-py2.7.egg/pyasn1/type/univ.py", line 107, in clone
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" return self.__class__(value, tagSet, subtypeSpec, namedValues)
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pyasn1-0.1.6-py2.7.egg/pyasn1/type/univ.py", line 22, in __init__
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" self, value, tagSet, subtypeSpec
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pyasn1-0.1.6-py2.7.egg/pyasn1/type/base.py", line 69, in __init__
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" self._verifySubtypeSpec(value)
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ; File "/opt/splunk/etc/apps/snmp_ta/bin/pyasn1-0.1.6-py2.7.egg/pyasn1/type/base.py", line 33, in _verifySubtypeSpec
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" raise c('%s at %s' % (i, self.__class__.__name__))
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;ValueConstraintError: ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(-2147483648, 2147483647)), ValueRangeConstraint(128, 2112)) failed at: "ValueRangeConstraint(128, 2112) failed at: "0"" at FcRxDataFieldSize
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" snmp_stanza:snmp://cisco:mds9000:scc1a
I'm unclear as to what the log is trying to tell me. Can anyone help?
TIA
Hello, it looks like a constraints error. Looks like it's getting a FcRxDataFieldSize of 0 (or maybe null) when it expects a number between 128 and 2112>
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;ValueConstraintError: ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(-2147483648, 2147483647)), ValueRangeConstraint(128, 2112)) failed at: "ValueRangeConstraint(128, 2112) failed at: "0"" at FcRxDataFieldSize
Hello, it looks like a constraints error. Looks like it's getting a FcRxDataFieldSize of 0 (or maybe null) when it expects a number between 128 and 2112>
03-14-2017 11:14:50.383 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;ValueConstraintError: ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(-2147483648, 2147483647)), ValueRangeConstraint(128, 2112)) failed at: "ValueRangeConstraint(128, 2112) failed at: "0"" at FcRxDataFieldSize
Hi jkat54, Many thanks. That makes sense 🙂 Now to figure out how to fix it.
Cheers