You are on page 1of 2

Synchronize time on several AIX servers ?

AIX

Easiest and best is to configure an ntp server and start ntpd on your servers that
poll this ntp server for the date.

If you just want to set the time on the servers manually, use ssh or dsh if you
have a CSM server and send a "date ......." to them

Code:
man date

This is no professional solution though. Best stick with ntp.


=====================================================================

you can use the 'setclock' command

lets say you have five servers. you can put an entry in the crontab file of four of
them with the command
Code:
setclock serverA

This way, all the servers will have the same time value as serverA

Hope this helps

**********************************
how can I sync Date time in two computers? **** linux****

ssh user@server sudo date -s @`( date -u +"%s" )`


2015-03-26 20:25:23

Synchronize date and time with a server over ssh


Set Remote Server Date using Local Server Time (push)
Show sample output | Comments (5) | Add to favourites | Report as malicious
date --set="$(ssh user@server 'date -u')"
2013-06-03 06:43:49

Synchronize date and time with a server over ssh


using -u is better for standardizing date output and timezones, for servers in
different timezones.
Comments (0) | Add to favourites | Report as malicious
date +%Y%m%d%T -s "`ssh user@server 'date "+%Y%m%d %T"'`"

Synchronize date and time with a server over ssh


If you are stuck behind a firewall and want to synchronize time with another server
but you do not want to port forward NTP (which uses UDP) then this command is
handy. It gets the time from a server and sets the local time. It is not that
accurate but I can live with a second or so drift.
Show sample output | Comments (2) | Add to favourites | Report as malicious
date `ssh user@server date "+%y%m%d%H%M.%S"`
Synchronize date and time with a server over ssh
Neat idea! This variation works on FreeBSD.
Comments (0) | Add to favourites | Report as malicious

You might also like