Powered By Blogger

Monday, 24 June 2013

NTP

 NTP server is mainly use for time synchronization.
Area of NTP:-
                        1) crontab
                        2) backup script
                        3) remote based
                        4) Kerberos
                        5) CA
                        6) Time based all policy
In a one organization we can create maximum 3 NTP server.
For Example.
                       1) Stratum-10  1st server
                       2) Stratum-15 2nd Server
                       3) Stratum-16 3rd Server It on peer based

Service Profile

                  System V-managed service
                  Package             = ntp
                  Daemon             = ntpd
                  Configuration file = /etc/ntp.conf
                  Port number       = 123 (UDP)
                  Log file               = /var/log/message 

Configuration 


                  # vim /etc/ntp.conf
Uncomment here
                  Server 127.0.0.1
                  Fudge 127.0.0.0 stratum 10
After that save the file and restart service 
                  # service ntpd restart

On clients

                  # system-config-date
and make configuration here add the IP of server after that restart the service 
                  # service ntpd restart

On CLI based

   Option 1:-
                  # ntpdate –b ip of ntp server
Option 2:-
                  # vim /etc/ntp.conf
insert here
                 Server ip of server (Ex. Server 172.17.1.1)

Monitering of NTP

                  #ntpq
                  Ntpq> host ip of ntp server (Ex host 172.17.1.1)
                  Ntpq> peers
                  #ntpq –p

No comments:

Post a Comment