How to change time on servers


 
Thread Tools Search this Thread
Operating Systems AIX How to change time on servers
# 1  
Old 05-15-2008
How to change time on servers

Hi all
We are currently using AIX 5.3, we reuquire to change the time according to the daylight saving scenario. We are using the internal clock and are not synced with ntp server. Can any one please tell me how to do that without effecting the processes running on the servers?
# 2  
Old 05-15-2008
That depends on your application(s). E.g. databases tend to crash when an operation finishes before it started. That would happen if your server is running ahead of time and you set it back during a DB operation is running. If your server's time is behind real time you may simply
# smitty date
for setting date and time and
# smitty chtz
for setting TZ
If you are unsure change both settings only with your apps stopped.
# 3  
Old 05-15-2008
daylight savings time DOES NOT change the clock running in UTC, which is how the internal clock keeps time. It just changes how the values provided by the clock get translated into human readable form.

This affects log timestamps, etc. It also means that cron entries may run twice - this happens going from DST to standard time. Or may run not at all - this happens going to DST from standard time.

So for example, if you want to change to DST, and you do it on a Sunday at 2:00am
you can check for problem cron entries maybe this way:
Code:
 crontab -l |   perl -lane 'print "@F" if $F[1] =~ m/2/'

Hyphens or other special syntax may cause an early morning job to run with no "2" in the hours field. So the above may need changing. For Fall you need to look for "1"
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

A script to change password for all other servers

Hey Gurus, I have this requirement to change the password for other servers remotely from one server. So, I installed public keys on all servers and wrote the following script to do the job. Something appears to be wrong with my loop, as it only changes one server and ignores the rest. I'm... (24 Replies)
Discussion started by: Hiroshi
24 Replies

2. AIX

Time of query execution much different between 3 servers

Hello, I have 3 AIX 6.1 machines running INFORMIX 11.7 database engine. One of these servers is the database server and the other 2 servers are connecting to it. I am doing a test to determine the time of query execution between these servers and i see that in specific times one of these... (12 Replies)
Discussion started by: omonoiatis9
12 Replies

3. UNIX for Dummies Questions & Answers

How can we connect multiple servers at a time?

help me (0 Replies)
Discussion started by: sonu pandey
0 Replies

4. Red Hat

Problem about NFS to change the share folder at several servers.

All, I re-wrote our scripts to speed-up the compiling time, original time is about 1hrs. now dispatch the sub task to different servers through SSH. Now my question is that: If dispatch these tasks into the current server, there is no errors during compiling process. If dispatch these tasks... (0 Replies)
Discussion started by: fduan001
0 Replies

5. Shell Programming and Scripting

Compare the files in 2 different servers for change or modification

I have the following requirement; I need to compare set of files in 2 different servers A and B. Both have same sets of files and directory structure First I need to move the files from Server A to server B Compare the corresponding file in B server and see if it has modified (not... (1 Reply)
Discussion started by: vskr72
1 Replies

6. Solaris

Change passwd for bulk servers using SSH script

Hi, I need to Change passwd for bulk servers using SSH script. I have one server, from which i can reach all the servers without password via SSH. There is some expect script, from which i can achieve it. Can any one help me out here. Thanks in advance. Vicky (1 Reply)
Discussion started by: vickyingle5
1 Replies

7. Shell Programming and Scripting

Script:Change password on 1000+ servers

Hello Folks Scenario : I have a linux box (expect tool installed) which connects to 1000+ other boxes (either Solaris or AIX or Linux ) with a specific id and password using SSH. I now wish to write a script (Shell and/or expect and/or Python) which will change this existing password to a... (1 Reply)
Discussion started by: ak835
1 Replies

8. Red Hat

Change password of linux servers remotely

Hi, I am very bad at scripting. I need help from scripting experts... I need to change password of around 100 linux remote servers. I have been given a script for changing the password that automates the task. however I do not understand the usage and meaning of the script, the script is an... (0 Replies)
Discussion started by: renuka
0 Replies

9. Shell Programming and Scripting

script to change passwords for the same user on multiple servers

I am trying to write a script to change passwords for the same user on multiple servers. My environment runs purely ssh / scp not rsh / rcp and therefore coping using rcp is not an option. I have been playing with expect to perform tasks but think there must be a better way. Has anyone got... (7 Replies)
Discussion started by: stolz
7 Replies

10. AIX

Synchronize time on several AIX servers ?

Hi, I want to synchronize time on several AIX servers - I don't want to set very precise time value, but I want all the servers to have same time value. How do I do that ? thanks Vilius (2 Replies)
Discussion started by: vilius
2 Replies
Login or Register to Ask a Question