Skip to main content
https://badge.fury.io/py/snimpy.svg https://github.com/vincentbernat/snimpy/workflows/Tests/badge.svg https://coveralls.io/repos/vincentbernat/snimpy/badge.svg

Interactive SNMP tool.

Snimpy is a Python-based tool providing a simple interface to build SNMP query. Here is a very simplistic example that allows us to display the routing table of a given host:

load("IP-FORWARD-MIB")
m=M("localhost", "public", 2)
routes = m.ipCidrRouteNextHop
for x in routes:
    net, netmask, tos, src = x
    print("%15s/%-15s via %-15s src %-15s" % (net, netmask, routes[x], src))

You can either use Snimpy interactively throught its console (derived from Python own console or from IPython if available) or write Snimpy scripts which are just Python scripts with some global variables available.

Snimpy requires libsmi to work correctly. See the documentation for more information.

Features

Snimpy is aimed at being the more Pythonic possible. You should forget that you are doing SNMP requests. Snimpy will rely on MIB to hide SNMP details. Here are some “features”:

  • MIB parser based on libsmi (through CFFI)

  • SNMP requests are handled by PySNMP (SNMPv1, SNMPv2 and SNMPv3 support)

  • scalars are just attributes of your session object

  • columns are like a Python dictionary and made available as an attribute

  • getting an attribute is like issuing a GET method

  • setting an attribute is like issuing a SET method

  • iterating over a table is like using GETNEXT

  • when something goes wrong, you get an exception

Release files for snimpy 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snimpy 1.1.2
File Size Uploaded
snimpy-1.1.2.tar.gz 78.3 kB Details

Release files / snimpy-1.1.2.tar.gz

Download URL snimpy-1.1.2.tar.gz
Size 78.3 kB
Tags Source
SHA-256 checksum
How to use checksums
853363f8a64ca3a3fbefd896785715aa4c253650764f7c3455f19804bb760225
BLAKE2b-256 checksum
How to use checksums
75207ac57629cf5511da73a10796369857d84c57cc50c264cc591590b9153094
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.8.14

1 release file

0.8.13

1 release file

0.8.12

1 release file

0.8.11

1 release file

0.8.10

1 release file

0.8.9

0.8.8

1 release file

0.8.7

1 release file

0.8.6

1 release file

0.8.5

1 release file

0.8.4

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6

1 release file

0.5.1

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2.1

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page