Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time stamp wrong in logs

Status
Not open for further replies.

drichter12

Technical User
Dec 15, 2005
232
US
Okay, here is one I can't figure out.... I have my router synchronizing with an NTP server for time and everything looks great so far with 1 exception. the timestamp on log entries is 5 hours ahead of my configured time zone (displays GMT instead of local time). Is there a setting I am missing to have the system use local time in it's time stamps?



Dale
 
Hard to say---post a sh run...should be aroung the top of the config...

Burt
 
Here it is....

Current configuration : 4803 bytes
!
! Last configuration change at 08:40:09 Dallas Tue Mar 25 2008 by XXXXXXXXXX
! NVRAM config last updated at 23:07:45 Dallas Mon Mar 24 2008 by XXXXXXXXXX
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Rtr_2651XM
!
boot-start-marker
boot-end-marker
!
logging buffered 10000 debugging
enable secret 5 XXXXXXXXXX
!
aaa new-model
!
!
aaa authentication login default local
aaa authorization exec default local
!
aaa session-id common
!
resource policy
!
clock timezone Dallas -6
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 10.1.1.1 10.1.1.9
ip dhcp excluded-address 10.1.1.200 10.1.1.254
!
ip dhcp pool LOCALPOOL
import all
network 10.1.1.0 255.255.255.0
default-router 10.1.1.1
dns-server 68.238.96.12 68.238.112.12
!
!
ip ddns update method sdm_ddns1
HTTP
add interval maximum 0 0 10 0
!
vpdn enable
!
!
!
!
crypto pki trustpoint TP-self-signed-711603843
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-711603843
revocation-check none
rsakeypair TP-self-signed-711603843
!
!
crypto pki certificate chain TP-self-signed-711603843
certificate self-signed 01
<Output Removed>
quit
username XXXXXXXXXX privilege 15 view root secret 5 XXXXXXXXXX
!
!
!
!
!
!
interface FastEthernet0/0
description Inside interface facing private network
ip address 10.1.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
hold-queue 32 in
hold-queue 100 out
!
interface FastEthernet0/1
description Outside interface talking PPPoE$ETH-WAN$
no ip address
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
pppoe enable group global
pppoe-client dial-pool-number 1
!
interface Dialer1
ip ddns update hostname XXXXXXXXXX.home.dyndns.org
ip ddns update sdm_ddns1 host members.dyndns.org
ip address negotiated
ip mtu 1492
ip nat outside
ip virtual-reassembly
encapsulation ppp
ip tcp adjust-mss 1452
dialer pool 1
dialer-group 1
ppp authentication pap callin
ppp pap sent-username a password 0 a
!
ip route 0.0.0.0 0.0.0.0 Dialer1
!
!
no ip http server
ip http access-class 2
ip http secure-server
ip dns server
ip nat inside source route-map nonat interface Dialer1 overload
!
logging trap debugging
access-list 2 remark Auto generated by SDM Management Access feature
access-list 2 remark SDM_ACL Category=1
access-list 2 permit xxx.xxx.xxx.0 0.0.0.255
access-list 2 permit 10.1.1.0 0.0.0.255
access-list 101 remark SDM_ACL Category=1
access-list 101 permit ip xxx.xxx.xxx.0 0.0.0.255 any
access-list 101 permit ip 10.1.1.0 0.0.0.255 any log
access-list 101 remark SDM_ACL Category=1
access-list 102 permit ip 10.0.0.0 0.255.255.255 any
!
!
route-map nonat permit 10
match ip address 102
!
!
!
control-plane
!
!
!
banner login ^CYou have connected to a private home network. If you do not have a user account on this network, please C
!
line con 0
exec-timeout 120 0
stopbits 1
line aux 0
line vty 0 4
exec-timeout 0 0
password xxxx
transport input telnet ssh
transport output telnet ssh
!
scheduler max-task-time 5000
ntp clock-period 17208215
ntp server 132.163.4.101
ntp server 128.138.188.172 prefer
!
end


Dale
 
Found it!

service timestamps debug datetime localtime
service timestamps log datetime localtime

(use parameter localtime)



Dale
 
That would be it---also, I see that you don't have it updating daylight savings time...
crap---neither do I...nevermind---it's something like clock summer-time CST recurring bla bla bla...
Also, you can add "show-timezone" at the end of "service timestamps debug datetime localtime"

Burt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top