Skip to content

NetSNMP

Maurice Garcia edited this page May 20, 2015 · 29 revisions

NetSNMP v5.7

OSCAR does NOT require NetSNMP, but if you desire to translate Dotted OIDs to Textual OIDs you will need to install NetSNMP

Download NetSNMP Binaries for your OS

DOCSIS & PacketCable MIBs

Unzip mibs.zip in the same install directory as oscar.jar

Review MIBS

####Dotted OID

Snmp11 1.3.6.1.2.1.69.1.2.1.2.1 IpAddress "0.0.0.0";

####Textual OID

Snmp11 docsDevNmAccessIp.1 IpAddress "0.0.0.0";

####Data Types####

RFC-2578

COUNTER32

Counter32

The Counter32 type represents a non-negative integer which monotonically increases until it reaches a maximum value of 2^32-1 (4294967295 decimal), when it wraps around and starts increasing again from zero.

COUNTER64

Counter64

GAUGE32

Gauge32

INTEGER32 and INTEGER

The Integer32 type represents integer-valued information between -2^31 and 2^31-1 inclusive (-2147483648 to 2147483647 decimal). This type is indistinguishable from the INTEGER type. Both the INTEGER and Integer32 types may be sub-typed to be more constrained than the Integer32 type.

The INTEGER type (but not the Integer32 type) may also be used to represent integer-valued information as named-number enumerations. In this case, only those named-numbers so enumerated may be present as a value. Note that although it is recommended that enumerated values start at 1 and be numbered contiguously, any valid value for Integer32 is allowed for an enumerated value and, further, enumerated values needn't be contiguously assigned.

Snmp11 docsDevNmAccessControl.1 Integer32 "3";

TIMETICKS

TimeTicks

This represents a non-negative integer which specifies the elapsed time between two events, in units of hundredth of a second. The range is 0 to 2e32 - 1

IPADDRESS

The IpAddress type represents a 32-bit internet address. It is represented as an OCTET STRING of length 4, in network byte-order.

Snmp11 docsDevNmAccessIp.1 IpAddress "0.0.0.0";

OCTETSTRING

Snmp11 docsDevNmAccessCommunity.1 OctetString "ReadWrite";

HEXSTRING

Snmp11 docsDevNmAccessInterfaces.1 HexString "40:00"

####Caveat

When using OSCAR for the first time with NetSNMP, there is a performance hit, a system call is required to the snmptranslate application for OID lookups. As each time you use OSCAR, a DB mapping of the Dotted-OID <=> Textual-OID is created, this will reduce the lookup time by by-passing snmptranslate.

This file is located in db/DottedTextualNetSNMPMap.json

Clone this wiki locally