Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > High level SNMP

Reply
Thread Tools

High level SNMP

 
 
Jeremy Sanders
Guest
Posts: n/a
 
      12-09-2004
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 package for doing this? I'd rather
have something written in pure python, so that it is easily cross-platform.

Jeremy

 
Reply With Quote
 
 
 
 
Petri Laakso
Guest
Posts: n/a
 
      12-09-2004
On Thu, 09 Dec 2004 11:15:27 +0000, 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
> extremely low level. All I need is SNMPv1.
>
> Does 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.
>


Hi, Jeremy

have you tested twistedsnmp?
http://twistedsnmp.sourceforge.net/

Petri

 
Reply With Quote
 
 
 
 
Jeremy Sanders
Guest
Posts: n/a
 
      12-09-2004
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 I might do that. That's if I can work out how to
convert the random string it produces to a floating point number. Somehow
it manages to gain 3 bytes over a float...

Jeremy

 
Reply With Quote
 
Keith Dart
Guest
Posts: n/a
 
      12-11-2004
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
> extremely low level. All I need is SNMPv1.
>
> Does 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://sourceforge.net/projects/pynms

There are few docs, sorry. If you want to use it and have any questions
then please let me know (I wrote it).

BTW, you can also read MIB files if you have libsmi installed. But the
pyNMS package contains a utility called mib2py that converts MIB objects
to Python, and the pyNMS package has most standard MIBS pre-compiled.
So, you don't really need libsmi to use the standard MIBs.


The name means Python Network Management System, and will become a
complete network management system with GUI and scriptability soon.

There is some support for creating XHTML reports, NMS web interface,
SNMP get/set, SNMP trap receiver, Ping/ICMP module, process management,
MIB browser, CLI construction kit, web protocols, easy email interface,
and asyncio framework. Works well with Linux or FreeBSD.

(PS. It can also answer your phone and take a message)



--
\/ \/
(O O)
-- --------------------oOOo~(_)~oOOo----------------------------------------
Keith Dart <(E-Mail Removed)>
vcard: <http://www.kdart.com/~kdart/kdart.vcf>
public key: ID: F3D288E4 URL: <http://www.kdart.com/~kdart/public.key>
================================================== ==========================
 
Reply With Quote
 
Ilya Etingof
Guest
Posts: n/a
 
      12-16-2004
Jeremy Sanders <(E-Mail Removed)> wrote:
> On Thu, 09 Dec 2004 15:34:14 +0200, Petri Laakso wrote:


[skipped]

> The old versions of PySNMP (version 2.XX), seem to be a lot simpler to
> use than later ones, so I might do that. That's if I can work out how to


Recent versions 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 SNMP types don't seem to include floating point numbers. Maybe you're
decoding something defined by a TEXTUAL-CONVENTION at a MIB? The protocol
(for packing floating point value into some native SNMP type) might be
specified by the TC then.

If you provide more details I'm willing to help.

-ilya
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Low-level vs High-level Programming" and a lot more... Scorpiion VHDL 1 12-25-2008 04:27 PM
SNMP module to query net-snmp milaus Perl Misc 3 08-31-2006 03:31 PM
c is a low-level language or neither low level nor high level language pabbu C Programming 8 11-07-2005 03:05 PM
Accessing higher security level from higher security level nderose@gmail.com Cisco 0 07-11-2005 10:20 PM
SNMP - Cisco - SNMP news.easynews.com Cisco 0 03-04-2004 10:44 PM



Advertisments