beautypg.com

Table 4–4 parameters for the snmp_trapsnd command, Table 4–5 flags for the snmp_trapsnd command – Compaq AAR04BCTE User Manual

Page 54

background image

Using the SNMP Utilities
4.2 Using the Trap Sender and Trap Receiver Programs

Table 4–4 Parameters for the snmp_trapsnd Command

Parameter

Description

enterprise

For SNMP Version 1, specifies the enterprise object identifier (OID) on whose
behalf the trap is being sent. For example, 1.3.6.1.4.1.1. If you specify 0 or 0.0,
the null OID (0.0) is sent. Make sure that any OID you specify conforms to the
OID rules.

For SNMP Version 2, when specified with the

-v2c

flag, represents the value of

snmpTrapOID.0

.

agent

For SNMP Version 1 traps. Specifies the host name or IP address of the entity on
whose behalf the trap is being generated. You can specify the name

local

, which

is the same as specifying 0, 0.0, 0.0.0, or 0.0.0.0. In these cases, the address
0.0.0.0 is sent as the agent address in the SNMP Version 1 trap PDU.

If the

-v2c

flag is specified, this parameter is ignored.

generic-trap

For SNMP Version 1, specifies the generic trap identifier in the form of a number.
Must be one of the following values:

SNMP Version 1
Value

Object

0

coldStart

1

warmStart

2

linkDown

3

linkUp

4

authenticationFailure

5

egpNeighborLoss

6

enterpriseSpecific

For SNMP Version 2, when the

-v2c

flag is specified, this parameter must

contain a valid OID or 0 as the value of

snmpTrapOID

.

specific-trap

For SNMP Version 1, specifies the enterprise-specific trap number. A numeric
value greater than 0 must be present but is ignored if the

-v2c

flag is present or

if

generic-trap

is a value other than 6 (

enterpriseSpecific

).

timeticks

Specifies the timestamp value associated with the generation of the trap
message. The timestamp value is the current time in units of TIMETICKS
(1/100 of a second) since the sending SNMP entity started. A value of 0 causes

snmp_trapsnd

to send the time in hundredths of a second since the operating

system was last booted.

variable_name |
data-type value

Specifies a list of MIB variables to be included in the trap message. For a list of
supported values, including a value for the

Counter64

data type, see Table 4–3.

4.2.1.2 Trap Sender Flags

Table 4–5 describes the

snmp_trapsnd

flags.

Table 4–5 Flags for the snmp_trapsnd Command

Flag

Description

-c community

Specifies a community string to be used when sending the trap. The default is
public.

-d

Displays a hexadecimal dump of the encoded packet.

(continued on next page)

4–10 Using the SNMP Utilities