HP3000-L Archives

April 1998, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Tue, 21 Apr 1998 20:24:32 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
GF writes:
> I basically dont know what I'm doing.  I'd like to configure my hp3000
> to use this utility to obtain the current time from another server and
> set the clock on the 3000.
>
> Is anyone using "nettime" or a similar utility, that can give me an
> overview of how this works?

The NTPDATE portion of my XNTP/iX port can do this:

        http://www.cccd.edu/~markb/xntpix.html

All you need to do to set the time is:

        :XEQ NTPDATE "time.host.one time.host.two time.host.three ...."

Programs like NTPDATE and nettime speak the Network Time Protocol (NTP),
and ask a remote time server "What time is it?" and then set the local clock
with whatever the answer is.

> hp = gethostbyname("ntp")                      <---  this call is
> returning NULL and is failing

You need to specify a valid host name for an external time server.  Visit
my XNTP/iX page above; I believe I link either a list of public time servers,
or else I link to the XNTP home page, which in turn has a list of time servers.
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2