-
Notifications
You must be signed in to change notification settings - Fork 10
NetSNMP
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
Unzip mibs.zip in the same install directory as oscar.jar
####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
#####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
The OCTET STRING type represents arbitrary binary or textual data. Although the SMI-specified size limitation for this type is 65535 octets, MIB designers should realize that there may be implementation and interoperability limitations for sizes in excess of 255 octets.
`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
OSCAR - OpenSource Cablemodem file AssembleR