Issue 23386: snmp - mib error (original) (raw)

Created on 2015-02-03 09:50 by nivin, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
snmp_script.txt nivin,2015-02-03 09:50 the code i used
MY-MIB.txt nivin,2015-02-03 09:59 this is the mib file used
Messages (6)
msg235328 - (view) Author: nivin (nivin) Date: 2015-02-03 09:50
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
msg235331 - (view) Author: Shinto Peter (shinto) Date: 2015-02-03 09:58
please attach MIB file also
msg235332 - (view) Author: nivin (nivin) Date: 2015-02-03 10:00
I have attached mib file also
msg235341 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2015-02-03 13:30
pysnmp is not part of the Python standard library. It looks like you should report issues or search for help at at pysnmp.sourceforge.net.
msg235342 - (view) Author: nivin (nivin) Date: 2015-02-03 13:41
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.
msg235343 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2015-02-03 13:49
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
2015-02-03 10:00:10 nivin set messages: +
2015-02-03 09:59:26 berker.peksag link issue23385 superseder
2015-02-03 09:59:14 nivin set files: + MY-MIB.txt
2015-02-03 09:58:18 shinto set nosy: + shintomessages: +
2015-02-03 09:50:22 nivin create