Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

NTP Problem

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!!!


Re: NTP Problem

try adding this config in your device

service timestamps log datetime msec localtime

Community Member

Re: NTP Problem


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.

Hall of Fame Super Gold

Re: NTP Problem


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?



Re: NTP Problem

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

Re: NTP Problem

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.



HTH, John *** Please rate all useful posts ***
Community Member

Re: NTP Problem

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)

CreatePlease to create content