07-06-2002 01:26 PM - edited 03-01-2019 11:36 PM
I have configured NTP Master server on cisco 2500 (as Stratum1) and pointed out all my CAT 2924 to this router as a NTP server.
The switches get the correct time. Tested via "show clock" command.
However, when I do "show log" I still don't get logged message according to the clock, but according to the "time lenght of switch being up"
The main reason of configuring NTP Master is that "show log" on all switches have identical time which helps in troubleshooting network problems.
Please advise me on this matter. How to get "logs" to act according to the system clock
Thanks,
Senad Palislamovic
Network Specialist
Weber State University
Ogden, UT 84408
07-06-2002 02:03 PM
Senad,
You might try something like this globally.
service timestamps debug datetime msec
service timestamps log datetime msec
Router will show uptime unless otherwise configured. Hope this helps,
Don
07-07-2002 11:23 AM
1) After setting NTP server IP address on your routers/servers:
#set ntp server (ipaddress) (repeat command for as many servers as you have)
2)Set Clock and date:
router#clock set hh:mm:ss month day year
3)Now you can log time on your devices :
router(config)#service timestamps log datetime msec
router(config)# service timestamps log uptime
4) Save your configuration:
#write mem
You should get logged messages whith time when you do show logging .
Hope this help.
07-07-2002 11:50 PM
If i understand your issue correctly you need to configure the following command which changes how the messages our timed
service timestamps log datetime localtime ....
07-08-2002 12:08 AM
That's 100% correct, if you want consisting timed logging then configure the that command, you can do the same for debug purposes as depictated below:
service timestamps debug datetime msec localtime
service timestamps log datetime localtime
The debug one uses the "msec" k/word this helps in troubleshooting things like SIA and tons of other stuff.
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