homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: snmp - mib error
Type: behavior Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, nivin, shinto
Priority: normal Keywords:

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:12adminsetgithub: 67575
2015年02月03日 13:49:22eric.smithsetstatus: open -> closed

messages: + msg235343
2015年02月03日 13:41:02nivinsetstatus: closed -> open

messages: + msg235342
2015年02月03日 13:30:07eric.smithsetstatus: open -> closed

type: compile error -> behavior
components: - Build

nosy: + eric.smith
messages: + msg235341
resolution: third party
stage: resolved
2015年02月03日 10:00:10nivinsetmessages: + msg235332
2015年02月03日 09:59:26berker.peksaglinkissue23385 superseder
2015年02月03日 09:59:14nivinsetfiles: + MY-MIB.txt
2015年02月03日 09:58:18shintosetnosy: + shinto
messages: + msg235331
2015年02月03日 09:50:22nivincreate

AltStyle によって変換されたページ (->オリジナル) /