Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hi i have installed NTP on my linux server and i am getting my clock from a 6500 core switch, everything is working fine.

When i ssh to a switch i have it all sent to a log file on the linux server, this log file does not time stamp with the same time as i have on the server.

the date and hwclock are the same. But my my is exatly 6 hours behind my date on the server wich is CET.

Has annyone have that same problem ?

bedst regards

Martin

share|improve this question
    
What sys logger are you using on the Linux machine? –  Alexandre Nizoux Mar 8 '10 at 14:35
1  
exactly 6 hours sounds like a time zone problem –  ptman Mar 8 '10 at 14:41
add comment

2 Answers 2

Unix and Linux servers as well as any network devices are best set to use UTC for their timezone. This is a standard practice to avoid time change related problems for regions that experience daylight savings.

Ensure that the timezone for the Cisco switch is configured for usage with NTP, and the hardware clock ("system calendar") is configured for UTC as well.

I would almost guess that the Cisco IOS or its NTP server defaults or is configured for EST/EDT (New York, USA) by your problem description.

Using UTC as the timezone everywhere helps prevents issues like these, including consolidating log files with external agencies or ISPes in the event of a malicious user (hacker/cracker) attack.

share|improve this answer
    
I will have a look at this thanks for the reply –  Martin Mar 9 '10 at 8:25
1  
+1 for standardising to UTC. Only human readable time needs to bother with time-zones. –  sybreon Mar 9 '10 at 8:41
add comment

The problem where solved after i rebooted the server so it must have been a service i havent tryid to restart.

Thanks for the responses :-)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.