cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
470
Views
0
Helpful
4
Replies

NTP Configuration Issue

spalislam
Level 1
Level 1

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

4 Replies 4

donewald
Level 6
Level 6

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

j-belarj
Level 1
Level 1

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.

guy.whitehouse
Level 1
Level 1

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

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.

Review Cisco Networking for a $25 gift card