open-switch / opx-snmp Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://openswitch.net
Home Page: https://openswitch.net
If i start an snmpwalk it breaks with:
# snmpwalk -v 2c -cpublic localhost .1.3.6.1.2.1
iso.3.6.1.2.1.1.1.0 = STRING: "Platform:S4248FBL-ON, NOS:OPXunstable"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.674
iso.3.6.1.2.1.1.3.0 = Timeticks: (10703) 0:01:47.03
iso.3.6.1.2.1.1.4.0 = STRING: "OpenSwitch.net"
iso.3.6.1.2.1.1.5.0 = STRING: "OPX"
iso.3.6.1.2.1.1.6.0 = STRING: "Santa Clara, CA"
iso.3.6.1.2.1.1.7.0 = INTEGER: 6
iso.3.6.1.2.1.1.8.0 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.2.2.1.1.66 = INTEGER: 66
iso.3.6.1.2.1.2.2.1.1.66 = INTEGER: 66
Error: OID not increasing: iso.3.6.1.2.1.2.2.1.1.66
>= iso.3.6.1.2.1.2.2.1.1.66
journal show the following error
Oct 01 19:32:00 r3 SNMPAgent[10224]: SNMPAgent: version is v2
Oct 01 19:32:00 r3 SNMPAgent[10224]: Starting agent
Oct 01 19:32:00 r3 SNMPAgent[10224]: Traceback (most recent call last):
Oct 01 19:32:00 r3 SNMPAgent[10224]: File "/usr/sbin/SNMPAgent", line 293, in <module>
Oct 01 19:32:00 r3 SNMPAgent[10224]: agent.serve_forever()
Oct 01 19:32:00 r3 SNMPAgent[10224]: File "/usr/sbin/SNMPAgent", line 284, in serve_forever
Oct 01 19:32:00 r3 SNMPAgent[10224]: self._snmpEngine.transportDispatcher.runDispatcher()
Oct 01 19:32:00 r3 SNMPAgent[10224]: File "/usr/local/lib/python2.7/dist-packages/pysnmp/carrier/asyncore/dispatch.py", line 50, in runDispatcher
Oct 01 19:32:00 r3 SNMPAgent[10224]: raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info())))
Oct 01 19:32:00 r3 SNMPAgent[10224]: pysnmp.error.PySnmpError: poll error: Traceback (most recent call last):
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/local/lib/python2.7/dist-packages/pysnmp/carrier/asyncore/dispatch.py", line 46, in runDispatcher
Oct 01 19:32:00 r3 SNMPAgent[10224]: use_poll=True, map=self.__sockMap, count=1)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/lib/python2.7/asyncore.py", line 220, in loop
Oct 01 19:32:00 r3 SNMPAgent[10224]: poll_fun(timeout, map)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/lib/python2.7/asyncore.py", line 201, in poll2
Oct 01 19:32:00 r3 SNMPAgent[10224]: readwrite(obj, flags)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/lib/python2.7/asyncore.py", line 123, in readwrite
Oct 01 19:32:00 r3 SNMPAgent[10224]: obj.handle_error()
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/lib/python2.7/asyncore.py", line 108, in readwrite
Oct 01 19:32:00 r3 SNMPAgent[10224]: obj.handle_read_event()
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/lib/python2.7/asyncore.py", line 449, in handle_read_event
Oct 01 19:32:00 r3 SNMPAgent[10224]: self.handle_read()
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/local/lib/python2.7/dist-packages/pysnmp/carrier/asyncore/dgram/base.py", line 170, in handle_read
Oct 01 19:32:00 r3 SNMPAgent[10224]: self._cbFun(self, transportAddress, incomingMessage)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/local/lib/python2.7/dist-packages/pysnmp/carrier/base.py", line 70, in _cbFun
Oct 01 19:32:00 r3 SNMPAgent[10224]: self, transportDomain, transportAddress, incomingMessage
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/local/lib/python2.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
Oct 01 19:32:00 r3 SNMPAgent[10224]: self, transportDomain, transportAddress, wholeMsg
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/local/lib/python2.7/dist-packages/pysnmp/proto/rfc3412.py", line 433, in receiveMessage
Oct 01 19:32:00 r3 SNMPAgent[10224]: PDU, maxSizeResponseScopedPDU, stateReference)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/local/lib/python2.7/dist-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 161, in processPdu
Oct 01 19:32:00 r3 SNMPAgent[10224]: errorStatus, errorIndex = 'noSuchName', sys.exc_info()[1]['idx'] + 1
Oct 01 19:32:00 r3 SNMPAgent[10224]: ; File "/usr/local/lib/python2.7/dist-packages/pysnmp/smi/error.py", line 31, in __getitem__
Oct 01 19:32:00 r3 SNMPAgent[10224]: return self.__outArgs[key]
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;KeyError: 'idx'
Oct 01 19:32:00 r3 SNMPAgent[10224]: caused by <type 'exceptions.KeyError'>: 'idx'
Oct 01 19:32:00 r3 systemd[1]: opx-pysnmp.service: Main process exited, code=exited, status=1/FAILURE
Oct 01 19:32:00 r3 systemd[1]: opx-pysnmp.service: Unit entered failed state.
Oct 01 19:32:00 r3 systemd[1]: opx-pysnmp.service: Failed with result 'exit-code'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.