Configuring NTP in Solaris 10


Tags:

                                  

cp /etc/inet/ntp.server /etc/inet/ntp.conf

edit the ntp.conf file.

        For an undisciplined local clock:

                change `server 127.127.XType.0`
                    to `server 127.127.1.0'
                comment out `fudge 127.127.XType.0 stratum 0`

        Syncing to an external NTP server:

                (see NTP.Servers Web for a list of public time servers)

                change `server 127.127.XType.0`
                    to `server externel time server`
                        (where externel time server is the IP or hostname of the 
                         time server you wish to sync to)

                        you may add multiple external servers here, in this format:

                        server externel time server1
                        server externel time server2
                        server externel time server3

                comment out `fudge 127.127.XType.0 stratum 0`


touch /var/ntp/ntp.drift
svcadm enable svc:/network/ntp


----------------------------------------
Configuring an NTP Client in Solaris 10:
----------------------------------------

cp /etc/inet/ntp.client /etc/inet/ntp.conf
svcadm enable svc:/network/ntp


plz let me know clearly hopw to configure ftp server in solaris ,aix

Very big help, Thank you! --And thank you to Solaris 10 for making it relatively easy.

NTP client setup on SOLARIS 10:
============================================
1. cp /etc/inet/ntp.server /etc/inet/ntp.conf
2. vi /etc/inet/ntp.conf add the IP (example 10.10.10.1) of the "server" and comment out `fudge 127.127.XType.0 stratum 0`
NOTE: file is truncated:
.....
.....
.....
# Either a peer or server. Replace "XType" with a value from the
# table above.
server 10.10.10.1
#fudge 127.127.XType.0 stratum 0

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

3. touch /var/ntp/ntp.drift
4. svcadm enable ntp or svcadm restart ntp
5. Check if NTP is online

myhost:~) svcs ntp
STATE STIME FMRI
online 21:11:54 svc:/network/ntp:default

6. Verify:

myhost:~) ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*10.10.10.1 .GPS. 1 u 38 64 377 0.53 3.205 1.24
224.0.1.1 0.0.0.0 16 - - 64 0 0.00 0.000 16000.0