Questions tagged [pysnmp]

PySNMP is a pure Python module used for SNMP operations.

PySNMP

PySNMP is a pure-Python module that can talk SNMPv1/v2/v3, automatically download and parse MIBs via pysmi and is designed with asynchronous applications in mind (e.g. asyncio).

Its source code spans over multiple GitHub repositories and you can get started from https://github.com/etingof/pysnmp

As the original project owner passed away, future ownership is to be determined. More details can be found in https://github.com/etingof/pysnmp/issues/429

477 questions
2
votes
1 answer

pysnmp: Reuse iterator to walk several OIDs?

I am using pysnmp to query multiple oid ranges. I need to use nxtCmd because these I need to walk through, for example, all the IF addresses. However, when I use lexicographicMode=False to prevent crossing OID barriers as I walk, I cannot reuse the…
Mason3k
  • 151
  • 1
  • 8
2
votes
0 answers

Pysnmp Command Responder with GetNext or Walk operation

I am implementing a Pysnmp responder that receives SNMP GET/SET requests currently and would like to extend with Walk, getNext and getBulk operations. All the OID and its values are stored in key-value in a file. What I have tried is to use…
2
votes
1 answer

unable to access 'http://mibs.snmplabs.com/asn1/', any alternative to compile properitary mibs

unable to access 'http://mibs.snmplabs.com/asn1/', any alternative to compile proprietary mibs. Is snmpLabs down ? Need to compile mibs from .mib to .py format compatible with pysnmp
2
votes
1 answer

PYSNMP fails to read custom windows MIB

I try to load the custom MIB file generated in System32 (HOST-RESSOURCES_MIB) from Windows with PYSNMP. Code is the following: from pysnmp.hlapi import * from pysmi import debug as…
Fusse
  • 21
  • 1
2
votes
1 answer

PYSNMP agent returns new line characters as output after decoding of Hexa values

Facing a strange issue with the pysnmp agent return value. PYSNMP Agent receives the string format as "0a0a0a0a0a0a0a0a0a". In the MIB, OID is represented as HEXA STRING. When tried to return the string using…
user1720713
  • 184
  • 8
2
votes
2 answers

Async snmp table walk with PySnmp

I try to to collect table async with PySnmp, but example give back only first record. Could anyone suggest what is wrong? import asyncio from pysnmp.hlapi.asyncio import * @asyncio.coroutine def run(): snmp_engine=SnmpEngine() count=0 …
Krisz
  • 701
  • 7
  • 23
2
votes
1 answer

Error: OID not increasing: SNMPv2-SMI::dod, How to increase OID?

I am trying to implement a snmp agent with two different context name.I got some sample program .This is my agent side code look like . which I got from the snmplabs.com. I tried to implement it and I am facing some error while doing the snmpwalk.…
Visakh V
  • 55
  • 1
  • 11
2
votes
2 answers

Python SNMP GetBulk - Multiple OIDs

I need to use PySNMP's GetBulk implementation to query for a list of Table OIDs. I was able to get it to query for 1 Table OID, but unable to get it to read the Table OIDs from a list. What am I doing wrong? Please help. from…
sonofdelphi
  • 1,986
  • 5
  • 19
  • 25
2
votes
1 answer

How to find running processes on "demo.snmplabs.com" server?

I'm using PYSNMP module for python to achieve the task. But, I have yet to find an OID for this.
2
votes
2 answers

Is there a way to insert a delay in a snmpset transaction in pysnmp?

All, I am fairly new to python, but my approach to writing scripts is to try to use as few lines of code as possible without sacrificing readability. With that being said, that is what I tried to do with the script at hand. I have a script that gets…
adamz88
  • 319
  • 3
  • 12
2
votes
0 answers

pysnmp on raspberry pi

I have just installed pysnmp on my rpi, quick check with snmplab's agent side script i got error (module missing in library) pi@raspberrypi:~ $ sudo python implementing-scalar-mib-objects.py Traceback (most recent call last): File…
suryo
  • 21
  • 3
2
votes
1 answer

Get a single SNMP value with pysnmp

I'm trying to get the value of a single OID into a variable. However, I only am able to walk it using pysnmp. I want to get the value of OID 1.3.6.1.4.1.2.3.51.2.2.7.1.0 which returns value 255 if I test it using an SNMP tool. Using this code I…
mitch2k
  • 526
  • 1
  • 7
  • 15
2
votes
1 answer

Using setValue in pysnmp

I'm configure community and try to use setValue in pysnmp but it not to work: ... config.addV1System(snmpEngine, 'read-area', 'public') config.addV1System(snmpEngine, 'write-area', 'private') config.addVacmUser(snmpEngine, 2, 'read-area',…
2
votes
1 answer

How to get the request-id from snmp response

Using wireshark i can see a request-id goes on when i run this program (How to get the value of OID in Python using PySnmp), can i get the request-id number using python program similarly, when i run this program i basically give community:public…
Nikhil
  • 417
  • 1
  • 6
  • 16
2
votes
1 answer

How to get the value of OID in Python using PySnmp

Using snmpwalk I can get this from my device: OID=.1.3.6.1.4.1.5296.1.9.1.1.1.7.115.101.99.99.97.57.27.1.41 Type=OctetString Value=secca99 I tried this program in Python to get the value field from above OID: #!/usr/bin/env python3 from…
Nikhil
  • 417
  • 1
  • 6
  • 16
1 2
3
31 32