Comments (6)
There were quite a few reports on walk operations, so you need to enable debugging https://www.pysnmp.com/pysnmp/examples/#using-these-examples and then compare to those.
from pysnmp.
Hi @lextm,
Thank you for your prompt response. I have utilized the debug command as suggested and have collected the following results from my snmp walk:
When the returned value is null (observed in the standard SNMP walk results) no errors are raised. The error-status is 'noError'. But it stops everytime a null value is introduced in the walk. I conducted the walk from various angles, consistently obtaining the same results. In the alternative SNMP utility, there are over 300 null values from 4700 values, all reacting the same when I change the walk root subtree.
I am eager to contribute to resolving this issue, given that SNMP walking is a critical component of my application. I am willing to assist with development or provide any information needed for debugging. If you prefer, I am open to allowing you to log onto my machine for direct debugging.
Here is a snippet of the response for the OID with a null value:
2023-11-20 09:53:51,897 pysnmp: sendPdu: current time 5 ticks, one tick is 0.5 seconds
2023-11-20 09:53:51,897 pysnmp: sendPdu: new sendPduHandle 727660, timeout 40.0 ticks, cbFun <bound method CommandGenerator.processResponsePdu of <pysnmp.entity.rfc3413.cmdgen.BulkCommandGenerator object at 0x000002B3F98A7DC0>>
2023-11-20 09:53:51,911 pysnmp: sendPdu: MP succeeded
2023-11-20 09:53:51,915 pysnmp: receiveMessage: msgVersion 0, msg decoded
2023-11-20 09:53:51,917 pysnmp: receiveMessage: MP succeded
2023-11-20 09:53:51,917 pysnmp: receiveMessage: PDU GetResponsePDU:
request-id=2315122
error-status=noError
error-index=0
variable-bindings=VarBindList:
VarBind:
name=1.3.6.1.2.1.43.8.2.1.16.1.1
value=ObjectSyntax:
simple=SimpleSyntax:
empty=2023-11-20 09:53:51,928 pysnmp: sendPdu: current time 5 ticks, one tick is 0.5 seconds
2023-11-20 09:53:51,936 pysnmp: sendPdu: new sendPduHandle 727661, timeout 40.0 ticks, cbFun <bound method CommandGenerator.processResponsePdu of <pysnmp.entity.rfc3413.cmdgen.BulkCommandGenerator object at 0x000002B3F98A7DC0>>
2023-11-20 09:53:51,938 pysnmp: sendPdu: MP succeeded
2023-11-20 09:53:51,940 pysnmp: receiveMessage: msgVersion 0, msg decoded
2023-11-20 09:53:51,942 pysnmp: receiveMessage: MP succeded
2023-11-20 09:53:51,943 pysnmp: receiveMessage: PDU GetResponsePDU:
request-id=2315124
error-status=noError
error-index=0
variable-bindings=VarBindList:
VarBind:
name=1.3.6.1.2.1.43.8.2.1.16.1.1
value=ObjectSyntax:
simple=SimpleSyntax:
empty=
Here is a response from a oid that returns Samsung External Media Handler:
2023-11-20 09:53:51,830 pysnmp: sendPdu: current time 4 ticks, one tick is 0.5 seconds
2023-11-20 09:53:51,843 pysnmp: sendPdu: new sendPduHandle 727659, timeout 40.0 ticks, cbFun <bound method CommandGenerator.processResponsePdu of <pysnmp.entity.rfc3413.cmdgen.BulkCommandGenerator object at 0x000002B3F98A7DC0>>
2023-11-20 09:53:51,879 pysnmp: sendPdu: MP succeeded
2023-11-20 09:53:51,892 pysnmp: receiveMessage: msgVersion 0, msg decoded
2023-11-20 09:53:51,894 pysnmp: receiveMessage: MP succeded
2023-11-20 09:53:51,895 pysnmp: receiveMessage: PDU GetResponsePDU:
request-id=2315120
error-status=noError
error-index=0
variable-bindings=VarBindList:
VarBind:
name=1.3.6.1.2.1.43.8.2.1.15.1.2
value=ObjectSyntax:
simple=SimpleSyntax:
string=Samsung External Media Handler2023-11-20 09:53:51,897 pysnmp: receiveMessage: cache read by sendPduHandle 727659
2023-11-20 09:53:51,897 pysnmp: receiveMessage: processResponsePdu succeeded
2023-11-20 09:53:51,897 pysnmp: sendPdu: securityName s-5824012256909706693, PDU
GetNextRequestPDU:
request-id=2315122
error-status=noError
error-index=0
variable-bindings=VarBindList:
VarBind:
name=1.3.6.1.2.1.43.8.2.1.15.1.2
value=ObjectSyntax:
simple=SimpleSyntax:
empty=
I appreciate your assistance and look forward to your guidance on resolving this matter.
Best regards,
Christo
from pysnmp.
I managed to find a better solution for walking.
https://github.com/lextudio/pysnmp
@lextm thanks for forking the above and improving it :)
from pysnmp.
https://github.com/lextudio/pysnmp
from pysnmp.
Then the changes might come from pysnmp community patches (from Splunk or others) that have been integrated into 5.0 releases.
You can read #429 to learn more about the ecosystem changes.
from pysnmp.
Again appreciate the initiative @lextm!
from pysnmp.
Related Issues (20)
- Sporadic Timeout using set HOT 2
- <lambda>() takes 3 positional arguments but 4 were given HOT 5
- Project URL now redirects to Suspicious/Malware Site HOT 1
- Sending requests from specific interface not working.
- Get no result of getCmd HOT 4
- Attempted "__hash__" operation on ASN.1 schema object HOT 13
- pysnmp doesn't support IPv6 link-local addresses HOT 1
- Hello there, new to python and pysnmp. HOT 2
- AttributeError: 'UdpTransportTarget' object has no attribute 'contextName' HOT 2
- snmpget retry HOT 1
- Some authentication/privacy combinations are not working correctly? HOT 1
- .snmprec Generation HOT 1
- pysnmp usinng with SNMP V3 HOT 3
- Strange error when running the code given HOT 4
- This project is dead please open issues with a fork HOT 1
- MibCompiler error when node name is 'as',the key world change to 'pysmi_as'
- Pysnmp HOT 1
- Python 3.12 compatibility - deprecated asyncore HOT 2
- Identical communities for read and write HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysnmp.