You can also disable xntpd and not run NTP as a daemon on your Solaris
box. You can do this by changing the /etc/rc2.d/S74xntpd init file to
/etc/rc2.d/s74xntpd.
You can then set up a cron job to run /usr/sbin/ntpdate against your DC
(either by IP Address of by DNS Name)
0,30 * * * * /usr/sbin/ntpdate 0.0.0.0 > /dev/null 2>&1
This cronjob will allow your system to synchronize the time every half
an hour (you can change it to suit your needs).
Best regards,
Layne Meier
Atlanta Journal-Constitution
A Cox Newspaper
On Jun 27, 2005, at 1:56 PM, Andrew Smaff Matthews wrote:
On Mon, Jun 27, 2005 at 10:26:52AM -0400, Quick, Richard A. wrote:
I sync my windows management with NTP from my DC and have (4) Nokia's
looking at the management for time. Does solaris support NTP?
It does.
man xntpd
The above will go into far more detail than you need, so... As you
have your
DC as an ntp server you can add the following 2 lines into
/etc/inet/ntp.conf
server <DC's IPaddr>
driftfile /var/ntp/ntp.drift
And then either copy or make a link from /etc/init.d/xntpd to
/etc/rc2.d/xtnpd. I prefer a link:
ln /etc/init.d/xntpd /etc/rc2.d/xntpd
And then run:
/etc/rc2.d/xntpd start
And it should work.
However...
If you have two boxes that can see eachother over a link that's
unlikely to
go down and its important they have the same time (even if its wrong),
you
can use the peer command:
On HA_box_A, 3 lines in /etc/inet/ntp.conf
server <DC's IPaddr> prefer
peer <HA_box_B's IPaddr>
driftfile /var/ntp/ntp.drift
And on HA_box_B, 3 lines in /etc/inet/ntp.conf
server <DC's IPaddr> prefer
peer <HA_box_B's IPaddr>
driftfile /var/ntp/ntp.drift
(and the same trick with /etc/init.d/xntpd)
Note, if you have more than one stable source of clock (such as an ISP
provided ntp server) you can add those in as extra "server" lines. At
this
point, the boxes will act as ntp servers, if your local
filters/firewall
config allows it.
Smaff
--
You happen to be here, now.
=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to [EMAIL PROTECTED]
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
[EMAIL PROTECTED]
=================================================
=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to [EMAIL PROTECTED]
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
[EMAIL PROTECTED]
=================================================