HP Comware 5 Debug Manual Vol 3

Examples
# Enable debugging for session log processing events on the device that supports session management.
<Sysname> debugging session log proc event
# Configure session logging output thresholds.
<Sysname> system-view
[Sysname] session log time-active 10
[Sysname] session log packets-active 1
# Enable the session logging function.
[Sysname] interface gigabitethernet 1/1
[Sysname-GigabitEthernet1/1] session log enable inbound
# Ping the device from 192.168.0.2. If the ping operation succeeds, output similar to the following
messages is generated:
*Mar 26 08:50:24:568 2007 Sysname DPSESS/7/logprocess:
Tuple5: 192.168.0.2/8-->192.168.1.58/3840(ICMP)
Event: Logged a session creation event.
// Session management created an ICMP session. The system logged the session creation event.
# Remove the ICMP session. When the ICMP session is removed successfully, output similar to the
following messages is generated:
<Sysname> reset session source-ip 192.168.0.2
*Mar 26 08:50:24:568 2007 Sysname DPSESS/7/logprocess:
Tuple5: 192.168.0.2/8-->192.168.1.58/3840(ICMP)
Event: Logged a session deleted event,type is AGING.
// Session management deleted the target ICMP session entry. The system logged the session deletion
event, and the log type is AGING.
Output similar to the following messages is generated when the ICMP session lasts 10 minutes under the
condition that the device is pinged continuously:
*Mar 26 08:50:24:568 2007 Sysname DPSESS/7/logprocess:
Tuple5: 192.168.0.2/8-->192.168.1.58/3840(ICMP)
Event: Logged a session hold time threshold reached event.
// The system output a log about the event that the session reached the session hold time threshold.
Output similar to the following messages is generated when the number of ICMP session packets reaches
1M under the condition that the device is pinged continuously:
*Mar 26 08:50:24:568 2007 Sysname DPSESS/7/logprocess:
Tuple5: 192.168.0.2/8-->192.168.1.58/3840(ICMP)
Event: Logged a session traffic threshold reached event.
// The system output a log about the event that the session reached the traffic threshold.
# Enable debugging for session log processing errors. The output in this example was created when the
following conditions exist:
The session logging function is enabled.
Thresholds for outputting session logs are configured.
<Sysname> debugging session log proc error
*Dec 16 15:52:55:677 2007 Sysname Sysname/7/LOG_PROCESS:Slot=1;
Tuple5(EVENT): 192.168.119.119/8-->2.2.2.2/1280(ICMP)
Error: Failed to log a session created event.
338