HP Comware 5 Debug Manual Vol 3

Field
Description
filter address address for sending
trap-name
Trap messages whose destination address is address are filtered
when trap messages are being sent.
trap-nameName of the trap node.
addressDestination IP address of trap messages.
Examples
# Enable information center debugging and SNMP trap module 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 process info
[Sysname] undo snmp-agent
[Sysname] snmp-agent
[Sysname]
*Jul 27 10:21:22:938 2007 Sysname SNMP/7/TRAP_INFO:
send trap message to trap queue
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/TRAP_INFO:
create trap IPv4 socket
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/TRAP_INFO:
create trap IPv6 socket
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/TRAP_INFO:
handle trap message in trap queue at 10:21:22
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/TRAP_INFO:
parse trap message
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/STACK_INFO:
get value from CFG message (CMO type: 7)
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/TRAP_INFO:
get trap's index-lists
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/TRAP_INFO:
build warmStart's variable-bindings
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/TRAP_INFO:
get generic trap type
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/TRAP_INFO:
prepare to generate and send trap warmStart
*Jul 27 10:21:22:984 2007 Sysname SNMP/7/TRAP_INFO:
search entries in snmpTargetAddrTable to match snmpNotifyTag TrapHost
*Jul 27 10:21:23:00 2007 Sysname SNMP/7/TRAP_INFO:
search entries in snmpTargetParamsTable to match snmpTargetAddrParams
traphost.u2.192.168.123.123
*Jul 27 10:21:23:00 2007 Sysname SNMP/7/TRAP_INFO:
check trap warmStart's VACM
*Jul 27 10:21:23:00 2007 Sysname SNMP/7/TRAP_INFO:
get source IPv4 address for sending trap
*Jul 27 10:21:23:00 2007 Sysname SNMP/7/TRAP_INFO:
400