NTP installation and configuration on Solaris - NTP

This is a discussion on NTP installation and configuration on Solaris - NTP ; Hi, As you said, Solaris 10 has already ntp installed. I followed your recommendation since you told me that the ntp bundled with Solaris has an old version (how to check ntp version by the way? And are we installing ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: NTP installation and configuration on Solaris

  1. NTP installation and configuration on Solaris

    Hi,

    As you said, Solaris 10 has already ntp installed. I followed your recommendation since you told me that the ntp bundled with Solaris has an old version (how to check ntp version by the way? And are we installing here a NTP server or a NTP client?)

    Anyway, I installed ntp-4.2.4p4 (default installation). I also disabled the solaris ntp.

    What are the post installation steps? I do not see a configuration file. Should I simply copy /etc/inet/ntp.server to /etc/inet/ntp.conf? Isn’t used only by the native ntp of solaris?
    What is the difference between /etc/inet/ntp.server and /etc/inet/ntp.client?
    Now I have the same binaries installed under /usr/local/bin and /usr/sbin

    which ntpq
    /usr/sbin/ntpq

    which ntpdate
    /usr/sbin/ntpdate

    which ntpq
    /usr/sbin/ntpq

    which ntptrace
    /usr/sbin/ntptrace

    Should I simply update PATH variable? Is there any better suggestion?

    thank you

  2. Re: NTP installation and configuration onSolaris

    > Date: Sat, 8 Nov 2008 10:25:13 +0000 (GMT)
    > From: Melanie Pfefer
    > Sender: questions-bounces+oberman=es.net@lists.ntp.org
    >
    > Hi,
    >
    > As you said, Solaris 10 has already ntp installed. I followed your
    > recommendation since you told me that the ntp bundled with Solaris has
    > an old version (how to check ntp version by the way? And are we
    > installing here a NTP server or a NTP client?)


    It logs the version when it starts, or
    strings `which ntpd` | grep "NTP daemon program"


    > Anyway, I installed ntp-4.2.4p4 (default installation). I also
    > disabled the solaris ntp.
    >
    > What are the post installation steps? I do not see a configuration
    > file. Should I simply copy /etc/inet/ntp.server to /etc/inet/ntp.conf?


    Not being a Solaris person, I can't say what is in
    /etc/inet/ntp.server.

    The config file in most cases is a list of servers. If you don't have a
    reference server of your own and don't have contacts with someone that
    does, you can use uk.pool.ntp.org, but check with your Internet provider
    as many do have available servers. This is pretty likely to have a
    symmetric path. Asymmetric paths (that is a different path to the server
    and from the server) will result in a time offset which is normally
    fairly small, but can be over 100 ms. in some cases.

    See the man page "man ntp.conf" or see the documentation at ntp.org.

    You should try to list at least three servers to provide assurance that
    one going crazy won't mess up your time. More is better. I also
    recommend using the 'iburst' argument on each 'server' line. (Do NOT use
    'burst'!)

    > Isn’t used only by the native ntp of solaris?

    I have no idea, but I suspect so.

    > What is the difference between /etc/inet/ntp.server and /etc/inet/ntp.client?
    > Now I have the same binaries installed under /usr/local/bin and /usr/sbin
    >
    > which ntpq
    > /usr/sbin/ntpq
    >
    > which ntpdate
    > /usr/sbin/ntpdate
    >
    > which ntpq
    > /usr/sbin/ntpq
    >
    > which ntptrace
    > /usr/sbin/ntptrace
    >
    > Should I simply update PATH variable? Is there any better suggestion?


    Again, this is OS specific, so I'll defer to someone who works with
    Solaris.
    --
    R. Kevin Oberman, Network Engineer
    Energy Sciences Network (ESnet)
    Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
    E-mail: oberman@es.net Phone: +1 510 486-8634
    Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751

  3. Re: NTP installation and configuration onSolaris

    how to stop and start ntp on solaris knowing that svcadm will start/stop the native ntp?

    I installed ntp under /usr/local/

    the bin folder has:

    ntp-keygen ntp-wait ntpd ntpdate ntpdc ntpq ntptime ntptrace

    thanks


    --- On Mon, 10/11/08, Kevin Oberman wrote:

    > From: Kevin Oberman
    > Subject: Re: [ntp:questions] NTP installation and configuration on Solaris
    > To: melanie_pfefer@yahoo.co.uk
    > Cc: questions@lists.ntp.org
    > Date: Monday, 10 November, 2008, 4:13 AM
    > > Date: Sat, 8 Nov 2008 10:25:13 +0000 (GMT)
    > > From: Melanie Pfefer

    >
    > > Sender: questions-bounces+oberman=es.net@lists.ntp.org
    > >
    > > Hi,
    > >
    > > As you said, Solaris 10 has already ntp installed. I

    > followed your
    > > recommendation since you told me that the ntp bundled

    > with Solaris has
    > > an old version (how to check ntp version by the way?

    > And are we
    > > installing here a NTP server or a NTP client?)

    >
    > It logs the version when it starts, or
    > strings `which ntpd` | grep "NTP daemon program"
    >
    >
    > > Anyway, I installed ntp-4.2.4p4 (default

    > installation). I also
    > > disabled the solaris ntp.
    > >
    > > What are the post installation steps? I do not see a

    > configuration
    > > file. Should I simply copy /etc/inet/ntp.server to

    > /etc/inet/ntp.conf?
    >
    > Not being a Solaris person, I can't say what is in
    > /etc/inet/ntp.server.
    >
    > The config file in most cases is a list of servers. If you
    > don't have a
    > reference server of your own and don't have contacts
    > with someone that
    > does, you can use uk.pool.ntp.org, but check with your
    > Internet provider
    > as many do have available servers. This is pretty likely to
    > have a
    > symmetric path. Asymmetric paths (that is a different path
    > to the server
    > and from the server) will result in a time offset which is
    > normally
    > fairly small, but can be over 100 ms. in some cases.
    >
    > See the man page "man ntp.conf" or see the
    > documentation at ntp.org.
    >
    > You should try to list at least three servers to provide
    > assurance that
    > one going crazy won't mess up your time. More is
    > better. I also
    > recommend using the 'iburst' argument on each
    > 'server' line. (Do NOT use
    > 'burst'!)
    >
    > > Isn’t used only by the native ntp of solaris?

    > I have no idea, but I suspect so.
    >
    > > What is the difference between /etc/inet/ntp.server

    > and /etc/inet/ntp.client?
    > > Now I have the same binaries installed under

    > /usr/local/bin and /usr/sbin
    > >
    > > which ntpq
    > > /usr/sbin/ntpq
    > >
    > > which ntpdate
    > > /usr/sbin/ntpdate
    > >
    > > which ntpq
    > > /usr/sbin/ntpq
    > >
    > > which ntptrace
    > > /usr/sbin/ntptrace
    > >
    > > Should I simply update PATH variable? Is there any

    > better suggestion?
    >
    > Again, this is OS specific, so I'll defer to someone
    > who works with
    > Solaris.
    > --
    > R. Kevin Oberman, Network Engineer
    > Energy Sciences Network (ESnet)
    > Ernest O. Lawrence Berkeley National Laboratory (Berkeley
    > Lab)
    > E-mail: oberman@es.net Phone: +1 510 486-8634
    > Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3
    > 987B 3751


  4. Re: NTP installation and configuration on Solaris

    Your best bet is to create a new NTP service in SMF. You can run
    "svcfg export ntp" to get the current definition. Then create a new
    NTP service called ntp4, and make a new SMF method called ntp, and
    then import it and you should be set.

    Melanie Pfefer wrote:
    > how to stop and start ntp on solaris knowing that svcadm will start/stop the native ntp?
    >
    > I installed ntp under /usr/local/
    >
    > the bin folder has:
    >
    > ntp-keygen ntp-wait ntpd ntpdate ntpdc ntpq ntptime ntptrace
    >
    > thanks
    >
    >
    > --- On Mon, 10/11/08, Kevin Oberman wrote:
    >
    >> From: Kevin Oberman
    >> Subject: Re: [ntp:questions] NTP installation and configuration on Solaris
    >> To: melanie_pfefer@yahoo.co.uk
    >> Cc: questions@lists.ntp.org
    >> Date: Monday, 10 November, 2008, 4:13 AM
    >>> Date: Sat, 8 Nov 2008 10:25:13 +0000 (GMT)
    >>> From: Melanie Pfefer

    >>
    >>> Sender: questions-bounces+oberman=es.net@lists.ntp.org
    >>>
    >>> Hi,
    >>>
    >>> As you said, Solaris 10 has already ntp installed. I

    >> followed your
    >>> recommendation since you told me that the ntp bundled

    >> with Solaris has
    >>> an old version (how to check ntp version by the way?

    >> And are we
    >>> installing here a NTP server or a NTP client?)

    >> It logs the version when it starts, or
    >> strings `which ntpd` | grep "NTP daemon program"
    >>
    >>
    >>> Anyway, I installed ntp-4.2.4p4 (default

    >> installation). I also
    >>> disabled the solaris ntp.
    >>>
    >>> What are the post installation steps? I do not see a

    >> configuration
    >>> file. Should I simply copy /etc/inet/ntp.server to

    >> /etc/inet/ntp.conf?
    >>
    >> Not being a Solaris person, I can't say what is in
    >> /etc/inet/ntp.server.
    >>
    >> The config file in most cases is a list of servers. If you
    >> don't have a
    >> reference server of your own and don't have contacts
    >> with someone that
    >> does, you can use uk.pool.ntp.org, but check with your
    >> Internet provider
    >> as many do have available servers. This is pretty likely to
    >> have a
    >> symmetric path. Asymmetric paths (that is a different path
    >> to the server
    >> and from the server) will result in a time offset which is
    >> normally
    >> fairly small, but can be over 100 ms. in some cases.
    >>
    >> See the man page "man ntp.conf" or see the
    >> documentation at ntp.org.
    >>
    >> You should try to list at least three servers to provide
    >> assurance that
    >> one going crazy won't mess up your time. More is
    >> better. I also
    >> recommend using the 'iburst' argument on each
    >> 'server' line. (Do NOT use
    >> 'burst'!)
    >>
    >>> Isn’t used only by the native ntp of solaris?

    >> I have no idea, but I suspect so.
    >>
    >>> What is the difference between /etc/inet/ntp.server

    >> and /etc/inet/ntp.client?
    >>> Now I have the same binaries installed under

    >> /usr/local/bin and /usr/sbin
    >>> which ntpq
    >>> /usr/sbin/ntpq
    >>>
    >>> which ntpdate
    >>> /usr/sbin/ntpdate
    >>>
    >>> which ntpq
    >>> /usr/sbin/ntpq
    >>>
    >>> which ntptrace
    >>> /usr/sbin/ntptrace
    >>>
    >>> Should I simply update PATH variable? Is there any

    >> better suggestion?
    >>
    >> Again, this is OS specific, so I'll defer to someone
    >> who works with
    >> Solaris.
    >> --
    >> R. Kevin Oberman, Network Engineer
    >> Energy Sciences Network (ESnet)
    >> Ernest O. Lawrence Berkeley National Laboratory (Berkeley
    >> Lab)
    >> E-mail: oberman@es.net Phone: +1 510 486-8634
    >> Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3
    >> 987B 3751


+ Reply to Thread