HP Comware 5 Debug Manual Vol 3

Examples
# Enable NTP packet debugging on Device A. The output in this example was created when the
following conditions exist:
On Device A and Device B, the IP addresses for VLAN-int e r f a c e 1 a r e 10 .1.1.1 a n d 10 .1.1. 2,
respectively.
The IP addresses can be pinged from each other.
Device B's local clock is to be used as a reference source, with the stratum level of 8.
Device A is configured to synchronize its clock to Device B in client/server mode.
<DeviceA> debugging ntp-service packet
<DeviceA> terminal debugging
<DeviceA> terminal monitor
// Log monitoring on the current terminal was enabled.
*Aug 12 06:04:42:129 2005 DeviceA NTP/7/debug_NTP_packet_xmt:
packet to 10.1.1.2
leap: 3, version: 3, mode: 3, vrfindex: 0
stratum: 0, poll: 64, precision: 2^18
rdel: 0.000, rdsp: 0.000, refid: 0.0.0.0
reftime: 06:02:26.094 UTC Aug 12 2005(C6A6B9F2.181A5870)
orgtime: 00:00:00.000 UTC Jan 1 1900(00000000.00000000)
rectime: 00:00:00.000 UTC Jan 1 1900(00000000.00000000)
xmttime: 06:04:42.127 UTC Aug 12 2005(C6A6BA7A.20B039EF)
// NTP sent an NTP time request to Device B at 10.1.1.2.
%Oct 11 14:42:45:139 2006 DeviceA NTP/4/NTP_LOG:
System leap changes from 3 to 0 after clock update.
%Oct 11 14:42:45:140 2006 DeviceA NTP/4/NTP_LOG:
System stratum changes from 16 to 9 after clock update.
// Log information when the clock alarm and clock stratum of the system changed was generated.
*Oct 11 14:42:45:141 2006 DeviceA NTP/7/debug_NTP_packet_rcv:
packet from 10.1.1.2 to 10.1.1.1 on Vlan-interface1
leap: 0, version: 3, mode: 4, vrfindex: 0
stratum: 8, poll: 64, precision: 2^18
rdel: 0.000, rdsp: 10.941, refid: 127.127.1.0
reftime: 14:42:31.278 UTC Oct 11 2006(C8D78157.4758D152)
orgtime: 06:04:42.127 UTC Aug 12 2005(C6A6BA7A.20B039EF)
rectime: 14:42:45.132 UTC Oct 11 2006(C8D78165.21F88FC9)
xmttime: 14:42:45.132 UTC Oct 11 2006(C8D78165.22075F6F)
inptime: 06:04:42.137 UTC Aug 12 2005(C6A6BA7A.23316E37)
// Device A at 10.1.1.1 received the NTP response from Device B at 10.1.1.2.
NOTE:
This example provides only the packet exchange process for the first two packets.
138