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
-1
votes
0 answers

PySnmpError: poll error While trying to run Robot Framework test with Snmp-library

Installed Snmp-library to my robot framework, while trying to do tests with it, therecome bunch of errors. First Open Snmp Connection Open Snmp V2c Connection host public This Passes, so i assume this works, but when i proceed to this Memory …
epictm
  • 1
-1
votes
1 answer

PYSNMP 4.4.12- Cannot compile custom MIBs

I'm struggling to load custom MIBs in my first attempt at pysnmp. I have read that the old versions required a compiling of the custom mibs, and the newer versions embed the compiling in backend processes. When I try either method, the script just…
enfueg0
  • 1
  • 1
-1
votes
1 answer

Retrieving printer toner information with pysnmp

I am trying to retrieve printer toner information from networked printers. I found the following reference record for printer supplies -> http://oidref.com/1.3.6.1.2.1.43.11 (OID = prtMarkerSupplies) I tried integrating the OID in the following…
-1
votes
3 answers

SNMP - Decode Hex String Value

This is my first question here, so hope it's correctly done. Im trying to get some information from a ZTE C300 OLT. The thing is when i try to get the SN of one of the ONTS I get the response in HEX-String snmpwalk -cpublic -v2c [OLTIP]…
-1
votes
1 answer

Sending Snmp responses with Python

How to send SNMPv3 Get response with Python? I have to receive SNMPV3 get Query, process the query for the OID and send response to the sender. How its possible with python?
-1
votes
2 answers

Trying to get port number (regex)

I got an output over telnet (telnetlib) from a PDU and I am trying to get the port number from the output for each servername. I managed to get the port names by using (?!E000)[A-Z]([^\sPDU]+)\d. I'll be happy for assistance getting the port number…
tabud
  • 1
  • 5
-1
votes
2 answers

whats the right MIB OID to pull the mac addresses tables of the end user in hp Procurve switches?

I have a script that can help to pull info from HP procurve by using the OID ...I need the right MIB OID to pull the mac addresses tables of the end user (the device Mac that connect to the port)
AJ AL
  • 1
  • 3
-1
votes
1 answer

snmpget() with different port other than port 161 not working

I have tried to get the name of snmp device through the below source. $sysname1 = snmpget("192.168.0.9:161", "public", ".1.3.6.1.2.1.1.5.0.0"); $sysname2 = snmpget("192.168.0.10:164", "public", ".1.3.6.1.2.1.1.5.0.0"); $sysname3 =…
-1
votes
1 answer

snmp Bad operator (DEFINITIONS):

I'm using SNMP (agent) and server but executing snmp agent (snmpwalk or snmpget) on centos,ubuntu system occurs that failure 'Bad operator (DEFINITIONS):'
-1
votes
1 answer

Return value VarBinds pysnmp

I've made my first Python SNMP agent from a custom MIB . It is supporting SNMP GET and SET requests, but it returns values ​​pre-determined by me. How do I make my function's returned varbinds' be the values ​​that users have supplied via their…
Paulo Vagner
  • 49
  • 1
  • 2
  • 8
-3
votes
1 answer

cartography of an network

I want to realize a program that would look in the MIB of a Cisco equipment. I have done research on the SNMP protocol (so I know that the equipment has what is called the agent or the server so I need a manager / client), OID, but I block enough on…
Rahim Qtr
  • 11
  • 5
-5
votes
1 answer

How to implement SNMP in python?

I am now currently working with SNMP. The package I used is pysnmp but I do not know how to implement snmp in python. The problem is, given an ip address, it should give the details of that device using snmp. Could anyone suggest me how to do it?
spooky
  • 5
  • 2
1 2 3
31
32