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 wrote: > What is easiest way to read and write SNMP values with Python? > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

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

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 if

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 18 Apr, 22:38, Daniel Kluev 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 -- http://mail.python.org/mailma

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-18 Thread Chris Angelico
On Tue, Apr 19, 2011 at 1:23 AM, Aldo Ceccarelli 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 further processing to get

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 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 pa

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
gt; there is also a module called pysnmp and you can look into it to see if > > it meets your need. > > > frank > > Thanks Frank! I've browsed pysnmp as you kindly adviced, now looking > also intohttp://pynetsnmp.sourceforge.net/ > KR Aldo This is 6-7 year old stale mem

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 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 a

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 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 with "Thi

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

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 / forwar

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 t

Re: (snmp code) perl to python

2010-04-25 Thread John Bokma
Shabbir Ahmed 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 perl code to it b

Re: (snmp code) perl to python

2010-04-25 Thread lkcl
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

(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

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

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. -- http://mail.python.org/ma

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.sou

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 Pythonee

Re: SNMP agent

2007-04-05 Thread alain
ut the agent functionality is somewhat > >primitive. I need something 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 &

Re: SNMP agent

2007-04-05 Thread Cameron Laird
n-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 sev

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

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

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 ?

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

2007-03-23 Thread kyosohma
o replace > VBScript (not a big fan). > > I 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 t

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

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 : (-2147221020, 'Syntaxe incorrecte', None

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'

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 finish

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 finish

Re: SNMP

2005-10-29 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). > &

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). >

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

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.

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

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

Re: High level SNMP

2004-12-16 Thread Ilya Etingof
ions tend to be more complex 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 S

Re: High level SNMP

2004-12-11 Thread Keith Dart
oes anyone 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://sourcefor

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,

Re: High level SNMP

2004-12-09 Thread Petri Laakso
On Thu, 09 Dec 2004 11:15:27 +, Jeremy Sanders wrote: > Hi - > > I'd like to write a program which basically does a few snmpgets. I haven't > been able to find a python package which gives you a nice high-level and > simple way of doing this (like PHP has). Everything appears to be > extremel

High level SNMP

2004-12-09 Thread Jeremy Sanders
Hi - I'd like to write a program which basically does a few snmpgets. I haven't been able to find a python package which gives you a nice high-level and simple way of doing this (like PHP has). Everything appears to be extremely low level. All I need is SNMPv1. Does anyone know of a simple python