Questions tagged [easysnmp]
19 questions
3
votes
1 answer
SNMP sysObjectID not translated when using Python3 easysnmp module
When I query SNMP sysObjectID using easysnmp module, then returned value is in numerical notation:
$ python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more…

Martin
- 957
- 7
- 25
- 38
2
votes
2 answers
python easysnmp packge install error windows.. failed with exit status 2
I need to use snmp to get some information from my devices (port statistics, port description etc..)
but I'm struggling with some package install error that I didn't find any answers
I'm using windows 10 64bit machine and trying to install…

avishay_h
- 21
- 1
- 4
2
votes
0 answers
easysnmp library doesn't work on el-capitan
I'm running OSX ElCapitan and I've brew install easysnmp... nevertheless, when I try to import it on python, I get the following error:
Python 2.7.12 (default, Jun 29 2016, 14:05:02)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on…

Voltaire
- 21
- 4
2
votes
1 answer
Error while installing easysnmp through pip [Python]
A complete beginner here.
I've been trying to install the easysnmp library for python, and I've been encountering all sorts of cryptic c compiler related errors, I've solved most of them, but I've encountered an error that I've got no clue how to…

Daedalus
- 195
- 1
- 3
- 15
1
vote
0 answers
Easysnmp installation failed using pip in mac
I'm trying to pip install easysnmp. I've already installed net-snmp and gcc with its latest version. I'm getting the following error.
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file:…

red wing
- 43
- 9
1
vote
0 answers
Python3 snmpget TimeoutError using Easysnmp while it succeeds using bash command
I'm trying to query switches in our environment using the EasySNMP python3 package.
In our environment we have multiple switches of the same hardware model.
I've got 2 switches. Switch_A and Switch_B.
When I try to query them using the bash snmpget…

7th Sin
- 11
- 3
1
vote
0 answers
Python - dynamic mibs with netsnmp / easysnmp
So, I'm trying to build an SNMP polling service to get some inventory data off my network devices. I'm able to connect to the devices using either the netsnmp or easysnmp modules.
The issue comes along when I try to change which MIBs to use for…

Rowshi
- 360
- 2
- 11
0
votes
0 answers
python easysnmp returned NULL without setting an error
My script sometimes raport an errors when works, what I do wrong
File "/current/chudini/cga4236ver5dhcp1.py", line 73, in
snmp_set = session.set('.1.3.6.1.2.1.69.1.3.3.0','1')
File "/usr/local/lib/python3.8/dist-packages/easysnmp/session.py", line…

homcioq
- 15
- 4
0
votes
1 answer
Python3 easysnmp querying multiple switches results in a random timeout for some random switches
I've got 3 switches I'm trying to get SNMP data from. Every switch does respond from time to time, but which switches respond depends upon the order I'm querying them. I'm using easysnmp.Session.
My code (passwords obviously not shown):
import…

7th Sin
- 11
- 3
0
votes
1 answer
I'm getting an error with easysnmp on a very simple request as follows: "NameError: name 'interface' is not defined"
I have a very simple test code for testing easysnmp on a MacOS. Here is the code:
# test.py
from easysnmp import Session
session = Session(hostname='localhost', community='public', version=2)
This results in an error message as follows:
$ python…

Brady Volpe
- 31
- 4
0
votes
1 answer
Convert Python easysnmp unicode return to hex-string?
The values are coming back from the commandline like this:
#~ snmpwalk -v 2c -c someComm localhost .1.3.6.1.2.1.123.1.4.1.12 | grep -i "87 54 2A 63"
SNMPv2-SMI::mib-2.123.1.4.1.12.1.8 = Hex-STRING: 87 54 2A 63
SNMPv2-SMI::mib-2.123.1.4.1.12.1.23 =…

klaypigeon
- 97
- 2
- 8
0
votes
1 answer
snmp_walk function from easysnmp python library return empty list
I'm using snmp_walk function from easysnmp python library to get the current value from Jacarta powerZook meter but it returns an empty list (no values) but when I use Qtmib (SNMP MIB browser) I can get the value. I'm using Ubuntu 18.04 and tried…

Qudor Eng
- 368
- 3
- 10
0
votes
1 answer
Mac OS X: unable to install easysnmp via pip
I'm trying to install python easysnmp package via pip on Mac OS but got following issue
➜ ~ pip install easysnmp
Collecting easysnmp
Using cached…

Vladimir Yahello
- 243
- 1
- 2
- 10
0
votes
2 answers
How do I fix "No module named 'easysnmp'"
when I try to run the code. I am getting an error.
The error is
Traceback (most recent call last):
File "A2.py", line 2, in
from easysnmp import Session
ImportError: No module named 'easysnmp'
Note: I am getting…
0
votes
0 answers
easysnmp stops working for single IP address
I have a script that uses easysnmp get and bulkwalk modules to gather a list of all the IP addresses on a device and add them into a dictionary for further processing. The problem happens with specific IP addresses and the issue does not seem to be…

el_pollo
- 1
- 1