{"id":6028,"date":"2016-07-14T11:38:21","date_gmt":"2016-07-14T03:38:21","guid":{"rendered":"http:\/\/rmohan.com\/?p=6028"},"modified":"2016-07-14T11:38:21","modified_gmt":"2016-07-14T03:38:21","slug":"how-to-configure-ntp-server-and-ntp-client-on-solaris-10","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6028","title":{"rendered":"How to Configure NTP Server and NTP Client on Solaris 10"},"content":{"rendered":"<p>How to Configure NTP Server on Solaris 10:<\/p>\n<p>[Check NTP services:<br \/>\nbash-3.00# svcs ntp<br \/>\nSTATE          STIME    FMRI<br \/>\ndisabled       21:14:03 svc:\/network\/ntp:default<br \/>\nbash-3.00#<\/p>\n<p>NTP services still \u2018disabled\u2019, OK leave it disabled state, before enable NTP services, we need to create \/ edit ntp.conf.<\/p>\n<p>bash-3.00# cp \/etc\/inet\/ntp.server \/etc\/inet\/ntp.conf<br \/>\nbash-3.00# vi \/etc\/inet\/ntp.conf<br \/>\n[Find two lines:<br \/>\nserver 127.127.XType.0<br \/>\nfudge 127.127.XType.0 stratum 0<\/p>\n<p>Replace \u201cXType\u201d with your External Clock Device.the complete list are on ntp.conf file.<\/p>\n<p>\u2014\u2014\u2014\u2014\u2014\u2013<\/p>\n<p># This is the external clock device.  The following devices are<br \/>\n# recognized by xntpd 3-5.93e:<br \/>\n#<br \/>\n# XType Device    RefID          Description<br \/>\n# \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014-<br \/>\n#  1    local     LCL            Undisciplined Local Clock<br \/>\n#  2    trak      GPS            TRAK 8820 GPS Receiver<br \/>\n#  3    pst       WWV            PSTI\/Traconex WWV\/WWVH Receiver<br \/>\n#  4    wwvb      WWVB           Spectracom WWVB Receiver<br \/>\n#  5    true      TRUE           TrueTime GPS\/GOES Receivers<br \/>\n#  6    irig      IRIG           IRIG Audio Decoder<br \/>\n#etc\u2026..<\/p>\n<p>\u2014\u2014\u2014\u2014\u2014-<\/p>\n<p>Usually we use XType number 1, \u201cUndisciplined Local Clock\u201d. So the configuration become like this:<\/p>\n<p>server 127.127.1.0<br \/>\nfudge 127.127.1.0 stratum 0<\/p>\n<p>You can also syncing to an external NTP server:<br \/>\nGo to http:\/\/www.pool.ntp.org\/ for a list of public time servers:<br \/>\nchange `server 127.127.XType.0`<br \/>\nto `server time_server`<\/p>\n<p>[Exp for Indonesia pool zone:<br \/>\nserver 0.id.pool.ntp.org<br \/>\nserver 0.asia.pool.ntp.org<br \/>\nserver 2.asia.pool.ntp.org<br \/>\n[then ENABLE the NTP services:<br \/>\nbash-3.00# svcadm enable ntp<br \/>\nbash-3.00# svcs ntp<br \/>\nSTATE          STIME    FMRI<br \/>\nonline         21:38:44 svc:\/network\/ntp:default<\/p>\n<p>Now, your NTP server will broadcast its packet using UDP port 123 on Multicast network 224.0.0.1<\/p>\n<p>How to Configure NTP Client on Solaris 10:<\/p>\n<p>On client side, check ntp services, leave it in disabled state, we\u2019ll re-enable again later:<\/p>\n<p>[Copy ntp.client become ntp.conf file:<br \/>\nbash-3.00# cp \/etc\/inet\/ntp.client \/etc\/inet\/ntp.conf<br \/>\nThe default config is \u201cmulticastclient 224.0.1.1\u201d  It mean your client passively waits for a ntp server to provide NTP packet to multicast network 224.0.1.1. If you want to sync your clock to a particular server, even though the clock is coming from the Internet or from the server\u2019s hardware clock then specify it as:<\/p>\n<p>server <NTP_server_ip_address><\/p>\n<p>Donf forget to remove\/comment the line \u201cmulticastclient 224.0.1.1\u201d<\/p>\n<p>[ENABLE the NTP services:<br \/>\nbash-3.00# svcadm enable ntp<br \/>\nbash-3.00# svcs ntp<br \/>\nSTATE          STIME    FMRI<br \/>\nonline         22:30:15 svc:\/network\/ntp:default<\/p>\n<p>Run \u201cntpq -p\u201d to check which NTP server you are using right now.<\/p>\n<p>[Read more:<br \/>\n# man xntpd<\/p>\n<p>[Additional references:<br \/>\nUsing NTP to Control and Synchronize System Clocks \u2013 Part I: Introduction to NTP<br \/>\nhttp:\/\/www.sun.com\/blueprints\/0701\/NTP.pdf<\/p>\n<p>Using NTP to Control and Synchronize System Clocks \u2013 Part II: Basic NTP Administration and Architecture<br \/>\nhttp:\/\/www.sun.com\/blueprints\/0801\/NTPpt2.pdf<\/p>\n<p>Using NTP to Control and Synchronize System Clocks \u2013 Part III: NTP Monitoring and Troubleshooting<br \/>\nhttp:\/\/www.sun.com\/blueprints\/0901\/NTPpt3.pdf<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Configure NTP Server on Solaris 10:<\/p>\n<p>[Check NTP services: bash-3.00# svcs ntp STATE STIME FMRI disabled 21:14:03 svc:\/network\/ntp:default bash-3.00#<\/p>\n<p>NTP services still \u2018disabled\u2019, OK leave it disabled state, before enable NTP services, we need to create \/ edit ntp.conf.<\/p>\n<p>bash-3.00# cp \/etc\/inet\/ntp.server \/etc\/inet\/ntp.conf bash-3.00# vi \/etc\/inet\/ntp.conf [Find two lines: server 127.127.XType.0 fudge 127.127.XType.0 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6028"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6028"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6028\/revisions"}],"predecessor-version":[{"id":6029,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6028\/revisions\/6029"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}