SNMP Manager Programmer's Guide
Reference Summary
SNMP Manager Programmer’s Guide–134249
9-9
Sample Manager Invocation
Sample Manager Invocation
SNMPGT
This manager handles a Get packet for one or more MIB objects specified at invocation.
It encodes the packet using BER encoding, prints the request packet, sends a request and
receives a response using the UDP protocol, and prints the response packet.
SNMPGET
SNMPGET encodes a Get packet for UDP or IPC communication, depending on the
host you specify at invocation. UDP communication is used if the host is not the same
host as the manager’s host or if it cannot be reached over Expand. IPC communication
SNMPGT [-c agent-community string]
[-i request-id]
[-p agent-request-port}
[-r retry-count]
[-t timeout-seconds]
target-host-identifier
MIB-object [MIB-object...]
agent-
community
string
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. The default is "public".
request-id
An integer 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.
agent-
request-port
The UDP destination port to use to address the agent. The
default is 161.
retry-count
The number of times to resend the packet if an error occurs. The
default is 0.
timeout-
seconds
The number of seconds the manager should wait for response
receipt before resending the request or terminating. The default
is 5.
target-host-
identifier
The device on which the target agent resides. You can specify
either a name or an IP address; omit the backslash when
specifying a NonStop Kernel node.
MIB-object
A MIB object instance. If the object is a MIB-II object, you can
refer to it by name or using the dotted OID format; use the dotted
OID format for objects that are not MIB-II objects.










