- Posts: 227
- Thank you received: 0
Cisco Switch - NTP clock issue
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
[code:1] service timestamps log datetime localtime [/code:1]
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...
[code:1] http://www.cisco.com/en/US/docs/ios/12_3/configfun/command/reference/cfr_1g07.html#wp102955[/code:1]
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.
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).