All Projects → vincentbernat → Snimpy

vincentbernat / Snimpy

interactive SNMP tool with Python

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Snimpy

Network miner
Network Miner generates a network map by sending SNMP requests (LLDP/CDP/EDP).
Stars: ✭ 25 (-84.57%)
Mutual labels:  snmp
Cups
Apple CUPS Sources
Stars: ✭ 1,223 (+654.94%)
Mutual labels:  snmp
Msploitego
Pentesting suite for Maltego based on data in a Metasploit database
Stars: ✭ 124 (-23.46%)
Mutual labels:  snmp
Snmpbot
Golang SNMP library + SNMP REST API
Stars: ✭ 44 (-72.84%)
Mutual labels:  snmp
Thingsboard
Open-source IoT Platform - Device management, data collection, processing and visualization.
Stars: ✭ 10,526 (+6397.53%)
Mutual labels:  snmp
Netxms
NetXMS - Open Source network and infrastructure monitoring and management
Stars: ✭ 88 (-45.68%)
Mutual labels:  snmp
Snmp exporter
SNMP Exporter for Prometheus
Stars: ✭ 705 (+335.19%)
Mutual labels:  snmp
Ruby Snmp
A Ruby implementation of SNMP (the Simple Network Management Protocol).
Stars: ✭ 141 (-12.96%)
Mutual labels:  snmp
Jrds
Another monitoring application, intentend to be simple to use and extensible.
Stars: ✭ 72 (-55.56%)
Mutual labels:  snmp
Mib2zabbix
SNMP Template generator for Zabbix
Stars: ✭ 111 (-31.48%)
Mutual labels:  snmp
Puresnmp
Pure Python SNMPv2 Library
Stars: ✭ 52 (-67.9%)
Mutual labels:  snmp
Manubulon Snmp
Set of Icinga/Nagios plugins to check hosts and hardware with the SNMP protocol.
Stars: ✭ 63 (-61.11%)
Mutual labels:  snmp
Networkmanager
A powerful tool for managing networks and troubleshoot network problems!
Stars: ✭ 1,296 (+700%)
Mutual labels:  snmp
Trapdirector
Icingaweb2 module for receiving and handling snmp traps
Stars: ✭ 41 (-74.69%)
Mutual labels:  snmp
Autoenum
Automatic Service Enumeration Script
Stars: ✭ 134 (-17.28%)
Mutual labels:  snmp
Junos monitoring with healthbot
Healthbot configuration examples. Scripts to manage Healthbot. Closed loop automation. Healthbot building blocks description and troubleshooting guide
Stars: ✭ 17 (-89.51%)
Mutual labels:  snmp
Mibble
Mibble is an open-source SNMP MIB parser library for Java.
Stars: ✭ 84 (-48.15%)
Mutual labels:  snmp
Snmp mib archive
An archive of over 3000 unique SNMP MIBs
Stars: ✭ 159 (-1.85%)
Mutual labels:  snmp
Reconnoitre
A security tool for multithreaded information gathering and service enumeration whilst building directory structures to store results, along with writing out recommendations for further testing.
Stars: ✭ 1,824 (+1025.93%)
Mutual labels:  snmp
Pysmi
SNMP MIB parser
Stars: ✭ 96 (-40.74%)
Mutual labels:  snmp

=============================== snimpy

.. image:: https://badge.fury.io/py/snimpy.png :target: http://badge.fury.io/py/snimpy

.. image:: https://github.com/vincentbernat/snimpy/workflows/Tests/badge.svg

.. image:: https://coveralls.io/repos/vincentbernat/snimpy/badge.png :target: https://coveralls.io/r/vincentbernat/snimpy


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.

.. _IPython: http://ipython.org

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

.. _libsmi: https://www.ibr.cs.tu-bs.de/projects/libsmi/

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].