473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

High level SNMP

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

Jul 18 '05 #1
4 3413
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

Jul 18 '05 #2
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

Jul 18 '05 #3
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 <kd***@kdart.com>
vcard: <http://www.kdart.com/~kdart/kdart.vcf>
public key: ID: F3D288E4 URL: <http://www.kdart.com/~kdart/public.key>
================================================== ==========================
Jul 18 '05 #4
Jeremy Sanders <je*************@jeremysanders.net> 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
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jp Calderone | last post by:
Does anyone know of a high-level interface (something approximately on par with the level of the other common GUI toolkits) for python-xlib? Is anyone working on one? Jp -- "Pascal is...
0
by: Stefan | last post by:
I'm looking for some sort of tool that will allow me to present high level pseudocode in a way that looks similar to the way XML is presented in the browser. I would like to be able to collapse...
4
by: Keith A. Rowe | last post by:
Please direct me to unbiased resources that discuss the benefits of implementing .NET in the enterprise. Some MS materials are okay, but I need to quote nuetral third parties. I am a developer...
354
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
8
by: York | last post by:
Hi, R language has very high-level IO functions, its read.table can read a total .csv file and recogonize the types of each column. write.table can do the reverse. R's MySQL interface has...
1
by: Robert Ludewig | last post by:
Hello, I recently started to develop my own little high level, easy to use 3D API on top of managed directx for .net. The idea behind it is having a generic API that lets me create (simpler)...
2
by: Support | last post by:
Hello: I am trying to learn about Aactive Directory in VB.NET and NT security, so if you have any good resources/references, please let me know. At a high level ... in VB.NET If I am a...
11
by: Gleb Rybkin | last post by:
I searched online, but couldn't really find a standard package for working with Python and XML -- everybody seems to suggest different ones. Is there a standard xml package for Python?...
6
by: George Sakkis | last post by:
It occured to me that most times I read a csv file, I'm often doing from scratch things like assigning labels to columns, mapping fields to the appropriate type, ignoring some fields, changing...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.