01-12-2009 12:15 AM - edited 03-06-2019 03:22 AM
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!!!
01-12-2009 01:29 AM
try adding this config in your device
service timestamps log datetime msec localtime
01-12-2009 01:46 AM
John,
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.
01-12-2009 05:35 AM
srinvias
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?
HTH
Rick
01-12-2009 06:10 AM
can you post your show log, show ntp associations and show ntp status config.
01-12-2009 07:23 AM
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
01-12-2009 09:09 AM
pls find the config dtls
switch#sh ntp statu
Clock is synchronized, stratum 4, reference is 1.1.1.1
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
*~1.1.1.1 1.1.1.3 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)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide