-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
objectIdentity object not properly initialized #223
Comments
That's right, You will also need the |
Thanks etingof. It works following your reply. I now understand that pysnmp needs mibs to be installed as a python module named like mibname.py. Is there a command to install some other mibs besides the built-in mibs installed along with pysnmp? How to list what mibs are already installed? |
No need to compile MIB files into Python. If you configure the source of ASN.1 MIBs, the translation would happen behind the scene. But you can also compile ASN.1 MIB(s) into Python with mibdump tool. |
If I configure the source of ASN.1 MIBs, it will download and translate the ASN.1 MIB on the fly. That may take some more time than a local copy of MIB. I noticed that SNMPv2-MIB.py exists both in ~/.pysnmp/mibs and ~/.local/lib/python3.5/site-packages/pysnmp/smi/mibs. However, IF-MIB.py only exists in ~/.pysnmp/mibs folder. Why is that? |
This downloading and translation happens just once and results in caching the translated module in
I am guessing that you played with MIB compiler at the moment when pysnmp was not available so the compiler tried to translate |
Thanks etingof. When using mibdump.py to generate MIBs in pysnmp format, can I generate mib indices? Where is the indices file and how it is used? |
Hi. Regards.. |
I installed pysnmp and tried examples from the website snmplabs.com. I got the following error:
However, I could run the following example code ok.
The text was updated successfully, but these errors were encountered: