HP Comware 5 Debug Manual Vol 1

Parameters
all: Specifies all types of debugging for DHCP relay agent.
error: Specifies DHCP relay agent error debugging.
event: Specifies DHCP relay agent event debugging.
packet: Specifies DHCP relay agent packet debugging.
client mac mac-address: Specifies debugging for packets that the DHCP relay agent forwards for a
specific DHCP client. The mac-address argument is the MAC address of the DHCP client, in the format of
H-H-H.
Examples
# Enable all types of debugging for DHCP relay agent. When a DHCP client requests an IP address from
a DHCP server through the DHCP relay agent, output similar to the following example is generated:
<Sysname> terminal debugging
<Sysname> debugging dhcp relay all
<Sysname>
*0.230094 Sysname DHCPR/7/DHCPR_DEBUG_EVENT:
Begin to deal with DHCP Discover packet.
*0.230094 Sysname DHCPR/7/DHCPR_DEBUG_PKTRXTX:
Rx, DHCP request packet, interface Vlan-interface2.
*0.230094 Sysname DHCPR/7/DHCPR_DEBUG_PACKET:
From client to server (Server-group 0):
Message type: request
Hardware type: 1, Hardware address length: 6
Hops: 1, Transaction ID: 4281385283
Seconds: 0, Broadcast flag: 1
Client IP address: 0.0.0.0 Your IP address: 0.0.0.0
Server IP address: 0.0.0.0 Relay agent IP address: 22.0.0.1
Client hardware address: 00e0-fc14-1601
Server host name: Not Configured, Boot file name: Not Configured
DHCP message type: DHCP Discover
*0.230094 Sysname DHCPR/7/DHCPR_DEBUG_RELAYPKT:
Pkt Sent: send request interface Vlan-interface22, dest IP: 11.0.0.1,
chardAddr: 00e0.fc14.1601, server-group: 0
// The DHCP relay agent received a DHCP-DISCOVER message from the DHCP client. The DHCP relay
agent forwarded it to the DHCP server at 11.0.0.1 in DHCP server group 0.
*0.230891 Sysname DHCPR/7/DHCPR_DEBUG_EVENT:
Begin to deal with DHCP Offer packet.
*0.230891 Sysname DHCPR/7/DHCPR_DEBUG_PKTRXTX:
Rx, DHCP reply packet, interface Vlan-interface22.
*0.230891 Sysname DHCPR/7/DHCPR_DEBUG_PACKET:
From server to client (Server-group 0):
Message type: reply
Hardware type: 1, Hardware address length: 6
Hops: 0, Transaction ID: 2294688324
Seconds: 0, Broadcast flag: 1
Client IP address: 0.0.0.0 Your IP address: 22.0.0.2
358