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 | |
| 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 |
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 | |
| contain a valid OID or 0 as the value of snmpTrapOID. | |
| For SNMP Version 1, specifies the | |
| value greater than 0 must be present but is ignored if the | |
| if | |
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 | 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.2.1.2 Trap Sender Flags
Table
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.
Displays a hexadecimal dump of the encoded packet. |
(continued on next page)