Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    snimpy 0.6.1

    Download button

    No screenshots available
    Downloads: 393  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Vincent Bernat | More programs
    MIT/X Consortium Lic... / FREE
    January 17th, 2012, 23:57 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    snimpy description

    Interactive SNMP tool

    snimpy is an interactive SNMP tool written in Python.

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

    load("IP-FORWARD-MIB")
    m=M()
    routes = m.ipCidrRouteNextHop
    for x in routes:
        net, netmask, tos, src = x
        print "s/%-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.

    This is not a general-use SNMP module. You can find better ones:

     - pycopia
     - pynetsnmp, a ctype based implementation using Net-SNMP
     - PySNMP, a pure Python implementation
     - Net-SNMP own library Python
     - many others

    This is not really a replacement for snmpget, snmpwalk and snmpset. You cannot query arbitrary OID and you can only walk tables, not any node. Moreover, if remote host sends bogus value, snimpy will just stop with an exception (this is also a feature).

    At least, snimpy does not support SNMPv3 yet.

    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" of snmimpy:

     - MIB parser based on libsmi
     - SNMP requests are handled by libnetsnmp
     - 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


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Interactive SNMP | Python library | Python | SNMP | interactive

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM