PDU public static final int PDU SNMP PDU data type OPAQUE public static final int OPAQUE Snmp opaque data typeĬOUNTER64 public static final int COUNTER64 Snmp 64-bit counter data type TIMETICKS public static final int TIMETICKS Snmp time ticks data type UNSIGNED32 public static final int UNSIGNED32 Snmp unsigned 32-bit integer data type GAUGE32 public static final int GAUGE32 Snmp 32-bit gauge data type IPADDRESS public static final int IPADDRESS Snmp ip address data typeĬOUNTER32 public static final int COUNTER32 Snmp 32-bit counter data type OID public static final int OID Snmp object identifier data type NULL public static final int NULL Snmp null data type OCTETSTRING public static final int OCTETSTRING Snmp octet string data typeīITS public static final int BITS Snmp BITS data type, which is the same as OCTETSTRING INTEGER public static final int INTEGER Snmp Integer data typeīITSTRING public static final int BITSTRING Snmp BIT STRING data type SerialVersionUID public static final long serialVersionUID See Also: Constant Field Values Returns the string format of this data type Returns the object data type, such as SnmpDataType.INTEGER, Indicates whether some other object is "equal to" this one. Snmp BITS data type, which is the same as OCTETSTRINGįields inherited from interface. This class is the interface which all SNMP data type classes should Public interface SnmpDataType extends Serializable, Msg Interface SnmpDataType All Superinterfaces: Msg, Serializable All Known Implementing Classes: SnmpCounter64, SnmpInt, SnmpNull, SnmpOctetString, SnmpOID, SnmpPdu, SnmpUInt, SnmpV1Trap, SnmpVarBind Using the example above, we can just get the version information for the 2523 router by executing the command below You can then use this information to be more specific with your SNMP requests by using snmpget.
NET SNMP VARBIND STRING VALUE MIB SOFTWARE
1.3.6.1.2.1.1.1.0 = STRING: Cisco Internetwork Operating System Software
NET SNMP VARBIND STRING VALUE MIB FULL
By just typing “snmpwalk” you can get the full list of command line options. You can see that all the MIB OID values by adding the “-O n” option. SNMPv2-MIB::sysName.0 = STRING: termserv-R5 SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software Here’s a partial execution of the command against a Cisco 2523 router. This can be used to determine the OIDs used for a network device. One basic tool, included with the toolset, is snmpwalk. From a security perspective, this net-snmp can be used as another troubleshooting tool to ensure that Cisco MARS and Cisco NCM are working correctly. One great tool for checking SNMP functionality is net-snmp. With most network management systems and network security systems, SNMP is a critical component.