Linux / UNIX Tech Support Forum
This is a discussion on Python SNMP library ( networking framework ) within the Coding in General forums, part of the Development/Scripting category; Hi all, i'am using python with snmp to develop an interface with Pygtk, the problem is that i don't know ...
|
|||||||
| Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all,
i'am using python with snmp to develop an interface with Pygtk, the problem is that i don't know how to use python to use snmp commands and which library use for this aim. i have installed net-snmp. is there documentation about how to use python with snmp... Thank you. |
| Sponsored Links | ||
|
|
|
||||
|
You need the following under Debian Linux:
__________________
Vivek Gite Linux Evangelist |
|
||||
|
__________________
Vivek Gite Linux Evangelist |
|
|||
|
is there only this solution to develop an application with python using snmp ?
i'am searching about a simple library to use snmpget, snmpset ...Etc. Because with pysnmp i find it difficult to do this and you must type a long code juste to run snmpget... thank you. |
|
||||
|
It is API thingy, so end up writing a bit more. I'm not sure what you are trying to developer here, but you can just run commands using os.system() or os.popen(). For e.g.
Code:
#!/usr/bin/python
import os
os.system('ls');
os.system('date');
__________________
Vivek Gite Linux Evangelist |
|
|||
|
thank you this is what i'am searching.
Actually, i'am developping an interface using pygtk to control an équipement, then i must store the results given by snmp in a data base. Do you think that using os is the most appropriate solution and how can i interprete the responses to get something clear on the interface. |
|
||||
|
Use API, if you need to read data and store it to database. os.system() is more suitable; if you just want last shell command exit status but it is not good for processing the data.
__________________
Vivek Gite Linux Evangelist Last edited by nixcraft; 14-05-2009 at 04:53 PM. |
![]() |
| Tags |
| python , snpm |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gd library | aammiitt | CentOS / RHEL / Fedora | 3 | 28-12-2008 08:00 PM |
| Library wanted | dnquynh | CentOS / RHEL / Fedora | 1 | 07-07-2008 03:27 PM |
| static library,dynamic | narmadakumari | Linux software | 0 | 17-06-2008 12:16 PM |
| Python with SNMP Supportq | rcordeiro | Shell scripting | 2 | 16-12-2006 10:48 PM |
| Library Linking in GCC | newbie-wan | Coding in General | 1 | 18-10-2006 02:28 AM |