Common Lisp Package: SNMP

README:

FUNCTION

Public

Undocumented

CLOSE-SESSION (SESSION)

COMPILE-MIB (&REST ARGS)

LOAD-MIB (&REST ARGS)

OPEN-SESSION (HOST &KEY (PORT *DEFAULT-SNMP-PORT*) VERSION (COMMUNITY *DEFAULT-SNMP-COMMUNITY*) (CREATE-SOCKET T) USER AUTH PRIV)

SNMP-GET (SESSION BINDINGS &KEY CONTEXT)

SNMP-GET-NEXT (SESSION BINDINGS &KEY CONTEXT)

SNMP-SET (SESSION BINDINGS &KEY CONTEXT)

UPDATE-MIB

Private

GENERATE-PRIVACY-PARAMETERS (MESSAGE)

generate a 8-bytes privacy-parameters string for use by message encrypt

NEED-REPORT-P (SESSION)

return true if a SNMPv3 session has no engine infomation set

SOCKET-SYNC (SOCKET MESSAGE &KEY (MAX-RECEIVE-LENGTH +MAX-SNMP-PACKET-SIZE+) (ENCODE-FUNCTION #'DEFAULT-RTT-FUNCTION) (DECODE-FUNCTION #'DEFAULT-RTT-FUNCTION) &AUX SEND-SEQ SEND-DATA SEND-DATA-LENGTH (SEND-RETRIES *SOCKET-SYNC-RETRIES*) RECV-MESSAGE RECV-SEQ RECV-DATA (SOCKETS (LIST SOCKET)))

sync messages on single socket

UPDATE-MIB-INTERNAL (MIB-LIST &KEY (GLOBAL T))

Update mib.lisp-expr

Undocumented

AUTHENTICATE-MESSAGE (MESSAGE KEY DIGEST)

BER-DECODE-PDU (STREAM LENGTH CLASS)

COMPUTE-PATCH-DIRECTORY-PATHNAME (SYSTEM MAJOR-VERSION)

COMPUTE-PATCH-FILE-PATHNAME (SYSTEM MAJOR-VERSION MINOR-VERSION &OPTIONAL (TYPE lisp))

DEFAULT-RTT-FUNCTION (MESSAGE)

ENCRYPT-MESSAGE (MESSAGE MESSAGE-PRIVACY-PARAMETERS MESSAGE-DATA)

EXPR-FILE (PATHNAME)

GENERATE-GLOBAL-DATA (ID LEVEL)

GENERATE-KU (KEY-STRING &KEY (HASH-TYPE MD5))

GENERATE-KUL (ENGINE-ID KU &KEY (HASH-TYPE MD5))

GENERATE-TABLE (VARS VBS NON-REPEATERS MAX-REPETITIONS)

INITIALIZE-DEFAULT-TRAP

LISP-FILE (PATHNAME)

MAKE-SNMP-RESPONSE-ERROR (SESSION QUERY RESPONSE)

SMI-P (OBJECT)

SNMP-CONNECT (HOST PORT)

SNMP-REPORT (SESSION &KEY CONTEXT)

SNMP-TRAP-INTERNAL (SESSION VARS UPTIME TRAP-OID INFORM &OPTIONAL CONTEXT)

SPLIT-VERSION (VERSION-STRING)

UPDATE-SESSION-FROM-REPORT (SESSION SECURITY-STRING)

WALK-TERMINATE-P (NEW-VARS CURRENT-VARS BASE-VARS)

MACRO

Public

Undocumented

WITH-OPEN-SESSION ((SESSION &REST ARGS) &BODY BODY)

Private

Undocumented

DEF-SMI (SYMBOL VALUE)

MAKE-MIB-PATHNAME (TYPE PATHNAME)

GENERIC-FUNCTION

Public

SNMP-BULK (OBJECT VARS &KEY (MAX-REPETITIONS 1) (NON-REPEATERS 0) CONTEXT &ALLOW-OTHER-KEYS)

SNMP Get Bulk

SNMP-INFORM (SESSION VARS &KEY (TRAP-OID *DEFAULT-TRAP-ENTERPRISE*) (UPTIME (TRUNCATE (* (GET-INTERNAL-RUN-TIME) 1/10))) (CONTEXT *DEFAULT-CONTEXT*) &ALLOW-OTHER-KEYS)

SNMP Inform, only support v2c and v3 session

SNMP-TRAP (SESSION VARS &KEY (INFORM NIL) (TRAP-OID *DEFAULT-TRAP-ENTERPRISE*) (UPTIME (TRUNCATE (* (GET-INTERNAL-RUN-TIME) 1/10))) (CONTEXT *DEFAULT-CONTEXT*) (ENTERPRISE *DEFAULT-TRAP-ENTERPRISE*) (AGENT-ADDR 0.0.0.0) (GENERIC-TRAP +ENTERPRISE-SPECIFIC+) (SPECIFIC-TRAP 0) &ALLOW-OTHER-KEYS)

SNMP Trap

SNMP-WALK (OBJECT VARS &KEY CONTEXT &ALLOW-OTHER-KEYS)

SNMP Walk, only useful for debug

Undocumented

LOAD-ALL-PATCHES (SYSTEM)

Private

SNMP-REQUEST (SESSION REQUEST BINDINGS &KEY CONTEXT &ALLOW-OTHER-KEYS)

General SNMP request operation

Undocumented

BER-ENCODE-PDU (VALUE TAG)

DECODE-MESSAGE (SESSION STREAM)

GENERATE-MESSAGE-ID (MESSAGE)

GENERATE-REQUEST-ID (PDU)

REPORT-VARIABLE-ERROR (C S V)

SEND-SNMP-MESSAGE (SESSION MESSAGE &KEY (RECEIVE T) &ALLOW-OTHER-KEYS)

SMI (OBJECT)

SNMP-QUERY-ERROR-QUERY (CONDITION)

SNMP-RESPONSE-ERROR-RESPONSE (CONDITION)

SNMP-SESSION-ERROR-SESSION (CONDITION)

SLOT-ACCESSOR

Private

Undocumented

AUTH-KEY-OF (OBJECT)

SETFAUTH-KEY-OF (NEW-VALUE OBJECT)

AUTH-LOCAL-KEY-OF (OBJECT)

SETFAUTH-LOCAL-KEY-OF (NEW-VALUE OBJECT)

AUTH-PROTOCOL-OF (OBJECT)

SETFAUTH-PROTOCOL-OF (NEW-VALUE OBJECT)

COMMUNITY-OF (OBJECT)

SETFCOMMUNITY-OF (NEW-VALUE OBJECT)

CONTEXT-OF (OBJECT)

SETFCONTEXT-OF (NEW-VALUE OBJECT)

ENGINE-BOOTS-OF (OBJECT)

SETFENGINE-BOOTS-OF (NEW-VALUE OBJECT)

ENGINE-ID-OF (OBJECT)

SETFENGINE-ID-OF (NEW-VALUE OBJECT)

ENGINE-TIME-OF (OBJECT)

SETFENGINE-TIME-OF (NEW-VALUE OBJECT)

ERROR-INDEX-OF (OBJECT)

SETFERROR-INDEX-OF (NEW-VALUE OBJECT)

ERROR-STATUS-OF (OBJECT)

SETFERROR-STATUS-OF (NEW-VALUE OBJECT)

HOST-OF (OBJECT)

SETFHOST-OF (NEW-VALUE OBJECT)

MAX-REPETITIONS (OBJECT)

MESSAGE-ID-OF (OBJECT)

SETFMESSAGE-ID-OF (NEW-VALUE OBJECT)

NON-REPEATERS (OBJECT)

PDU-OF (OBJECT)

SETFPDU-OF (NEW-VALUE OBJECT)

PORT-OF (OBJECT)

SETFPORT-OF (NEW-VALUE OBJECT)

PRIV-KEY-OF (OBJECT)

SETFPRIV-KEY-OF (NEW-VALUE OBJECT)

PRIV-LOCAL-KEY-OF (OBJECT)

SETFPRIV-LOCAL-KEY-OF (NEW-VALUE OBJECT)

PRIV-PROTOCOL-OF (OBJECT)

SETFPRIV-PROTOCOL-OF (NEW-VALUE OBJECT)

REPORT-FLAG-OF (OBJECT)

SETFREPORT-FLAG-OF (NEW-VALUE OBJECT)

REQUEST-ID-OF (OBJECT)

SETFREQUEST-ID-OF (NEW-VALUE OBJECT)

SECURITY-LEVEL-OF (OBJECT)

SETFSECURITY-LEVEL-OF (NEW-VALUE OBJECT)

SECURITY-NAME-OF (OBJECT)

SESSION-OF (OBJECT)

SETFSESSION-OF (NEW-VALUE OBJECT)

SOCKET-OF (OBJECT)

SETFSOCKET-OF (NEW-VALUE OBJECT)

VARIABLE-BINDINGS-OF (OBJECT)

SETFVARIABLE-BINDINGS-OF (NEW-VALUE OBJECT)

VERSION-OF (OBJECT)

SETFVERSION-OF (NEW-VALUE OBJECT)

VARIABLE

Public

Undocumented

*DEFAULT-CONTEXT*

*DEFAULT-SNMP-COMMUNITY*

*DEFAULT-SNMP-PORT*

*DEFAULT-SNMP-VERSION*

Private

*SOCKET-SYNC-RETRIES*

in seconds

*SOCKET-SYNC-TIMEOUT*

in seconds

Undocumented

*DEFAULT-AUTH-PROTOCOL*

*DEFAULT-PRIV-PROTOCOL*

*DEFAULT-TRAP-ENTERPRISE*

*LISP-MIBS*

*MIB-DEPENDENCY-FILE*

*MIB-EXPRESSION*

*PATCH-FORMAT-STRING*

*PRELOAD-MIBS*

*SESSION->MESSAGE*

*SMI-MAP*

*SMI-SYMBOL->VALUE-TABLE*

*SMI-VALUE->SYMBOL-TABLE*

*SNMP-CLASS-MAP*

*SNMP-PACKAGE*

*SNMP-VERSION-MAP*

CLASS

Private

BASE-PDU

All PDU type have a variable bindings

BULK-PDU

SNMP Bulk PDU

COMMON-PDU

Common PDU which have a request ID part

GET-NEXT-REQUEST-PDU

SNMP Get-Next-Request PDU

GET-REQUEST-PDU

SNMP Get-Request PDU

INFORM-REQUEST-PDU

SNMP Inform-Request PDU

MESSAGE

SNMP message base class

PDU

SNMP PDU, most PDU types are my subclass

REPORT-PDU

SNMP Report PDU

RESPONSE-PDU

SNMP Response PDU

SESSION

SNMP session base

SET-REQUEST-PDU

SNMP Set-Request PDU

SNMPV2-TRAP-PDU

SNMP V2 Trap PDU

TRAP-PDU

SNMP v1 Trap PDU

V1-MESSAGE

Community-based SNMP v1 Message

V1-SESSION

SNMP v1 session, community based

V2C-MESSAGE

Community-based SNMP v2c Message

V2C-SESSION

SNMP v2c session, community based

V3-MESSAGE

User-based SNMP v3 Message

V3-SESSION

SNMP v3 session, user security model

Undocumented

SMI (OBJECT)

CONDITION

Private

Undocumented

SNMP-BAD-VALUE-ERROR

SNMP-ERROR

SNMP-GENERIC-ERROR

SNMP-MALFORMED-RESPONSE-PDU-ERROR

SNMP-NO-SUCH-NAME-ERROR

SNMP-QUERY-ERROR

SNMP-READ-ONLY-ERROR

SNMP-RESPONSE-ATTRIBUTE-MISMATCH-ERROR

SNMP-RESPONSE-ERROR

SNMP-RESPONSE-ID-MISMATCH-ERROR

SNMP-RESPONSE-MATCH-ERROR

SNMP-RESPONSE-SPECIFIC-VARIABLE-ERROR

SNMP-RESPONSE-TOO-BIG-ERROR

SNMP-RESPONSE-TOO-LONG-ERROR

SNMP-RESPONSE-TOO-SHORT-ERROR

SNMP-SESSION-ERROR

SNMP-TIMEOUT-ERROR

SNMP-UNKNOWN-ERROR-STATUS-ERROR

SNMPV1-MALFORMED-RESPONSE-PDU-ERROR

CONSTANT

Public

Undocumented

+SNMP-VERSION-1+

+SNMP-VERSION-2C+

+SNMP-VERSION-3+

Private

+USM-LENGTH-EXPANDED-PASSPHRASE+

1M Bytes

+USM-LENGTH-KU-HASHBLOCK+

In bytes.

+USM-LENGTH-P-MIN+

In characters.

Undocumented

+AUTHENTICATION-FAILURE+

+BULK-PDU+

+COLD-START+

+EGP-NEIGHBOR-LOSS+

+ENTERPRISE-SPECIFIC+

+ERROR-STATUS-AUTHORIZATION-ERROR+

+ERROR-STATUS-BAD-VALUE+

+ERROR-STATUS-COMMIT-FAILED+

+ERROR-STATUS-GENERIC-ERROR+

+ERROR-STATUS-INCONSISTENT-NAME+

+ERROR-STATUS-INCONSISTENT-VALUE+

+ERROR-STATUS-NO-ACCESS+

+ERROR-STATUS-NO-CREATION+

+ERROR-STATUS-NO-ERROR+

+ERROR-STATUS-NO-SUCH-NAME+

+ERROR-STATUS-NOT-WRITABLE+

+ERROR-STATUS-READ-ONLY+

+ERROR-STATUS-RESOURCE-UNAVAILABLE+

+ERROR-STATUS-TOO-BIG+

+ERROR-STATUS-UNDO-FAILED+

+ERROR-STATUS-WRONG-ENCODING+

+ERROR-STATUS-WRONG-LENGTH+

+ERROR-STATUS-WRONG-TYPE+

+ERROR-STATUS-WRONG-VALUE+

+GET-NEXT-REQUEST-PDU+

+GET-REQUEST-PDU+

+INFORM-REQUEST-PDU+

+MAX-SNMP-PACKET-SIZE+

+REPORT-PDU+

+RESPONSE-PDU+

+SET-REQUEST-PDU+

+SMI-END-OF-MIBVIEW+

+SMI-NO-SUCH-INSTANCE+

+SMI-NO-SUCH-OBJECT+

+SNMP-SEC-MODEL-USM+

+SNMPV2-TRAP-PDU+

+TRAP-PDU+

+USM-AUTH-KU-LEN+

+USM-PRIV-KU-LEN+

+WARM-START+