Trap Sender Flags; Parameters For The Snmp_Trapsnd Command; Flags For The Snmp_Trapsnd Command - Compaq TCP/IP Services for OpenVMS Programming And Reference Manual

Tcp/ip services for openvms
Table of Contents

Advertisement

Using the SNMP Utilities
4.2 Using the Trap Sender and Trap Receiver Programs
Table 4–4 Parameters for the snmp_trapsnd Command
Parameter
enterprise
agent
generic-trap
specific-trap
timeticks
variable_name |
data-type value

4.2.1.2 Trap Sender Flags

Table 4–5 describes the
Table 4–5 Flags for the snmp_trapsnd Command
Flag
-c community
-d
4–10 Using the SNMP Utilities
Description
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
snmpTrapOID.0
.
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
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.
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
contain a valid OID or 0 as the value of
For SNMP Version 1, specifies the enterprise-specific trap number. A numeric
value greater than 0 must be present but is ignored if the
generic-trap
if
is a value other than 6 (
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.
Specifies a list of MIB variables to be included in the trap message. For a list of
supported values, including a value for the
snmp_trapsnd
Description
Specifies a community string to be used when sending the trap. The default is
public.
Displays a hexadecimal dump of the encoded packet.
-v2c
flag, represents the value of
-v2c
flag is specified, this parameter must
snmpTrapOID
.
enterpriseSpecific
Counter64
data type, see Table 4–3.
flags.
(continued on next page)
local
, which
-v2c
flag is present or
).

Advertisement

Table of Contents
loading

Table of Contents