All Apps and Add-ons

SNMP Cisco polling error.

cdstealer
Contributor

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

0 Karma
1 Solution

jkat54
SplunkTrust
SplunkTrust

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

View solution in original post

0 Karma

jkat54
SplunkTrust
SplunkTrust

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
0 Karma

cdstealer
Contributor

Hi jkat54, Many thanks. That makes sense 🙂 Now to figure out how to fix it.

Cheers

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...