Compaq TCP/IP Services for OpenVMS Programming And Reference Manual page 48

Tcp/ip services for openvms
Table of Contents

Advertisement

Using the SNMP Utilities
4.1 Using the MIB Browser
Table 4–2 (Cont.) Flags for the snmp_request Command
Flag
-l
-m max_repetitions
-n non_repeaters
-p port
-r max_retries
4–4 Using the SNMP Utilities
Description
Specifies loop mode. Note that this flag is the letter l, not the number 1.
Valid only if
request-type
m
0, and flag
is set to a number greater than 0).
Causes the master agent to traverse all the MIBs registered with the master
agent, starting at the first OID after the one specified in the command.
(Note that you can specify only one
received one at a time, and for each one, the OID returned by the master
agent is used in a subsequent request. Corresponds to the behavior of
standard
mibwalk
programs.
The MIB browser reads and displays responses, and issues requests until
the master agent has no more data, times out, or you press Ctrl/Y or Ctrl/C.
GetBulk
If specified with the
values are ignored, and the behavior is identical to that of
When the last OID handled by the master agent is reached, you receive a
response similar to the following for a query on OID 1.3.6.1.6.3.1.1.6.1 using
SNMP Version 1:
1.3.6.1.6.3.1.1.6.1.0 = 693056825
- no such name - returned for variable 1
For a query using SNMP Version 2, the example response is:
1.3.6.1.6.3.1.1.6.1.0 = 693056825
1.3.6.1.6.3.1.1.6.1.0 = - end of mib view -
These examples assume that:
OID 1.3.6.1.6.3.1.1.6.1.0 is the last OID supported on the target host.
The target host is running an SNMP Version 2 agent.
end of mib view
The statement
the master agent.
Specifies the number of repetitions requested for repeating variables.
GetBulk
Applies only to the
Note that the resulting display can be confusing because the results for the
repeater OIDs are interleaved. That is, the OIDs are displayed in alternate
progression for faster memory throughput. If you specify
-m
specifying both the
and
Specifies the number of variables for which no repetition is requested.
Applies only to the
GetBulk
-m
specifying both the
and
Specifies the port where the request is to be sent. If not specified, the
request is sent to well-known SNMP port 161.
Specifies the number of times the MIB browser resends a request packet
if it times out before receiving a reply. Specify a positive integer for the
value (max_retries). If you specify a negative value, it will be converted to an
unsigned positive integer. If you specify 0, no retries are tried.
If, after a timeout and a resend, a reply packet is received, the resend
counter is reset. After another timeout, the specified number of max_retries
is sent.
is
GetNext
or
GetBulk
variable-name
-n
-m
request, the
and
refers to OIDs for all MIBs registered with
GetNext
and
requests.
-n
flags, the results are unpredictable.
request. If you specify
-n
flags, the results are unpredictable.
(continued on next page)
(where flag
n
is set to
[OID].) Responses are
flags and associated
GetNext
.
GetBulk
without
GetBulk
without

Advertisement

Table of Contents
loading

Table of Contents