Google

SNMP module

SNMP is a collection of classes, methods, functions of SNMP Ruby.
Constants:
ASN.1 constants
INTEGER
SNMP Integer(2) type.
OCTET_STRING
SNMP Octet String(4) type.
NULL
SNMP Null(5) type.
OBJECT_ID
Object Identifier(6) type.
IPADDRESS
SNMP IpAddress(64) type.
COUNTER32
SNMP Counter32(65) type.
GAUGE32
SNMP Gauge32(66) type.
TIMETICKS
SNMP TimeTicks(67) type.
OAPQUE
SNMP Opaque(68) type.
COUNTER64
SNMP Counter64(70) type.
NOSUCHOBJECT
SNMP noSuchObject(128) type.
NOSUCHINSTANCE
SNMP noSuchInstance(129) type.
ENDOFMIBVIEW
SNMP endOfMibView(130) type.
UCD-SNMP MIB constants
TYPE_OTHER
Unknown type?
TYPE_OBJID
OBJEC IDENTIFIER type.
TYPE_OCTETSTR
OCTET STRING type.
TYPE_INTEGER
INTEGER type.
TYPE NETADDR
Network address type?
TYPE_IPADDR
IPADDRESS type.
TYPE_COUNTER
COUNTER type.
TYPE_GAUGE
GAUGE type.
TYPE_TIMETICKS
TIMETICKS type.
TYPE_OPAQUE
OPAQUE type.
TYPE_NULL
NULL type.
TYPE_COUNTER64
COUNTER64 type.
TYPE_BITSTRING
BIT STRING type.
TYPE_NSAPADDRESS
??? type.
TYPE_UINTEGER
UINTEGER type.
MIB access constants
READWRITE
Read and write access.
READONLY
Read access..
WRITEONLY
Write access.
NOCCESS
No privilidge.
NOTIFY
???
CREATE
Read and create.
MIB implementation status constants
MANDATORY
Mandatory status.
OPTIONAL
Optional status.
OBSOLETE
Obsolete status.
DEPERCATED
Deprecated status.
CURRENT
Current statu.
Module Methods
read_module(module_name)
Read an extra module. At first, UCD-SNMP library loads IP-MIB, IF-MIB, TCP-MIB, UDP-MIB, SNMPv2-MIB, RFC1213-MIB, UCD-SNMP-MIB modules. This method loads additional module. (e.g., read_module('BRIDGE-MIB')
read_file(mib_file_name)
This method is like read_module method. It reads and parses a MIB file (possibly some modules are included).
add_mib_dir(directory_path)
UCD-SNMP library reads MIB files from default directories. This method adds a your directory into the default. You should use this method before calling read_file or read_module methods.
read_all_modules
Read up all modules found in defauls directories and additional directories appended by add_mib_dir method.

Nobuhiko Tsuruoka
Last modified: Wed Jul 5 14:53:31 JST 2000