Using the SNMP Utilities
4.1 Using the MIB Browser
Table 4–2 (Cont.) Flags for the snmp_request Command
Flag
Description
-s sleep_interval
Specifies the number of seconds between iterations of sending a request
(for the
-r
flag) and listening for a reply (for the
-i
) flag. The default is
1 second. This flag is ignored if neither the
-r
flag nor the
-i
flag are
specified.
The
-s
flag is useful for specifying a time to wait between resends, which
might be necessary when a server agent is starting up.
-t
Specifies tree mode. Valid only if
request-type
is
GetNext
or
GetBulk
(where flag
n
is set to 0 and flag
m
is set to a number greater than 0).
Similar to the
-l
flag. Directs the agent to perform a MIB walk for the
subtree with the
variable_name
as its root. The program reads and prints
responses and issues requests until the agent has no more data for the
specified subtree, times out, or is interrupted by a user.
-v version
Specifies the SNMP version to use for sending the PDU. The versions are:
2c
or
1
(default). Not case sensitive. You can specify the flag without a
space (
-v2c
and
-v1
).
If
request_type
is
getbulk
, the version defaults to SNMP Version 2.
If you specify
-v 2c
to send a message to an SNMP Version 1 agent or
subagent, it is unlikely to respond.
-w max_wait
Specifies the maximum seconds the
snmp_request
program waits for a
reply before timing out. Cannot be 0. The default is 3.
The
-i
,
-r
, and
-s
flags apply to individual queries. If you specify the
-l
or
-t
flags also, the values for the
-i
,
-r
, and
-s
flags are applied to each iteration.
4.1.3 MIB Browser Data Types
The
snmp_request
and
snmp_trapsnd
commands support the data types listed in
Table 4–3. These values apply to
Set
requests only.
Table 4–3 Data Types for the snmp_request and snmp_trapsnd Commands
Data Type
Value
Counter
-c
Counter64
1
-l
Display string
-D
Gauge
-g
Integer
-i
IP address
-a
NULL
-N
Object identifier
-d
Octet
-o
Opaque string
-q
Time ticks
-t
1
For support of trap sender program (TCPIP$SNMP_TRAPSND.EXE) only. Properly defined, MIB
variables of type Counter64 are not writable.
Using the SNMP Utilities 4–5