Hi , I have created one snmp mib , and tried to send a sample trap using a script written in python using pysnmp. but i got error as follows ,'pysnmp.smi.error.SmiError: MIB file "mymib.py[co]" not found in search path'. Can any one help me please? I'm attaching the script i used and mib file. Thank you
I have fixed the issue that i reported by creating my mib file into py by the command 'build-pysnmp-mib -o MY-MIB.py MY-MIB' and copy it into the path '/usr/local/lib/python2.7/dist-packages/pysnmp/smi/mibs' But my doubts are : Is there any other option to send snmp trap using python with OID and host id only and without mib file in trap sender.
Your question is not appropriate here, and you're unlikely to get an answer. This tracker is for bugs in python and its standard library. It is not for asking for help with third party packages. See my other comment for a pointer to an appropriate venue for pysnmp questions.
History
Date
User
Action
Args
2022-04-11 14:58:12
admin
set
github: 67575
2015-02-03 13:49:22
eric.smith
set
status: open -> closedmessages: +
2015-02-03 13:41:02
nivin
set
status: closed -> openmessages: +
2015-02-03 13:30:07
eric.smith
set
status: open -> closedtype: compile error -> behaviorcomponents: - Buildnosy: + eric.smithmessages: + resolution: third partystage: resolved