Questions tagged [snimpy]

Refer to the Python snimpy project: interactive SNMP tool with Python

Snimpy is a Python-based tool providing a simple interface to build SNMP query.

You can either use Snimpy:

  • interactively through its console (derived from Python own console or from IPython if available) ;
  • write scripts which are just Python scripts with some global variables available.
6 questions
2
votes
1 answer

Do I need different MIB with those OID?

I got this legacy powershell script that retrieve information via SNMP, I'm trying to port it in Python using snimpy. $PrintersIP = '10.100.7.47', '10.100.7.48' Function Get-SNMPInfo ([String[]]$Printers) { Begin { $SNMP = New-Object…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
1
vote
1 answer

Query by snimpy's Session takes too much time

I use snimpy library to get query by OID. This query execution time takes about ~15sec's: from snimpy.snmp import Session s = Session(host, "83L80N3") oid, host_cpu = s.get((1, 3, 6, 1, 4, 1, 9, 9, 109, 1, 1, 1, 1, 5, 1))[0] but system snmpget…
graf
  • 11
  • 2
0
votes
1 answer

snimpy.snmp.SNMPNoSuchObject: No such object was found

I'm having an exception raised, but I don't get why snimpy.snmp.SNMPNoSuchObject: No such object was found Code from snimpy import manager as snimpy def snmp(hostname, oids, mibs): logger.debug(hostname) logger.debug(oids) …
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
0
votes
1 answer

What is IF-MIB: snimpy.mib.SMIException: unable to find b'IF-MIB' (check the path)?

I followed the doc but got the following error: >>> from snimpy.manager import Manager as M from snimpy.manager import load load("IF-MIB") m = M("localhost") print(m.ifDescr[0]) Traceback (most recent call last): File "", line 4, in…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
0
votes
2 answers

find something in a string then print it in python

im sure this is simple but im not good with regexp or string manipulation and i want to learn :) I have an output from a string I get using snimpy. it looks like this: ARRIS DOCSIS 3.0 Touchstone WideBand Cable Modem <
0
votes
2 answers

Installing Snimpy and libsmi

I have spent hours trying and failing to install snimpy. Windows I have tried installing it on both my Windows PC and the server to which I'll be sending SNMP requests, but I've failed on both counts; on Windows, I have managed to successfully run…