SNMP Manager Programmer's Guide
Programming Examples
SNMP Manager Programmer’s Guide–134249
2-41
SNMPGT
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. 
Invoke SNMPGT as follows; you can specify the arguments preceded with a minus sign 
in any order, but the last two arguments must be present and in the locations shown:  
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".
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.
agent-request-port
is the UDP destination port to use to address the agent. The default is 161.
retry-count
specifies the number of times to resend the packet if an error occurs.  The default is 
0.
timeout-seconds
is the number of seconds the manager should wait for response receipt before 
resending the request or terminating. The default is 5.
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...]










