-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIBs processed with mibdump cannot be imported with load_module #168
Comments
New issues are marked as low priority by default. Becoming our commercial customers, and then your reports are handled with higher priority after triage. |
I think this question stems from how you interpreted the documentation and samples. Here’s a structured way to approach the problem: 1. Compiling MIB DocumentsYou need to call
2. Loading Compiled MIBs in PySNMPOnce you confirm that the desired We understand that MIB compilation and PySNMP usage involve a learning curve, and while we aim to provide documentation and examples, we have limited resources to offer in-depth guidance for every scenario. However, you can find extensive knowledge accumulated over the years from online resources and search engines. If you require dedicated support or expert assistance, we offer consulting services to help with more complex use cases. You can find more details here: |
it successfully "compiled" a .py file, which pysnmp failed to import. I'm not sure how to fix this, and I've read those pages. to be completely honest, I'm not sure it's the best method to offer paid assistance when you instantly mark an unresolved ticket as completed. Maybe you can't help here, but surely in this community project someone else may stop by and help? paid support is the type of thing i'd consider if I was able to get get something working, not an option I'd consider before I can even get a PoC with this library. |
Hello! If I may: are you sure that you want to use the Even in that light, I do not understand why you are getting the error you see, because the object name |
Yes, I think I mixed those parts up.
I'm not sure exactly what is going on, maybe you can replicate with the steps I used before. Trying your suggestion:
I think it may be working now, thank you very much, I think the docs could really use a super simple "compile mib into usable format" type of thing, it seems possible with a few steps but I was bouncing between pages for hours because a lot of the info seems dedicated to creating custom MIB definitions, etc. |
Expected behavior
with the mib from: https://download.mikrotik.com/routeros/7.17.2/mikrotik.mib
Using:
mibdump --destination-template pysnmp/mib-instrumentation/managed-objects-instances.j2 --destination-directory /usr/lib/python3.12/site-packages/pysnmp/smi/mibs .snmp/mibs/mikrotik.mib
should allow me to use
load_module("MIKROTIK-MIB")
Actual behavior
Detailed steps
Python package information
7.1.16
Operating system information
gentoo linux
Python information
Python 3.12.8 (main, Jan 18 2025, 11:16:35) [GCC 14.2.1 20241221] on linux
(Optional) Contents of your test script
Relevant log output
The text was updated successfully, but these errors were encountered: