monitor and manage information on a network entity
snmptest [-d] host community
The snmptest utility monitors and manages information on a network entity.
After you invoke snmptest, you can enter commands at a line interpreter's prompt:
Please enter the variable name:
At this point, you can enter one or more variable names, one per line. If you enter a blank line, snmptest sends a request for each of the variables (in a single packet) to the network entity. See the file mib.txt for the format specification of variable names. For example, if you enter:
snmpget netdev-kbox.cc.cmu.edu public
Please enter the variable name: system.sysdescr.0
Please enter the variable name:
then snmptest returns information about the request and reply packets, as well as:
Name: system.sysDescr.0
OCTET STRING- (ascii): Kinetics FastPath2
By default, snmptest sends a GET request packet but you can change this as follows:
In order to: | Enter this command: |
---|---|
send GET NEXT request | $N |
send SET request | $S |
send GET request | $G |
toggle the dumping of each sent and received packet | $D |
quit the utility | $Q |
If you enter $S, then snmptest requests information about each variable. First it prompts you for the variable type:
Please enter variable type [i|s|n]:
If the variable is: | Enter: |
---|---|
integer | i |
octet string | s |
null | n |
After you enter a character, snmptest prompts you for a value:
Please enter new value:
For this variable type: | Enter: |
---|---|
integer | integer in decimal |
string | whitespace-delimited decimal numbers, one per byte of the string |
snmpd,
snmpget,
snmpgetnext,
snmpnetstat,
snmpstatus,
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)