Skip to main content

Cisco Switch - NTP clock issue

More
15 years 1 week ago #32606 by apit
Hi..

I already configured timezone for my cisco switch (Catalyst 2960G) . Below is the snapshoot.

clock timezone MYT 8
....
....
....
ntp clock-period 36028798
ntp server 202.71.97.92


Output from show clock as below :

#sh clock
.17:10:31.812 MYT Mon Nov 9 2009


The time is correct. Using show logg command & the output ::

#sh logg
Syslog logging: enabled (0 messages dropped, 1 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)
Console logging: level debugging, 2093 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 2093 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Trap logging: level informational, 2096 message lines logged

Log Buffer (4096 bytes):
PDOWN: Line protocol on Interface GigabitEthernet0/18, changed state to down
4w2d: %LINK-3-UPDOWN: Interface GigabitEthernet0/18, changed state to down
4w2d: %LINK-3-UPDOWN: Interface GigabitEthernet0/18, changed state to up
4w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/18, changed state to up
4w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/18, changed state to down


From the log output , it only show 4w2d and not the real time. Did i missing any command?

Hope reply from you all..

Thanks
More
15 years 1 week ago #32611 by novembre
you probably want something like

[code:1] service timestamps log datetime localtime [/code:1]
More
15 years 1 week ago #32631 by apit
tq Novembre..It works..

1R1-1>sh logg
Syslog logging: enabled (0 messages dropped, 1 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)
Console logging: level debugging, 2265 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 2265 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Trap logging: level informational, 2268 message lines logged

Log Buffer (4096 bytes):
down
.Nov 11 02:57:06: %LINK-3-UPDOWN: Interface GigabitEthernet0/43, changed state to down
.Nov 11 07:47:00: %LINK-3-UPDOWN: Interface GigabitEthernet0/32, changed state to up
.Nov 11 07:47:02: %LINK-3-UPDOWN: Interface GigabitEthernet0/32, changed state to down
.Nov 11 07:48:20: %LINK-3-UPDOWN: Interface GigabitEthernet0/32, changed state to up
.Nov 11 07:48:21: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/32, changed state to up


but i can't see "Year" from the log output...
More
15 years 1 week ago #32632 by novembre
add 'year', see this cisco ref guide for all options

[code:1] http://www.cisco.com/en/US/docs/ios/12_3/configfun/command/reference/cfr_1g07.html#wp102955[/code:1]
More
15 years 1 week ago #32634 by apit
I think the "Year" is not included in IOS version 12.2..

1R1-1(config)#service timestamps log datetime localtime ?
msec Include milliseconds in timestamp
show-timezone Add time zone information to timestamp
<cr>


From your Cisco link stated :

12.2(15)T = The year keyword was added.

More
15 years 1 week ago #32635 by novembre
d'oh! Can you upgrade? Try IOS 15

If you absolutely can't upgrade you might need to check out external syslogging options, your syslog program might be able to timestamp received messages for you (rsyslogd does for me).
Time to create page: 0.130 seconds