Syncing server clocks in Solaris

I have several servers with different time settings.

How do I sync these servers to the same time with NTP.

Thanks,
Remi

use the search function :wink:

Run a timed server on only one server while other servers are running timed client.

This is what I ran on my ntp server & I'm still getting error message " ntpq: read: Connection refused"

Any Idea what I did wrong.

I'm trying to have all other servers indicated as the "peer" synchronize with the sstrappeadmn.

Any help is appreciated.

Thanks,
Remi

Either a peer or server. Replace "XType" with a value from the
# table above.
server sstrappeadmn prefer
peer sstarppeidb1
peer sstrappeidb2
peer sstrappeappl1
peer sstrappeappl2
peer sstrappeappl3
peer sstrappeappl4
peer sstrappeadb1
peer sstrappeadb2
peer sstrappeintf
peer sstrappemcs
broadcast 224.0.1.1 ttl 4

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

keys /etc/inet/ntp.keys
trustedkey 0
requestkey 0
controlkey 0
"ntp.conf" 73 lines, 2851 characters
# ntpq
ntpq> peers
ntpq: read: Connection refused
ntpq> ^C
# ntpd
ntpd: not found
# ntpq -p
ntpq: read: Connection refused
# ntpq -p sstrappeidb1
ntpq: read: Connection refused
#

I feel the NTP Serivce is not running in the System.

If it is a Linux machine --> service ntpd start

In Solaris (till version 9) --> /etc/init.d/xntpd start
In Solaris 10 --> svcadm enable ntp

Check this link: How to configure NTP in Solaris/Windows/Linux environment...??? Read thru the instructionsand recommendations first. Let us know if you've doubts.