469,581 Members | 1,984 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,581 developers. It's quick & easy.

SNMP agent

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 to all in advance

Alain

Apr 4 '07 #1
7 4260
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 suggestion ?

Thanks to all in advance

Alain
twistedmatrix.org?
Apr 4 '07 #2
On Apr 4, 1:30 pm, alf <ask@mewrote:
twistedmatrix.org?
I already took a look at it but the agent functionality is somewhat
primitive. I need something production-ready.

Alain

Apr 4 '07 #3
In article <11**********************@b75g2000hsg.googlegroups .com>,
alain <al********@yahoo.frwrote:
>On Apr 4, 1:30 pm, alf <ask@mewrote:
>twistedmatrix.org?

I already took a look at it but 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
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.
Apr 5 '07 #4
On Apr 5, 6:50 pm, cla...@lairds.us (Cameron Laird) wrote:
In article <1175686451.614022.171...@b75g2000hsg.googlegroups .com>,

alain <alainpo...@yahoo.frwrote:
On Apr 4, 1:30 pm, alf <ask@mewrote:
twistedmatrix.org?
I already took a look at it but 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
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.
Hi Cameron,

Thanks for the information.
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 and not real apps?

Alain

Apr 6 '07 #5
In article <11**********************@p77g2000hsh.googlegroups .com>,
alain <al********@yahoo.frwrote:
Apr 6 '07 #6
cl****@lairds.us (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 environment for
a while. Only the manager side, never tried to implement an agent. It's
pure python, so it's very portable. In theory, that also means it's not
very fast, but for what I've ever wanted it for, it was plenty fast enough.

The latest NetSNMP release apparently now includes a python binding
(http://www.net-snmp.org/docs/NEWS.html). I have not had a chance to use
it, but it sounds good.
Apr 7 '07 #7
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/exampl...nt/cmdrsp.html
I have a Python app and i would like to add someSNMPagent
functionality to it.
Apr 9 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Gionni | last post: by
1 post views Thread by Gionni | last post: by
2 posts views Thread by TiToine | last post: by
10 posts views Thread by Bennett F. Dill | last post: by
reply views Thread by ramgce2003 | last post: by
reply views Thread by vanisathish | last post: by
1 post views Thread by Dirk Van de moortel | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.