Time

From Nekochan
Jump to: navigation, search

Concepts

  • International Atomic Time (TAI).
  • Universal Time Coordinated (UTC).
  • Time Zone variable (TZ).

/etc/TIMEZONE

  • Zone Information Compiler (zic).

ZIC

ZIC(1M)

NAME
    zic - time zone information compiler
SYNOPSIS
    zic [ -v] [ -d  directory ] [ -l localtime ] [ -p  posixrules ] [ -L
    leapsecondfilename ] [ -s ] [ -y command ] [ filename ... ]
DESCRIPTION
    Zic reads text from the file(s) named on the command line and creates the
    time conversion information files specified in this input.  If a filename
    is -, the standard input is read.


Network Time Protocol

Download neko_openntpd-3.9p1.tardist from nekoware or download ntp from freeware.sgi.com

chkconfig
ntp        on
timed      off
timeslave  off


edit /etc/ntp.conf add a server line for the timeserver you want to use.

See NTP.org site for more information or download ntp source from the above ntp.org site and compile and install it.

NOTE: neko_openntd seems to install a different package than specified above which is possibly the SGI Freeware version. Instead, I had to:

chkconfig neko_ntpd on

and edit /usr/nekoware/etc/ntpd.conf. You may alway wish to force a service restart (without rebooting)

/etc/init.d/neko_ntpd restart

Squeen 04:11, 28 May 2010 (PDT)

timed

Turn timeslave on:


chkconfig timeslave on


Edit /etc/config/timeslave.options to include a time server:


-H nist1.datum.com


Start it up as root (or reboot if you prefer):


/etc/init.d/network stop; /etc/init.d/network start


And that's it. Every once in a while in your SYSLOG you should see messages like:


Oct 18 00:33:43 5D:Komugi timeslave[230]: date changed from 10/18/04 00:33:33

See also

Refer also to the util/timetrim.c program for some older SGI models and UNICOS based Cray super computers in the NTP reference distribution.

Here is a forum thread on some of the issues that can arise.