SNMP Manager Programmer's Guide
Programming Examples
SNMP Manager Programmer’s Guide–134249
2-115
SNMPHOST
Invoke SNMPHOST as follows; invocation is similar to SNMPWALK invocation,
except SNMPHOST accepts a -b parameter that lets you specify how you want
information displayed.
display-mode
is an integer indicating whether you want the manager to display information in
batch or interactive mode. Specify 0 for interactive mode or a different integer for
batch mode. The default is 0 (interactive mode).
In batch mode, all data is returned at one time. In interactive mode, SNMPHOST
displays as many as 22 lines, then pauses, letting you control when and how
additional information is displayed. In interactive mode, you continue the display of
information by using one of these options:
ENTER displays the next 22 lines.
SPACE stops the program.
n displays the next 22 lines starting with the nth device.
agent-community string
is the community name used by the target agent for request authentication. You can
format the community name as a displayable string or as a sequence of octets, where
each octet is an 8-bit hexadecimal value:
"myCommunity"
0x4D:0x65
The default is "public".
number-of-devices
is an integer indicating the number of devices for which you want to retrieve
information. The default is 1000.
request-id
is an integer in the range -2147483648 to 2147483647 that uniquely identifies the
first request packet sent by the manager. The default is 1. If retry-count is
greater than 0, the request ID is incremented by one each time another request is
sent.
SNMPHOST [-b display-mode]
[-c agent-community string]
[-d number-of-devices]
[-i request-id]
[-p agent-request-port}
[-r retry-count]
[-t timeout-seconds]
[-a NonStop-agent-process]
[-x output-information-level]
target-host-identifier