Re: Yet another Python SNMP lib

2017-05-25 Thread Kouli
> > Unsure why you mention C. Python has a solid and efficient > implementation of SNMP with PySNMP, and except a misunderstanding about > how SNMPv3 should work, it seems better to use it than relying on > Net-SNMP which has many bugs and nobody really willing to correct them. &

Yet another Python SNMP lib

2017-05-25 Thread Kouli
Python list users, this is a rather long message primarily addressed to Vincent, but I am sending a copy to this list for those interested in SNMP and/or "object mapping frameworks"... Hello Vincent, I have been using your snimpy in few small scripts. I like it for replacing long dot/

net-snmp-python

2017-04-01 Thread Matt
Does anyone have an example of using netsnmp library to do a snmpset on a snmp v2 device? I have gotten snmpget to work fine with python I just cannot get snmpset to work. I know I have the snmp device configured correctly with read/write access since I can use snmpset on the linux(centos7

Re: SNMP

2017-03-24 Thread Kouli
Have a look at https://snimpy.readthedocs.io/en/latest/ On Fri, Mar 24, 2017 at 12:07 AM, Matt <matt.mailingli...@gmail.com> wrote: > What is easiest way to read and write SNMP values with Python? > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.

SNMP

2017-03-23 Thread Matt
What is easiest way to read and write SNMP values with Python? -- https://mail.python.org/mailman/listinfo/python-list

[issue23386] snmp - mib error

2015-02-03 Thread Eric V. Smith
Eric V. Smith added the comment: 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. -- components: -Build nosy: +eric.smith resolution: - third party stage: - resolved status: open - closed type:

[issue23386] snmp - mib error

2015-02-03 Thread nivin
nivin added the comment: 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

[issue23386] snmp - mib error

2015-02-03 Thread Eric V. Smith
Eric V. Smith added the comment: 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

[issue23385] snmp - mib error

2015-02-03 Thread nivin
New submission from nivin: 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

[issue23386] snmp - mib error

2015-02-03 Thread Shinto Peter
Shinto Peter added the comment: please attach MIB file also -- nosy: +shinto ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23386 ___ ___

[issue23386] snmp - mib error

2015-02-03 Thread nivin
Changes by nivin nivinec...@gmail.com: Added file: http://bugs.python.org/file38000/MY-MIB.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23386 ___ ___

[issue23385] snmp - mib error

2015-02-03 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - duplicate stage: - resolved status: open - closed superseder: - snmp - mib error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23385

[issue23386] snmp - mib error

2015-02-03 Thread nivin
New submission from nivin: 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

[issue23386] snmp - mib error

2015-02-03 Thread nivin
nivin added the comment: I have attached mib file also -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23386 ___ ___ Python-bugs-list mailing

capturing SNMP trap events

2014-07-04 Thread loial
I want to monitor printers for events such as the completion of printing. If the printer initiates an SNMP trap event when the job has finished printing, how can I capture this? Presumably I need some sort of deamon to listen for these trap messages. I have looked at pySNMP but am not sure

Re: Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-19 Thread Aldo Ceccarelli
On 18 Apr, 22:38, Daniel Kluev dan.kl...@gmail.com wrote: Isn't it better to use subprocess.Popen and read stdout/stderr directly? Should be much more convenient than temporary files. -- With best regards, Daniel Kluev Thanks Daniel, your solution is far better WKR! Aldo --

Re: Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-18 Thread Aldo Ceccarelli
On Apr 15, 11:00 am, Aldo Ceccarelli ceccarelli.a...@gmail.com wrote: Hello All, in my specific problem I will be happy of a response where possible to: 1. distinguish different operating systems of answering nodes 2. collect responses of Wyse thin-clients with Thin OS to get node name and

Re: Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-18 Thread Chris Angelico
On Tue, Apr 19, 2011 at 1:23 AM, Aldo Ceccarelli ceccarelli.a...@gmail.com wrote: Hello and thank you All! I've solved my problem as follows: 1. installed nmap 2. wrote a python script calling nmap nmap -sP via os.system and redirecting output to a file 3. read results file and made a

Re: Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-18 Thread Daniel Kluev
Isn't it better to use subprocess.Popen and read stdout/stderr directly? Should be much more convenient than temporary files. -- With best regards, Daniel Kluev -- http://mail.python.org/mailman/listinfo/python-list

Re: Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-16 Thread rusi
as you kindly adviced, now looking also intohttp://pynetsnmp.sourceforge.net/ KR Aldo This is 6-7 year old stale memory (and dont want to start a flame war but...) Last I looked at the snmp modules in python I vaguely remember that the perl modules were so much more feature complete that I had

Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-15 Thread Aldo Ceccarelli
Hello All, in my specific problem I will be happy of a response where possible to: 1. distinguish different operating systems of answering nodes 2. collect responses of Wyse thin-clients with Thin OS to get node name and MAC address in particular Thanks a lot in advance for any sharing / forward

Re: Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-15 Thread frankcui
On 04/15/2011 05:00 PM, Aldo Ceccarelli wrote: Hello All, in my specific problem I will be happy of a response where possible to: 1. distinguish different operating systems of answering nodes 2. collect responses of Wyse thin-clients with Thin OS to get node name and MAC address in particular

Re: Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-15 Thread Aldo Ceccarelli
On 15 Apr, 11:54, frankcui frankcu...@gmail.com wrote: On 04/15/2011 05:00 PM, Aldo Ceccarelli wrote: Hello All, in my specific problem I will be happy of a response where possible to: 1. distinguish different operating systems of answering nodes 2. collect responses of Wyse thin-clients

Re: Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-15 Thread Verde Denim
On Fri, Apr 15, 2011 at 5:00 AM, Aldo Ceccarelli ceccarelli.a...@gmail.comwrote: Hello All, in my specific problem I will be happy of a response where possible to: 1. distinguish different operating systems of answering nodes 2. collect responses of Wyse thin-clients with Thin OS to get

Python 3 and SNMP Traps

2010-12-29 Thread Joe Hughes
All: I'm using Python 3.1.3 and need to incorporate sending SNMP traps from my script. I've researched and I found pysnmp and net-snmp with python bindings. The first appears to be only for Python 2.x. The second I'm not certain about. Has anyone experience with this and able

(snmp code) perl to python

2010-04-25 Thread Shabbir Ahmed
. this class creates forks every snmp query and returns un ordered result without any information that which oid returned which result, where as in my code i query all only if a parent oid returns true, now i dont know how to read specific oid. algo of perl code, read all the ips and communities from

Re: (snmp code) perl to python

2010-04-25 Thread lkcl
to use it n convert my perl code to it but i have some problem. 1. this class creates forks every snmp query and returns un ordered result without any information that which oid returned which result, where as in my code i query all only if a parent oid returns true, now i dont know how to read

Re: (snmp code) perl to python

2010-04-25 Thread John Bokma
Shabbir Ahmed shabbir1...@gmail.com writes: hi hope all are doing good, i have code written in perl which quries too many devices and then stores the result in mysqldb, whiel shifting to python and googling i heared of and studied google asynch python code, now i wanted to use it n convert my

Python module for SNMP bindings ?

2008-05-08 Thread Banibrata Dutta
Hi, While looking around for Python API's to do SNMP, found the following link with a high level comparison -- http://urchin.earth.li/~twic/SNMP_in_Python.html i.e. options seems to be: PySNMP (complete SNMP impl.), SNMPy, yapSNMP (Net-SNMP bindings). Of those, yapSNMP seems to be most

Re: SNMP agent

2007-04-09 Thread [EMAIL PROTECTED]
Consider taking a look at pysnmp-4 -- it has been designed with Agent role in mind. Here's an example Agent script: http://pysnmp.sourceforge.net/examples/4.x/v3arch/agent/cmdrsp.html I have a Python app and i would like to add someSNMPagent functionality to it. --

Re: SNMP agent

2007-04-06 Thread Cameron Laird
In article [EMAIL PROTECTED], alain [EMAIL PROTECTED] wrote: . . . I still find it strange that, in all these years of existence, no one felt the need for a SNMP agent in Python. Do Pythoneers only write test tools

Re: SNMP agent

2007-04-06 Thread Roy Smith
[EMAIL PROTECTED] (Cameron Laird) wrote: I understand the sentiment; in principle, it shouldn't be hard to write a library which supports construction of SNMP agents in Python. I'm aware of no one who has done so publicly, though. I've used pysnmp (http://pysnmp.sourceforge.net/) in a test

Re: SNMP agent

2007-04-05 Thread Cameron Laird
; in principle, it shouldn't be hard to write a library which supports construction of SNMP agents in Python. I'm aware of no one who has done so publicly, though. Myself, I like using the Tcl-based Scotty. For severely-constrained performance, though, you'll likely have to go to C, in some form

Re: SNMP agent

2007-04-05 Thread alain
production-ready. Alain 'Doesn't exist. I understand the sentiment; in principle, it shouldn't be hard to write a library which supports construction of SNMP agents in Python. I'm aware of no one who has done so publicly, though. Myself, I like using the Tcl-based Scotty. For severely

SNMP agent

2007-04-04 Thread alain
Hi, I have a Python app and i would like to add some SNMP agent functionality to it. I know it's possible to write a sub-agent with netsnmp but it is in C and quite complicated. I know of YAPSNMP (a wrapper around NETSNMP) but it doesn't seem to support agent writing. Any suggestion ? Thanks

Re: SNMP agent

2007-04-04 Thread alf
alain wrote: Hi, I have a Python app and i would like to add some SNMP agent functionality to it. I know it's possible to write a sub-agent with netsnmp but it is in C and quite complicated. I know of YAPSNMP (a wrapper around NETSNMP) but it doesn't seem to support agent writing. Any

Re: SNMP agent

2007-04-04 Thread alain
On Apr 4, 1:30 pm, alf [EMAIL PROTECTED] wrote: twistedmatrix.org? I already took a look at it but the agent functionality is somewhat primitive. I need something production-ready. Alain -- http://mail.python.org/mailman/listinfo/python-list

Using Python to start SNMP service on remote XP hosts...

2007-03-23 Thread KDawg44
Hi, I am very new to Python and really just began studying and using it. I read that it was relatively easy to interact with Windows machines with Python and I am desperately looking for something to replace VBScript (not a big fan). I am currently deploying a Gentoo Linux SNMP server running

Re: Using Python to start SNMP service on remote XP hosts...

2007-03-23 Thread kyosohma
am currently deploying a Gentoo Linux SNMP server running Cacti in my network and would like my XP machines to report traps to this box. The SNMP service is not running by default on the machines in the network and instead of going to each one at a time, I thought I could write a script. Does

windows service with SNMP

2006-11-10 Thread DarkPearl
Sorry for language, i wanted post in FR.comp.lang.python. But... hello with all, after having to create a Windows service with py2exe, I have this problem when I launch the service: here what I find in the eventLog: The instance's SvcRun() method failed Error getting traceback -

python and snmp

2006-09-18 Thread Nicolas Miyasato
Hi all, I was just wondering if someone here had any experience with some of these implementations of the snmp protocol? pysnmp, libsnmp, snmpy. Does anybody know of another implementation? thanks in advance!!! -- miya -- http://mail.python.org/mailman/listinfo/python-list

Re: Collecting snmp data - threads, processes, twisted?

2006-02-07 Thread Mike C. Fletcher
Antal Rutz wrote: ... I'd like to collect snmp data from varoius network devices parallel. ... Could you give me some advice how can I make my script really parallel? My options maybe: 1. pySNMP (as it's full in python) 2. subprocess (I'd like to make (find) a solution as threadpool.py

Collecting snmp data - threads, processes, twisted?

2006-02-02 Thread Antal Rutz
Hi all, I'd like to collect snmp data from varoius network devices parallel. First I tried with my own threadpool class then I gave a try to Christopher Arndt's threadpool.py (http://chrisarndt.de/en/software/python/threadpool.html). I got the same result: with one thread it finished about 2

Collecting snmp data - threads, processes, twisted?

2006-02-02 Thread Antal Rutz
Hi all, I'd like to collect snmp data from varoius network devices parallel. First I tried with my own threadpool class then I gave a try to Christopher Arndt's threadpool.py (http://chrisarndt.de/en/software/python/threadpool.html). I got the same result: with one thread it finished about 2

Re: SNMP

2005-10-30 Thread Sam Merca
py wrote: From what I have seen Python does not come with an snmp module built in, can anyone suggest some other SNMP module (preferably one you have used/experienced)..I have googled and seen yapsnmp and pysnmp (which seem to be the two most active SNMP modules). Thanks I've used pysnmp

SNMP

2005-10-28 Thread py
From what I have seen Python does not come with an snmp module built in, can anyone suggest some other SNMP module (preferably one you have used/experienced)..I have googled and seen yapsnmp and pysnmp (which seem to be the two most active SNMP modules). Thanks -- http://mail.python.org/mailman

Re: SNMP

2005-10-28 Thread py
...also I am looking to work with windows, as well as linux. -- http://mail.python.org/mailman/listinfo/python-list

Re: SNMP

2005-10-28 Thread Larry Bates
py wrote: From what I have seen Python does not come with an snmp module built in, can anyone suggest some other SNMP module (preferably one you have used/experienced)..I have googled and seen yapsnmp and pysnmp (which seem to be the two most active SNMP modules). Thanks Google turns up

What's the best SNMP interface?

2005-10-11 Thread Mudcat
Hi, I don't know very much at all about SNMP, but I have an application where I need to use it. I won't be doing too much with it, just simple queries for metric values and capturing traps. I've searched on the net for information but haven't found anything that recent as to what is the best

Re: What's the best SNMP interface?

2005-10-11 Thread Grig Gheorghiu
I used pySNMP successfully. I think it's the most active SNMP-related Python project too. Grig -- http://mail.python.org/mailman/listinfo/python-list

Re: High level SNMP

2004-12-16 Thread Ilya Etingof
because they're following SNMPv3 model, which is complex. However, a simplistic high-level layer is scheduled for implementation. convert the random string it produces to a floating point number. Somehow it manages to gain 3 bytes over a float... Basic SNMP types don't seem to include floating

Re: High level SNMP

2004-12-11 Thread Keith Dart
know of a simple python package for doing this? I'd rather have something written in pure python, so that it is easily cross-platform. Jeremy The pyNMS package at sourceforge has a complete SNMP (v1, v2c) implementation. In pure Python, and fairly self contained. See http://sourceforge.net/projects

Re: High level SNMP

2004-12-09 Thread Jeremy Sanders
On Thu, 09 Dec 2004 15:34:14 +0200, Petri Laakso wrote: have you tested twistedsnmp? http://twistedsnmp.sourceforge.net/ I looked at it, but it needs Twisted compiled and installed, which is a pain. The old versions of PySNMP (version 2.XX), seem to be a lot simpler to use than later ones, so