HP Comware 5 Debug Manual Vol 3
Default
Debugging for SNMP trap messages is disabled.
Views
User view
Default command level
1: Monitor level
Usage guidelines
Table 7 describes output fields and messages for the debugging snmp trap packet command.
Table 203 Output from the debugging snmp trap packet command
Field
Description
TRAP_PACKET Trap message debugging information.
trap-name trap<version> send to:
address
The system sent the trap-name trap message to address.
• trap-name—Name of the trap message.
• version—Trap version, which is v1 or v2c.
• address—Destination IP address.
request-id: request-id The request-id field of the trap PDU. The value of the field is always 0.
error-status: error-status
The error-status field of the trap PDU. The value of the field is always
0.
error-index: error-index
The error-index field of the trap PDU. The value of the field is always
0.
UDP port: port-number
UDP port number of the destination host for receiving the trap
messages.
send OK Traps were sent successfully.
VBLIST Variable binding list in the trap message.
Examples
# Enable information center debugging and SNMP trap message debugging on the device enabled with
the SNMP trap sending function. When the undo snmp-agent command and the snmp-agent command
are executed in system view, output similar to the following example is generated:
<Sysname> terminal debugging
% Current terminal debugging is on
<Sysname> terminal monitor
% Current terminal monitor is on
<Sysname> debugging snmp trap packet
[Sysname] undo snmp-agent
[Sysname] snmp-agent
[Sysname]
*Jul 27 10:10:35:297 2007 Sysname SNMP/7/TRAP_PACKET:
warmStart trap<v2> send to: 10.165.81.75
request-id: 0
error-status: 0
error-index: 0
UDP port: 162
398