communicate with a network entity using SNMP GET NEXT requests
snmpgetnext [-d] host community variable_name
Retrieve the variables sysDescr.0 and sysUpTime.0:
snmpgetnext netdev-kbox.cc.cmu.edu public system.sysDescr system.sysUpTime
The output is similar to:
Name: system.sysDescr.0 OCTET STRING- (ascii): Kinetics FastPath2 Name: system.sysUpTime.0 Timeticks: (2270351) 6:18:23
The snmpgetnext utility uses the GET NEXT request to query for information on a network entity. You can specify one or more fully qualified object identifiers in the format specified in the file mib.txt. For each one, the utility returns the variable in the network entity's MIB that is next in alphanumeric order.
If the network entity has an error processing the request packet, snmpgetnext displays an error message helping to pinpoint how the request was malformed.
snmpd,
snmpget,
snmpnetstat,
snmpstatus,
snmptest,
snmptrap,
snmptrapd,
snmpwalk,
mib.txt file
RFC 1065, RFC 1066, RFC 1067
Marshall T. Rose, The Simple Book: An Introduction to
Internet Management, 2nd ed. (Prentice-Hall, 1994,
ISBN 0-13-177254-6)