Sponsored Content
Top Forums UNIX for Dummies Questions & Answers DST did not take effect on 3 Linux servers Post 302299850 by Perderabo on Saturday 21st of March 2009 05:46:28 PM
Old 03-21-2009
There is an internal system clock which is the number of seconds since the epoch and this does not get adjusted for DST. Is is right? Compare the output on a broken and working system of:
perl -e 'print time(), "\n" '

If both systems agree of the second but disagree on the representation, then one must not be patched properly or the systems are set to use different rules. That is controlled by /etc/localtime or maybe the TZ environment variable. Is that the same on both systems? Note that if your systems were up and running during the DST transition, the seconds as returned by that perl command would not suddenly change by one hour. What should change is that a different rule would now come into play about how to display the time in human readable form.

If the seconds on the internal system clock is off, then you need to look at how the system clock is set on both systems. This is the issue that your other source was probably thinking about. At boot time the system clock is initialized from the hardware clock that runs all the time via battery. You can keep in local time if you want, but it must be adjusted for DST. Linux can be set to read it and accept it. This works well when you have two OS's on the same box. Linux assumes the other OS set the clock. But for your hardware clock to cause a problem, you would need to reboot the server so it rereads the hardware clock. Or you would need to to be explicitly reading the hardware clock somehow. If linux is the only os on the box, the hardware clock really should be set to UTC (incorrectly aka GMT).

You could also be using NTP. Are you? If so, very early in the startup scripts you should get the time from an NTP server. Then the time on the hardware clock should irrelevant since it is quickly overwritten. In this case, you have an NTP problem somehow.

Be sure to read: https://www.unix.com/tips-tutorials/3...mekeeping.html

Doesn't redhat have a dateconfig (or maybe date-config) tool? If you have that, compare the settings on both systems. Otherwise check /etc/sysconfig/clock on both systems.
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

Who uses Antivirus software on your linux servers?

So who uses antivirus software on your linux servers? A co-worker and myself have been debating on the need or lack there of for antivirus on a linux webserver running Apache even if that's the only service that may be running. He thinks no and I am of the opinion that it is needed. My rational... (1 Reply)
Discussion started by: jjvaas
1 Replies

2. UNIX for Dummies Questions & Answers

monitering servers in linux

how can i moniter the servers (e.g FTP, NNTP, APACHE) in linux. (4 Replies)
Discussion started by: perleo
4 Replies

3. Gentoo

What do you use on your linux servers?

What do you use on your linux servers? What distributions? (10 Replies)
Discussion started by: DCrystal
10 Replies

4. What is on Your Mind?

Microsoft servers Vs. Unix/Linux

What you have to say about the following comparison: Compare (2 Replies)
Discussion started by: tayyabq8
2 Replies

5. UNIX for Dummies Questions & Answers

Fax Servers for Linux/AIX

At the company where I work, use a product called VSI-FAX. It works nicely, but the maintenance has proven to be very poor grade. So, I'm interested in any experiences using other fax servers that run on Linux or AIX and what issues/gotchas were run into and overcome and how. I'm considering... (0 Replies)
Discussion started by: kpearson
0 Replies

6. Linux

Few Questions on about Linux Servers.

1.On x86 Machines ( Pentium4 ), What is the maximum number of Services( sshd, ntpd,named ,samba, etc.) that can be installed.? Is there a rule of thumb to attain the best possible performence.? 2. Is there a systematic way to boot a remote Machine.? 3. Are there any problems of having two... (2 Replies)
Discussion started by: kanata
2 Replies

7. UNIX for Dummies Questions & Answers

SSH into multiple linux servers

Hi All, Okay, I need help. I need to ssh in to multiple linux servers execute certain commands and get them to email and print on the screen when the script is being executed. So below is my script. Its not working :-(. #!/bin/bash #linux/UNIX box with ssh key based login... (7 Replies)
Discussion started by: xytiz
7 Replies

8. Linux

How to check CFG2HTML for Linux servers?

Hi, Could someone please let me know how to How to check CFG2HTML for Linux servers? I am new for OS end. Thanks, Vivek. (4 Replies)
Discussion started by: Viv_kadam
4 Replies

9. Shell Programming and Scripting

Script to locating Linux servers

All, Need an urgent help! , I have an simple text file that holding more than 500 IP Address, My requirement : bash script that will run from my central server , and will scan with nmap all the 500 ip address , for ssh port with . for example with the command : nmap -sT | grep '22.*open' ... (1 Reply)
Discussion started by: James Stone
1 Replies

10. Linux

How does Linux handle DST ( daylight saving time)?

Hello Can sombody please tell me how linux handles DST ( daylight saving time) ? Does the time change instantly , ex: if is is 3'o clock does linux instantly swich to 2'o clock ? plese give more info about this toppic (2 Replies)
Discussion started by: martonlorand
2 Replies
CLOCK(1)						      General Commands Manual							  CLOCK(1)

NAME
clock - display the time in an icon or window SYNOPSIS
clock AVAILABILITY
This command is available with the OpenWindows environment. For information about installing OpenWindows, refer to the OpenWindows Instal- lation and Start-Up Guide. DESCRIPTION
clock is an OpenWindows XView utility that displays the current time in a window or icon. When the window is open, clock can display the time in either analog or digital format. The clock window is scalable in either format. USAGE
When the clock window is open, it has a floating menu from which you can bring up a property window. From this property sheet, you can modify the display of the tool by selecting either the Analog or Digital choice box. Seconds: On the analog version, this selection starts a second hand on the face of the clock. On the digital version, it adds two dig- its to the digital readout. Date: Turns on a date display for both analog and digital versions of clock. BUGS
If you reset the system time, clock will not reflect the new time until you change its window state from open to icon, or vice versa. To reset the system time, see date (1V). The date display does not go well with the round clock face. Occasionally, when clock is uncovered, the face will be visually corrupted. Use the Refresh button from the frame menu to repair. 11 June 1990 CLOCK(1)
All times are GMT -4. The time now is 09:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy