[net-snmp][snmpget] Get the value (sysDescr) from Board_IP
snmpwalk -v 2c -c public 111.5.1.121 1.3.6.1.2.1.1.1
SNMPv2-MIB::sysDescr.0 = STRING: MAC
use snmpget
Must add 0 at the end of OID
snmpget -v 2c -c public 111.5.1.121 1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: MAC
OID description :
Name: sysDescr
Type: OBJECT-TYPE
OID: 1.3.6.1.2.1.1.1
Full path: iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).system(1).sysDescr(1)
Module: RFC1213-MIB
Parent: system
Next sibling: sysObjectID
Numerical syntax: Octets
Base syntax: OCTET STRING
Composed syntax: DisplayString
Status: mandatory
Max access: read-only
Size list: 1: 0..255
Description: A textual description of the entity. This value
should include the full name and version
identification of the system's hardware type,
software operating-system, and networking
software. It is mandatory that this only contain
printable ASCII characters.
0 意見:
張貼留言