NTP Problem

Unanswered Question
Jan 12th, 2009

hi if i give sh clock it clearly give the IST current time, but in the log messages will display as 5 1/2 less ie.

if the IST time is 10 pm if there are logs it show as 4:30pm

any guess!!!

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
johnlloyd_13 Mon, 01/12/2009 - 01:29

try adding this config in your device

service timestamps log datetime msec localtime

ciscosrini369 Mon, 01/12/2009 - 01:46


thanks for your reply, now it diplays both the current time and delay time i.e in the log it displays as

10:00pm x.x.x.x

4:30 pm x.x.x.x

can i get only 10:00pm in logs

Thnks in adv.

Richard Burts Mon, 01/12/2009 - 05:35


In most cases the suggestion from John to add service timestamps log will solve the problem of the time showing in the log messages. If it does not solve it in your case then there must be something else in the config that is impacting it. Can you post the router config so that we can see what is going on?



johnlloyd_13 Mon, 01/12/2009 - 06:10

can you post your show log, show ntp associations and show ntp status config.

John Blakley Mon, 01/12/2009 - 07:23

Also, verify that your clock timezone is set correctly in your config.

clock timezone CST -6

Then -6 is how many hours off of UTC time you are.



ciscosrini369 Mon, 01/12/2009 - 09:09

pls find the config dtls

switch#sh ntp statu

Clock is synchronized, stratum 4, reference is

nominal freq is 250.0000 Hz, actual freq is 249.9943 Hz, precision is 2**18

reference time is CD15F5ED.FBDF9CA2 (11:30:02.023 IST Mon Jan 12 2009)

clock offset is 0.0187 msec, root delay is 303.34 msec

root dispersion is 34.52 msec, peer dispersion is 0.03 msec

switch#sh ntp ass

address ref clock st when poll reach delay offset disp

*~ 3 26 64 377 0.9 -0.01 0.0

* master (synced), # master (unsynced), + selected, - candidate, ~ configured

switch#sh logg

Jan 12 11:30:22: %ILPOWER-3-CONTROLLER_ERR: Controller error, Controller number 4: accessing failed

Jan 12 17:30:22: ***Err: I2C_do_transaction failed i2cRead: slave addr 0x25, addr 0x1 (ret 0x3007).

(if i enable service timestamps log datetime localtime, pls see the above logs)


This Discussion