SUMMARY: NTP - 2 questions

From: <SolarisSys_at_netscape.net>
Date: Wed Jan 29 2003 - 08:21:55 EST
Thanks to everyone for help with this.  A lot of responses, I will put the popular ones.

If your 7500 is really capable of being an NTP server, then an
/etc/inet/ntp.conf like:

   server servername
   driftfile /etc/inet/ntp.drift

And:

   % sudo /etc/init.d/xntpd start

Is all you need.

ntpdate servername

You can't run ntpdate if xntpd is already running.

If xntpd is running, 'ntpq -p' will tell you if it is actually
working.

If ntpdate doesn't work right, 'ntpdate -d servername' will tell you
why.

_________________________________________________________________________

The command, "ntpdate <SERVERNAME>" will force a time-warp clock adjust, 
synching local client clock to <servername> assuming it is an NTP server.

This is a one-jump-adjust, not a gradual ramping, I might warn you :-)

Solaris boxes don't care what OS/platform the NTP server is AFAIK, so 
just setup an ntp.conf file appropriately, ie, approx something thus?

atlas.ecopiabio.com % more /etc/inet/ntp.conf
## NTP Config Oct-19-2001 TDC
##
## SLAVE synching against local time source (DIAN)

server 192.168.1.209 prefer minpoll 8 maxpoll 12
server 127.127.1.0
fudge 127.127.1.0 stratum 9

enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable


##ENDPASTE

The only line that really matters is the first "server" declaration. All 
beyond that is icing on the cake. Minpoll, maxpoll are just there to 
keep traffic down, I'm not concerned at the level of nanoseconds here :-)


Once the ntp.conf file exists, the next time you reboot, ntp daemons 
will kick in. Or, create this conf file, start up the daemon manually:

/usr/lib/inet/xntpd

and once running, get usefull diagnostic info from command,

ntpq -p

ie,

atlas.ecopiabio.com % ntpq -p
     remote           refid      st t when poll reach   delay   offset 
   disp
==============================================================================
*dian.ecopiabio. dns1.cmc.ec.gc.  3 u  107  256  377     0.78   -3.352 
  2.67
 LOCAL(0)        LOCAL(0)         9 l   14   64  377     0.00    0.000 
  10.01


in this case we see the (*) marks the ntp server the client is synching 
against. note that after starting the daemon, it may take a while for 
this to really happen, depending on time differential, latency of 
connection, etc etc.

__________________________________________________________________________

My Solaris 8 systems are clients of various NTP servers, so in that
sense I do have experience; however, I would never dream of syncing
them to anything Cisco. [We have plenty of Cisco gear. It's giving us
plenty of headaches.]

That said, our /etc/inet/ntp.conf file looks something along the lines of:
---------------------------------------------------------------------------
server 192.168.1.123 key 111
server 192.168.2.123 key 222
server 192.168.3.123 key 333

keys /etc/inet/ntp.keys
trustedkey 111 222 333

restrict default ignore
restrict 192.168.1.123 nomodify
restrict 192.168.2.123 nomodify
restrict 192.168.3.123 nomodify
restrict 127.0.0.1

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






SolarisSys wrote:

>We have a Cisco 7500 router that is running NTP and I am looking how to configure my Solaris 8 systems to be clients.  Does anyone have any experience with this.
>
>Also, a while ago I ran a command that would adjust the time of my Solaris 8 systems and sync them up with an outside time server.  I cannot remember the command for the life of me.  Can someone remind me of this simple command.  Apologies for the simplicity.
>
>Thanks,
>
>p
>
>__________________________________________________________________
>The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp 
>
>Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
>

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Jan 29 08:26:09 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:02 EST