SNMP - Simple Network Management Protocol for Common Lisp

Overview

MIB Browser

;;;; A Sample SNMPv3 Query
CL-USER 6 > (snmp:with-open-session (s "192.168.xxx.xxx" :user "md5" :auth '(:md5 "vHunxJXPRdUyAzjY"))
(snmp:snmp-walk s "system"))
((#<ASN.1:SIMPLE-OID SNMPv2-MIB::sysDescr.0>
 "Linux 2950.lab.163.org 2.6.26-2-amd64 #1 SMP Thu Nov 25 04:30:55 UTC 2010 x86_64")
(#<ASN.1:SIMPLE-OID SNMPv2-MIB::sysObjectID.0> #<ASN.1:SIMPLE-OID SNMPv2-SMI::enterprises.8072.3.2.10>)
(#<ASN.1:SIMPLE-OID SNMPv2-MIB::sysUpTime.0> #<ASN.1:TIMETICKS (19038239) 52:53:02.39>)
(#<ASN.1:SIMPLE-OID SNMPv2-MIB::sysContact.0> "Chun Tian (binghe) <binghe.lisp@gmail.com>")
(#<ASN.1:SIMPLE-OID SNMPv2-MIB::sysName.0> "2950.lab.163.org")
(#<ASN.1:SIMPLE-OID SNMPv2-MIB::sysLocation.0> "Hangzhou")
(#<ASN.1:SIMPLE-OID SNMPv2-MIB::sysORLastChange.0> #<ASN.1:TIMETICKS (0) 0:00:00.00>)
... )

;;;; Load a new MIB into Lisp at runtime
CL-USER 7 > (snmp:load-mib #p"MIB:IETF;IF-MIB")
T
CL-USER 8 > (asn.1:oid "ifTable")
#<ASN.1:OBJECT-ID IF-MIB::ifTable (2) [1]>

Features

Supported implementations

Currently at least these implementations are supported:

Community

This project has started January 2006. There isn't much of a community yet, though I'd like there to be one. So, you're invited to join the mailing list, announce yourself and even join the effort!

Development discussion takes place on cl-net-snmp-general

Project tracking happens on GitHub. Please take note of the guidelines before entering a bug or enhancement request into the database.

Development

Development will at least follow the steps outlined below. Yet to be determined is whether the currently mentioned steps will be enough to release version 1.0. Possibly, UDP sockets remain to be addressed before doing 1.0; that will depend on your reactions :-)

The targeted implementations listed in the status table below are not a final list: others can be added if/when the need or interest arises.

To use the latest development version, make sure you have git installed and execute this command:

 $ git clone https://github.com/cl-net-snmp/snmp.git

Download & Old Releases

All release files can be downloaded here.


Back to Common-lisp.net.
Valid XHTML 1.0 Strict