beautypg.com

2 mib browser flags – Compaq AAR04BCTE User Manual

Page 46

background image

Using the SNMP Utilities
4.1 Using the MIB Browser

Table 4–1 (Cont.) snmp_request Command Parameters

Parameter

Function

"community"

The community string to be used in the query. This parameter is case
sensitive. Typically, agents are configured to permit read access to
the community string "public". For accurate interpretation, be sure to
enclose the name in quotation marks (" "). Note that if you do not use
quotation marks, the name is changed to lowercase.

request-type

PDU type to send. Can be one of the following SNMP requests:

Get

Sends a Get-Request PDU.

GetNext

Sends a GetNext-Request PDU.

GetBulk

Sends a GetBulk-Request PDU (SNMP Version 2
only).

Set

Sends a Set-Request PDU.

variable

An object identifier (OID) in ASN.1 notation that is associated with
an object in a MIB. For example:

$ snmp_request host1 "public" getnext -d 1.3.6.1.6.3.1.1.6

data-type

Data type of the value. This parameter can be specified for

Set

requests. The data types are described in Section 4.1.3.

value

The value to which to set the contents of the OID. This parameter is
used for

set

requests.

For

Set

requests, you can specify more than one group of the following:

variable-name

data-type

value

For other requests, you can specify more than one variable name, except when
you specify the

-l

or

-t

flag; these flags are valid only with a

GetNext

or

GetBulk

request, for which only one OID is permitted.

4.1.2 MIB Browser Flags

Flags are specified in UNIX format.

Because flags and data types are case sensitive, you should always enter them in
the case that is specified. If a letter or value is specified as uppercase, you must
enclose it in quotation marks. In general, if you use uppercase letters where
lowercase is specified, the results are unpredictable. For example, the flag

"-v2C"

functions correctly but the flag

"-V2c"

does not, because the flag character (

v

)

must be lowercase.

If you do not specify a flag, or if you specify an invalid flag, a usage message is
displayed. You must place the flags after the

request-type

parameter.

Table 4–2 describes the flags for the

snmp_request

command.

4–2 Using the SNMP Utilities