Synchronizing unix machines across network

Synchronizing unix machines across network

Post by Marie L » Sun, 17 Oct 1993 01:27:21



We are in the process of bringing our source code under configuration
management using CaseWare/CM. We have found that a time difference in the
clocks on the configuration management machine and the host machine is
preventing the [Build] function registering changes and recompiling the changed
files.  Is there a way to synchronize the clocks periodically on all the
connected machines? (The machines in question are Sun and RS6000s)

It has been suggested that we look into timed or ntpd but I don't know what
they are let alone applicability to our problem.  

Any help would be appreciated.

Thanks,


 
 
 

Synchronizing unix machines across network

Post by Marc Cooperma » Sun, 17 Oct 1993 05:28:11


the rdate command should do it - at least on suns
have all your clients   rdate {fileservername} from a cron job once a day

---

Marc Cooperman
NASDAQ Systems
Goldman, Sachs & Co.
(212) 902-6963

* The opinions expressed in this message  are not necessarily those of    *
* Goldman, Sachs, or the rest of the Co.                                  *

 
 
 

Synchronizing unix machines across network

Post by Syed Zaeem Hosa » Mon, 18 Oct 1993 04:45:14



Quote:>We are in the process of bringing our source code under configuration
>management using CaseWare/CM. We have found that a time difference in the
>clocks on the configuration management machine and the host machine is
>preventing the [Build] function registering changes and recompiling the changed
>files.  Is there a way to synchronize the clocks periodically on all the
>connected machines? (The machines in question are Sun and RS6000s)

People will recommend ntpd as a good solution. But here is a quick work
around while you explore other solutions.

On the Sun's, specify one machine to be the 'datehost' in the hosts
file (NIS or whatever). This is most likely the server where the
configuration management files reside. On the other machines, add cron
entries for root to do an 'rdate datehost' on a periodic basic. Once
per day at 6am ought to be enough, as long as the time does not drift
too badly. This allows the time to be close during normal working
hours.

I do not know if the IBM machines have 'rdate', so if they don't, the
next best thing there is to do a simple script that invokes 'date' on
'datehost' and then parses the values into the correct format and
invokes the AIX command to set the date and time locally. Then add this
script to be run by cron (or whatever is the equiv for AIX) for root.

By the way, you do not have to define 'datehost' - you could simply use
the name of the configuration management server.

Second point to note is, that for this type of software, it is not the
absolute time that matters, merely that the time be the same on all
accessing hosts. But if you want to be precisely accurate too, then you
can have the 'datehost' machine dial into the NBS service that provides
this capability and set the time (just before all the workstations are
due to do the 'rdate' via cron).

Quote:>It has been suggested that we look into timed or ntpd but I don't know what
>they are let alone applicability to our problem.

--
-------------------------------------------------------------------------
| Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |

-------------------------------------------------------------------------
 
 
 

1. How to synchronize files across standalone machines ?

I have HP-UX computers running across two separate networks in company
and a NeXT in home.  I work with the machines.  Is there any scripts
to do file synchronization across the mahines by means of tape/floppy
media ?  I mean I work on different machines with same directory/file
hierarchy under my A/C.  Periodically, I do a tar or cpio or something
like that from one machine to the other to update the files without
accidentally overwrite the new copy or if I made changed in both machines
then I would have chances to merge the files.

Such functionality is also necessary when I want to synchronize files
across 2 computers in dual redundancy across a network.

Thanks in advance.

Rgds

Mr.Sai-Kee Wong

2. how to restart apache, ./httpd restart /usr/apache/bin is no good at all???????????????? Solaris 8 (INtel)

3. Synchronizing time across the network

4. privatize has_pending_signals()

5. how to bring up GUI across two unix machines?

6. How to check xDSL speed?

7. Unix FS on diskette across Sparc Solaris and X86 Solaris machine?

8. Unix root Security

9. syslogging across networks to a main log machine

10. Iproute2 problem across networks using NAT and 2 internal networks

11. synchronize date & time between dual boot machine

12. Synchronize Files Between Two Linux Machines