ntp gond

10 bejegyzés megtekintése - 21-30 / 31
  • Szerző
    Bejegyzés
  • #2134849
    kukacomone
    Felhasználó

      De miért nincs vmi példa abba a fájlba.. Az ntpd –help -nél nem látok számomra semmi hasznosat, a webes doksi meg számomra már tulzás én csak egy sort akarok amit beirok a konfigfájlba és féloránként szinkronizál, most ezért olvassak végig oldalakat, amit ráadásul alig értek. Miért nincs egy konfig példafájl. 🙁

      #2134850
      kukacomone
      Felhasználó

        De miért nincs vmi példa abba a fájlba.. Az ntpd –help -nél nem látok számomra semmi hasznosat, a webes doksi meg számomra már tulzás én csak egy sort akarok amit beirok a konfigfájlba és féloránként szinkronizál, most ezért olvassak végig oldalakat, amit ráadásul alig értek. Miért nincs egy konfig példafájl. 🙁

        #2134851
        admin
        Adminisztrátor
          Code:
          # /etc/conf.d/ntpd

          # Options to pass to the ntpd process
          # Most people should leave this line alone …
          # however, if you know what you’re doing, feel free to tweak
          NTPD_OPTS=”-u ntp:ntp”

          Code:
          # /etc/conf.d/ntp-client

          # Command to run to set the clock initially
          # Most people should just leave this line alone …
          # however, if you know what you’re doing, and you
          # want to use ntpd to set the clock, change this to ‘ntpd’
          NTPCLIENT_CMD=”ntpdate”

          # Options to pass to the above command
          # This default setting should work fine but you should
          # change the default ‘pool.ntp.org’ to something closer
          # to your machine. See http://www.pool.ntp.org/ or
          # try running `netselect -s 3 pool.ntp.org`.
          #NTPCLIENT_OPTS=” -b -u hu.pool.ntp.org”
          NTPCLIENT_OPTS=” -b -u time.kfki.hu”

          # How long to wait (in seconds) before giving up.
          # Useful for when you boot and DNS/internet isn’t
          # really available but you have your net interface
          # come up with say a static IP.
          NTPCLIENT_TIMEOUT=30

          Ez a két néhai config fájlom, nekem így műxött gentoo alatt.
          /etc/ntp.conf fájlt most nem találom. 🙁

          #2134852
          admin
          Adminisztrátor
            Code:
            # /etc/conf.d/ntpd

            # Options to pass to the ntpd process
            # Most people should leave this line alone …
            # however, if you know what you’re doing, feel free to tweak
            NTPD_OPTS=”-u ntp:ntp”

            Code:
            # /etc/conf.d/ntp-client

            # Command to run to set the clock initially
            # Most people should just leave this line alone …
            # however, if you know what you’re doing, and you
            # want to use ntpd to set the clock, change this to ‘ntpd’
            NTPCLIENT_CMD=”ntpdate”

            # Options to pass to the above command
            # This default setting should work fine but you should
            # change the default ‘pool.ntp.org’ to something closer
            # to your machine. See http://www.pool.ntp.org/ or
            # try running `netselect -s 3 pool.ntp.org`.
            #NTPCLIENT_OPTS=” -b -u hu.pool.ntp.org”
            NTPCLIENT_OPTS=” -b -u time.kfki.hu”

            # How long to wait (in seconds) before giving up.
            # Useful for when you boot and DNS/internet isn’t
            # really available but you have your net interface
            # come up with say a static IP.
            NTPCLIENT_TIMEOUT=30

            Ez a két néhai config fájlom, nekem így műxött gentoo alatt.
            /etc/ntp.conf fájlt most nem találom. 🙁

            #2134853
            kukacomone
            Felhasználó

              Nekem is ugyanezek. De ebbe hol van olyan aminek köze van ahoz h mennyi idönként szinkronizálja? huh.gif

              #2134854
              kukacomone
              Felhasználó

                Nekem is ugyanezek. De ebbe hol van olyan aminek köze van ahoz h mennyi idönként szinkronizálja? huh.gif

                #2134855
                kukacomone
                Felhasználó

                  Esetleg vki ötlet h miért nem szinkronizálja magátol folyamatosan? :O

                  #2134856
                  kukacomone
                  Felhasználó

                    Esetleg vki ötlet h miért nem szinkronizálja magátol folyamatosan? :O

                    #2134857
                    gendelider
                    Felhasználó

                      Sajnos csak „debianul” tudok válaszolni: ez a két fájl, ami nálam ubi alatt müködik: (cég, a belsö szerverünk nevét átírtam; szerintem ha beírod a hu.pool.ntp.org-ot a a.mi.ntp.szerverünk helyére, lehet, hogy helyből megy)

                      /etc/default/ntpdate
                      # servers to check.  (Separate multiple servers with spaces.)
                      #NTPSERVERS=”pool.ntp.org”
                      NTPSERVERS=”a.mi.ntp.szerverünk
                      #
                      # additional options for ntpdate
                      #NTPOPTIONS=”-v”
                      NTPOPTIONS=”-u”

                      /etc/ntp.conf

                      # /etc/ntp.conf, configuration for ntpd

                      # ntpd will use syslog() if logfile is not defined
                      #logfile /var/log/ntpd

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

                      statistics loopstats peerstats clockstats
                      filegen loopstats file loopstats type day enable
                      filegen peerstats file peerstats type day enable
                      filegen clockstats file clockstats type day enable

                      # You do need to talk to an NTP server or two (or three).
                      #server ntp.your-provider.example

                      # pool.ntp.org maps to more than 100 low-stratum NTP servers.
                      # Your server will pick a different set every time it starts up.
                      #  *** Please consider joining the pool! ***
                      #  ***    ***
                      #server pool.ntp.org

                      # … and use the local system clock as a reference if all else fails
                      # NOTE: in a local network, set the local stratum of *one* stable server
                      # to 10; otherwise your clocks will drift apart if you lose connectivity.
                      server 127.127.1.0
                      fudge 127.127.1.0 stratum 13

                      # By default, exchange time with everybody, but don’t allow configuration.
                      # See /usr/share/doc/ntp-doc/html/accopt.html for details.
                      restrict default kod notrap nomodify nopeer noquery

                      # Local users may interrogate the ntp server more closely.
                      restrict 127.0.0.1 nomodify

                      # Clients from this (example!) subnet have unlimited access,
                      # but only if cryptographically authenticated
                      #restrict 192.168.123.0  mask  255.255.255.0 notrust

                      # If you want to provide time to your local subnet, change the next line.
                      # (Again, the address is an example only.)
                      #broadcast 192.168.123.255

                      # If you want to listen to time broadcasts on your local subnet,
                      # de-comment the next lines. Please do this only if you trust everybody
                      # on the network!
                      #disable auth
                      #broadcastclient

                      server ez.a.mi.szerverünk

                      A szerintem lényeges különbségeket a te fájloddal szemben bejelöltem.

                      Még valami: itt az „ntp-simple” csomagot installáltuk, ami tkp. egy egy konfig fájl, és behúzza az „ntp-server” csomagot, mást nem, tehát semmi ntp cliens…

                      #2134858
                      gendelider
                      Felhasználó

                        Sajnos csak „debianul” tudok válaszolni: ez a két fájl, ami nálam ubi alatt müködik: (cég, a belsö szerverünk nevét átírtam; szerintem ha beírod a hu.pool.ntp.org-ot a a.mi.ntp.szerverünk helyére, lehet, hogy helyből megy)

                        /etc/default/ntpdate
                        # servers to check.  (Separate multiple servers with spaces.)
                        #NTPSERVERS=”pool.ntp.org”
                        NTPSERVERS=”a.mi.ntp.szerverünk
                        #
                        # additional options for ntpdate
                        #NTPOPTIONS=”-v”
                        NTPOPTIONS=”-u”

                        /etc/ntp.conf

                        # /etc/ntp.conf, configuration for ntpd

                        # ntpd will use syslog() if logfile is not defined
                        #logfile /var/log/ntpd

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

                        statistics loopstats peerstats clockstats
                        filegen loopstats file loopstats type day enable
                        filegen peerstats file peerstats type day enable
                        filegen clockstats file clockstats type day enable

                        # You do need to talk to an NTP server or two (or three).
                        #server ntp.your-provider.example

                        # pool.ntp.org maps to more than 100 low-stratum NTP servers.
                        # Your server will pick a different set every time it starts up.
                        #  *** Please consider joining the pool! ***
                        #  ***    ***
                        #server pool.ntp.org

                        # … and use the local system clock as a reference if all else fails
                        # NOTE: in a local network, set the local stratum of *one* stable server
                        # to 10; otherwise your clocks will drift apart if you lose connectivity.
                        server 127.127.1.0
                        fudge 127.127.1.0 stratum 13

                        # By default, exchange time with everybody, but don’t allow configuration.
                        # See /usr/share/doc/ntp-doc/html/accopt.html for details.
                        restrict default kod notrap nomodify nopeer noquery

                        # Local users may interrogate the ntp server more closely.
                        restrict 127.0.0.1 nomodify

                        # Clients from this (example!) subnet have unlimited access,
                        # but only if cryptographically authenticated
                        #restrict 192.168.123.0  mask  255.255.255.0 notrust

                        # If you want to provide time to your local subnet, change the next line.
                        # (Again, the address is an example only.)
                        #broadcast 192.168.123.255

                        # If you want to listen to time broadcasts on your local subnet,
                        # de-comment the next lines. Please do this only if you trust everybody
                        # on the network!
                        #disable auth
                        #broadcastclient

                        server ez.a.mi.szerverünk

                        A szerintem lényeges különbségeket a te fájloddal szemben bejelöltem.

                        Még valami: itt az „ntp-simple” csomagot installáltuk, ami tkp. egy egy konfig fájl, és behúzza az „ntp-server” csomagot, mást nem, tehát semmi ntp cliens…

                      10 bejegyzés megtekintése - 21-30 / 31
                      • Be kell jelentkezni a hozzászóláshoz.