Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date and Time Sync

Status
Not open for further replies.

BJZeak

Programmer
May 3, 2008
230
CA
Most unix flavours appear to have a utility called ntpdate that will sync local date and time from the Internet ... I was hoping someone might know of a way to use a SHELL Script to get date and time from the Internet without using ntpdate ... have a mature DB app running on SCO Xenix 5.0.5Eb, which I have running in a Virtual Machine ... for this situation, VM Tools doesn't know how to play with XENIX and the ntpdate installed refuses to play with current public ntp servers.

This version of Xenix has Netscape installed so I expect it should be able to run a command line style query to fetch the date and time from the Internet? Just don't know what command to use.
 
Ok the reason ntpdate wasn't working because XENIX was missing a DNS configuration ... wasn't able to decipher how to set up DNS or a permanent route table from the SCO manuals ... so ... I just created a simple script linked to cron to run every midnight plus to run at reboot.

route add default <Router Gateway IP address>
ntpdate <IP of a public NTP Server>
ntpdate <IP of an alternate public NTP Server>

This is certainly a kludge but at least the Xenix DATE/TIME should stay in sync inside the VM.

This VM is running 24/7 on Win7Pro machine ... this PC has a history of random reboots ... the Motherboard has been replaced once already along with adding a larger Wattage P/S (the failures all appear to be hardware related) ... XENIX usually needs some TLC after most of these impromtu reboots.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top