IOS Router にて Network Time Protocol(NTP) トラブル発生時に取得するログを記載しています。
ログ取得前に事前に設定頂きたいコマンド
ログを取得する場合は以下の Link に記載されている設定を行ったうえでログをご取得ください。
IOS/IOS-XE Router でログ取得前に事前に設定頂きたいコマンド
IOS Router にて NTP のトラブル発生時した場合には事象発生中に以下のコマンドを複数回ご取得ください。
show コマンド
show ntp status
show ntp associations
show ntp associations detail
show clock detail
show tech-support
show log
*show tech-support は多少CPUに負荷がかかります。
debug コマンド
debug ip packets <acl>
NTP version 3 の場合
debug ntp packets
debug ntp validity
debug ntp sync
debug ntp events
debug ntp refclock
必要に応じて以下のコマンドもご取得下さい
debug ntp adjust
debug ntp authentication
debug ntp loopfilter
debug ntp params
debug ntp select
NTP version 4 の場合
debug ntp all
上記 debug を有効にした場合は以下の debug が有効となります
debug ntp adjust
debug ntp core
debug ntp events
debug ntp packet
debug ntp refclock
*debug command は多少CPUに負荷がかかります。
- NTP packet は udp port 123 を使用しています。
NTP packet を受信できているかどうか下記のように access-list を作成し、debug コマンドにて確認してください。
access-list を作成
access-list 101 permit udp any any eq 123 access-list 101 permit udp any eq 123 any |
ntp packet が受信できているか確認
show ntp associations detail で 動作している NTP version を確認できます。
Router#show ntp associations detail 127.127.1.1 configured, our_master, sane, valid, stratum 4 ref ID .LOCL., time DA495D80.9A6CDE6C (01:12:32.603 UTC Wed Jan 20 2016) our mode active, peer mode passive, our poll intvl 16, peer poll intvl 16 root delay 0.00 msec, root disp 0.00, reach 377, sync dist 3.01 delay 0.00 msec, offset 0.0000 msec, dispersion 0.25 precision 2**15, version 4 org time DA495D80.9A6CDE6C (01:12:32.603 UTC Wed Jan 20 2016) rec time DA495D80.9A6D33A6 (01:12:32.603 UTC Wed Jan 20 2016) xmt time DA495D80.9A6C9AA4 (01:12:32.603 UTC Wed Jan 20 2016) filtdelay = 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 filtoffset = 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 filterror = 0.03 0.25 0.51 0.76 1.00 1.24 1.47 1.74 minpoll = 4, maxpoll = 4 |