11-24-2004 10:08 PM - edited 03-05-2019 11:20 AM
The time stamped in logs and system time of our router has an 8 hour time difference. Below is a sample output of the time difference:
Nov 25 05:00:49.312: %SYS-5-CONFIG_I: Configured from console by network on vty0
router#sh clock
13:07:34.208 GMT Thu Nov 25 2004
How can I make them synchronized? I've already set the ntp server and timezone. Have I overlooked something?
Router Specs:
Platform:2621XM
IOS: 12.3(7)T4
Modules Connected: NM-16AH-V2 at slot 1
Running Config:
(some lines deleted for security purposes)
!
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname dostras
!
boot-start-marker
boot-end-marker
!
!
clock timezone GMT 8
no network-clock-participate slot 1
no network-clock-participate wic 0
!
!
aaa authentication login default group radius local
aaa authentication login localauth local
aaa authentication ppp default if-needed group radius local
aaa authorization exec default group radius local
aaa authorization exec localauth local
aaa authorization network default group radius local
aaa accounting delay-start
aaa accounting exec default start-stop group radius
aaa accounting network default start-stop group radius
aaa session-id common
ip subnet-zero
ip cef
!
!
!
ip dhcp pool DIALUP
!
no ip domain lookup
ip domain name dost.gov.ph
no ftp-server write-enable
!
modemcap entry 1
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
description Connection to Catalyst
duplex auto
speed auto
!
interface Group-Async1
ip unnumbered FastEthernet0/0
dialer in-band
dialer idle-timeout 600
dialer-group 1
ntp broadcast client
ntp multicast client
ntp multicast
async mode dedicated
peer default ip address dhcp-pool DIALUP
ppp max-bad-auth 3
ppp authentication chap
group-range 33 48
!
no ip classless
ip http server
!
!
dialer-list 1 protocol ip permit
!
control-plane
!
line con 0
line 33 48
line aux 0
line vty 0 4
transport output all
ntp clock-period 17180361
ntp server 202.90.129.206
!
!
en
11-25-2004 12:46 AM
Hi,
The confusion here is the clock timezone GMT 8 command. For reference, here is the documentation:
The timezone you put in should be your timezone. Since you have configured an offset of 8 hours from UTC, I am guessing you are in Western Australia, so you would want something like clock timezone WST 8. GMT is Greenwich mean time, which is almost equivalent to UTC. But that is only cosmetic.
Do the cosmetic change I suggested. It may just be a matter of the presentation of the sh clock. I don't know whether you did that command at your lunchtime, or late evening. I think it was your lunchtime, and the logs are stamping the UTC. The GMT is just confusing you.
(If you ever get a dot in front of your log timestamp entries, then the NTP is not synchronised. But that is not the case here.)
You need the keyword localtime in your service timestamps.
Kevin Dorrell
Luxembourg
11-25-2004 01:06 AM
Kevin,
The command service timestamps logging/debug localtime did the trick.
Thanks!
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