One time query to sync time with NTP server

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I do not plan to configure NTP client to sync with the NTP servers for my Solaris servers.



Is it possible that I connect to this NTP servers and sync the time on an ad-hoc basis?







share|improve this question

















  • 1




    Why are you setting out on the wrong path? It's trivial to configure NTP (whether ntpd or xntpd) to synchronise to a local server.
    – roaima
    May 17 at 10:35










  • I am not familiar with the configuration of NTP client/service for Solaris.
    – youcanlearnanything
    May 17 at 10:36










  • What about google.com/…
    – roaima
    May 17 at 10:38










  • looks kind of confusing for me.
    – youcanlearnanything
    May 17 at 10:38










  • You haven't asked how to configure NTP to synchronise clients from a local server, nor how to set up that local server, so I can't answer such a question here. If you do ask that kind of question I'm sure you'll get answers. Please ensure you state whether your primary server needs to get time from the Internet or whether it's to run only from its local clock.
    – roaima
    May 17 at 10:41















up vote
1
down vote

favorite












I do not plan to configure NTP client to sync with the NTP servers for my Solaris servers.



Is it possible that I connect to this NTP servers and sync the time on an ad-hoc basis?







share|improve this question

















  • 1




    Why are you setting out on the wrong path? It's trivial to configure NTP (whether ntpd or xntpd) to synchronise to a local server.
    – roaima
    May 17 at 10:35










  • I am not familiar with the configuration of NTP client/service for Solaris.
    – youcanlearnanything
    May 17 at 10:36










  • What about google.com/…
    – roaima
    May 17 at 10:38










  • looks kind of confusing for me.
    – youcanlearnanything
    May 17 at 10:38










  • You haven't asked how to configure NTP to synchronise clients from a local server, nor how to set up that local server, so I can't answer such a question here. If you do ask that kind of question I'm sure you'll get answers. Please ensure you state whether your primary server needs to get time from the Internet or whether it's to run only from its local clock.
    – roaima
    May 17 at 10:41













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I do not plan to configure NTP client to sync with the NTP servers for my Solaris servers.



Is it possible that I connect to this NTP servers and sync the time on an ad-hoc basis?







share|improve this question













I do not plan to configure NTP client to sync with the NTP servers for my Solaris servers.



Is it possible that I connect to this NTP servers and sync the time on an ad-hoc basis?









share|improve this question












share|improve this question




share|improve this question








edited May 17 at 9:06









Jeff Schaller

31.1k846105




31.1k846105









asked May 17 at 5:47









youcanlearnanything

1464




1464







  • 1




    Why are you setting out on the wrong path? It's trivial to configure NTP (whether ntpd or xntpd) to synchronise to a local server.
    – roaima
    May 17 at 10:35










  • I am not familiar with the configuration of NTP client/service for Solaris.
    – youcanlearnanything
    May 17 at 10:36










  • What about google.com/…
    – roaima
    May 17 at 10:38










  • looks kind of confusing for me.
    – youcanlearnanything
    May 17 at 10:38










  • You haven't asked how to configure NTP to synchronise clients from a local server, nor how to set up that local server, so I can't answer such a question here. If you do ask that kind of question I'm sure you'll get answers. Please ensure you state whether your primary server needs to get time from the Internet or whether it's to run only from its local clock.
    – roaima
    May 17 at 10:41













  • 1




    Why are you setting out on the wrong path? It's trivial to configure NTP (whether ntpd or xntpd) to synchronise to a local server.
    – roaima
    May 17 at 10:35










  • I am not familiar with the configuration of NTP client/service for Solaris.
    – youcanlearnanything
    May 17 at 10:36










  • What about google.com/…
    – roaima
    May 17 at 10:38










  • looks kind of confusing for me.
    – youcanlearnanything
    May 17 at 10:38










  • You haven't asked how to configure NTP to synchronise clients from a local server, nor how to set up that local server, so I can't answer such a question here. If you do ask that kind of question I'm sure you'll get answers. Please ensure you state whether your primary server needs to get time from the Internet or whether it's to run only from its local clock.
    – roaima
    May 17 at 10:41








1




1




Why are you setting out on the wrong path? It's trivial to configure NTP (whether ntpd or xntpd) to synchronise to a local server.
– roaima
May 17 at 10:35




Why are you setting out on the wrong path? It's trivial to configure NTP (whether ntpd or xntpd) to synchronise to a local server.
– roaima
May 17 at 10:35












I am not familiar with the configuration of NTP client/service for Solaris.
– youcanlearnanything
May 17 at 10:36




I am not familiar with the configuration of NTP client/service for Solaris.
– youcanlearnanything
May 17 at 10:36












What about google.com/…
– roaima
May 17 at 10:38




What about google.com/…
– roaima
May 17 at 10:38












looks kind of confusing for me.
– youcanlearnanything
May 17 at 10:38




looks kind of confusing for me.
– youcanlearnanything
May 17 at 10:38












You haven't asked how to configure NTP to synchronise clients from a local server, nor how to set up that local server, so I can't answer such a question here. If you do ask that kind of question I'm sure you'll get answers. Please ensure you state whether your primary server needs to get time from the Internet or whether it's to run only from its local clock.
– roaima
May 17 at 10:41





You haven't asked how to configure NTP to synchronise clients from a local server, nor how to set up that local server, so I can't answer such a question here. If you do ask that kind of question I'm sure you'll get answers. Please ensure you state whether your primary server needs to get time from the Internet or whether it's to run only from its local clock.
– roaima
May 17 at 10:41











2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










The ntpdate command will have the answer of your question.



https://docs.oracle.com/cd/E23823_01/html/816-5166/ntpdate-1m.html






share|improve this answer




























    up vote
    1
    down vote













    You could manually sync on an adhoc basis, but based on the simplicity of setting up NTP, you might as well set it up for your servers.



    You didn't note your version of Solaris, but the configuration file is going to be similar across the majority of the platforms since most vendors use the same source code for NTP.



    Sample simple configuration file for an NTP client below. You'll also usually see vendor samples in that same directory.



    /etc/inet/ntp.conf:



    server <NTP_SERVER1> prefer 
    server <NTP_SERVER2>

    peer <NTP_PEER_SERVER1>
    peer <NTP_PEER_SERVER2>

    slewalways yes

    driftfile /var/ntp/ntp.drift
    statsdir /var/ntp/ntpstats/


    You can also refer to NTP.org's faq:



    http://www.ntp.org/ntpfaq/






    share|improve this answer





















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444288%2fone-time-query-to-sync-time-with-ntp-server%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote



      accepted










      The ntpdate command will have the answer of your question.



      https://docs.oracle.com/cd/E23823_01/html/816-5166/ntpdate-1m.html






      share|improve this answer

























        up vote
        3
        down vote



        accepted










        The ntpdate command will have the answer of your question.



        https://docs.oracle.com/cd/E23823_01/html/816-5166/ntpdate-1m.html






        share|improve this answer























          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          The ntpdate command will have the answer of your question.



          https://docs.oracle.com/cd/E23823_01/html/816-5166/ntpdate-1m.html






          share|improve this answer













          The ntpdate command will have the answer of your question.



          https://docs.oracle.com/cd/E23823_01/html/816-5166/ntpdate-1m.html







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered May 17 at 7:01









          minish

          20614




          20614






















              up vote
              1
              down vote













              You could manually sync on an adhoc basis, but based on the simplicity of setting up NTP, you might as well set it up for your servers.



              You didn't note your version of Solaris, but the configuration file is going to be similar across the majority of the platforms since most vendors use the same source code for NTP.



              Sample simple configuration file for an NTP client below. You'll also usually see vendor samples in that same directory.



              /etc/inet/ntp.conf:



              server <NTP_SERVER1> prefer 
              server <NTP_SERVER2>

              peer <NTP_PEER_SERVER1>
              peer <NTP_PEER_SERVER2>

              slewalways yes

              driftfile /var/ntp/ntp.drift
              statsdir /var/ntp/ntpstats/


              You can also refer to NTP.org's faq:



              http://www.ntp.org/ntpfaq/






              share|improve this answer

























                up vote
                1
                down vote













                You could manually sync on an adhoc basis, but based on the simplicity of setting up NTP, you might as well set it up for your servers.



                You didn't note your version of Solaris, but the configuration file is going to be similar across the majority of the platforms since most vendors use the same source code for NTP.



                Sample simple configuration file for an NTP client below. You'll also usually see vendor samples in that same directory.



                /etc/inet/ntp.conf:



                server <NTP_SERVER1> prefer 
                server <NTP_SERVER2>

                peer <NTP_PEER_SERVER1>
                peer <NTP_PEER_SERVER2>

                slewalways yes

                driftfile /var/ntp/ntp.drift
                statsdir /var/ntp/ntpstats/


                You can also refer to NTP.org's faq:



                http://www.ntp.org/ntpfaq/






                share|improve this answer























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  You could manually sync on an adhoc basis, but based on the simplicity of setting up NTP, you might as well set it up for your servers.



                  You didn't note your version of Solaris, but the configuration file is going to be similar across the majority of the platforms since most vendors use the same source code for NTP.



                  Sample simple configuration file for an NTP client below. You'll also usually see vendor samples in that same directory.



                  /etc/inet/ntp.conf:



                  server <NTP_SERVER1> prefer 
                  server <NTP_SERVER2>

                  peer <NTP_PEER_SERVER1>
                  peer <NTP_PEER_SERVER2>

                  slewalways yes

                  driftfile /var/ntp/ntp.drift
                  statsdir /var/ntp/ntpstats/


                  You can also refer to NTP.org's faq:



                  http://www.ntp.org/ntpfaq/






                  share|improve this answer













                  You could manually sync on an adhoc basis, but based on the simplicity of setting up NTP, you might as well set it up for your servers.



                  You didn't note your version of Solaris, but the configuration file is going to be similar across the majority of the platforms since most vendors use the same source code for NTP.



                  Sample simple configuration file for an NTP client below. You'll also usually see vendor samples in that same directory.



                  /etc/inet/ntp.conf:



                  server <NTP_SERVER1> prefer 
                  server <NTP_SERVER2>

                  peer <NTP_PEER_SERVER1>
                  peer <NTP_PEER_SERVER2>

                  slewalways yes

                  driftfile /var/ntp/ntp.drift
                  statsdir /var/ntp/ntpstats/


                  You can also refer to NTP.org's faq:



                  http://www.ntp.org/ntpfaq/







                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered May 17 at 20:43









                  sleepyweasel

                  81319




                  81319






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444288%2fone-time-query-to-sync-time-with-ntp-server%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?