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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

NTP Configuration Issue

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
Silver

Re: NTP Configuration Issue

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

New Member

Re: NTP Configuration Issue

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.

New Member

Re: NTP Configuration Issue

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

Re: NTP Configuration Issue

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.

78
Views
0
Helpful
4
Replies