Simple setting of Solaris Time Synchronization

Source: Internet
Author: User
Simple setting of Solaris time synchronization 1. copy the ntp server configuration sample as the ntp configuration file # cp-p/etc/inet/ntp. server/etc/inet/ntp. conf2, edit ntp. conf to configure the server # vi/etc/inet/ntp. conf: replace server127.into the original file... simple setting of Solaris time synchronization 1. copy the ntp server configuration sample as the ntp configuration file # cp-p/etc/inet/ntp. server/etc/inet/ntp. conf2, edit ntp. conf to configure the server # vi/etc/inet/ntp. in the original file, change the XType of the server 127.127.XType.0 preferfudge 127.127.XType.0 stratum 0 to 127.127, which indicates local, that is, server 127.127.1.0 preferfudge. 1.0 stratum 0 and comment out the four lines at the end of the file. Otherwise, the system will prompt that/etc/inet/ntp cannot be found. keys file # keys/etc/inet/ntp. keys # trustedkey 0 # requestkey 0 # controlkey 03. start the ntp service Solaris 8 & 9 #/etc/rc2.d/S74xntpd stop #/etc/rc2.d/S74xntpd startSolaris 10 # svcadm disable svc: /network/ntp: default # svcadm enable svc:/network/ntp: default check status # svcs svc:/network/ntp: default if it is online, it is normal if it is maintenance, run # svcadm clear svc:/network/ntp: default to check whether Restore to normal 4. wait a while and check the server status # ntpq-p remote refid st t when poll reach delay offset disp ================ ========================================================== ======================================= * LOCAL (0 ). LCL. 0 l 51 64 377 0.00 0.000 10.06 If there is * in front of the LOCAL, the server works normally. Client settings 1. create the ntp client configuration file # touch/etc/inet/ntp. conf # chown root: sys/etc/inet/ntp. conf2, edit ntp. conf, the server that sets the synchronization time # vi/etc/inet/ntp. the conf content is as follows: server server1-ip-address preferserver server2-ip-addressserver server3-ip-address replace server-ip-address in it with the ip address of the server. If there is only one server, you can enter the first line. if multiple servers provide redundancy, you can enter the line and add the prefer flag after the preferred server. 3. start the ntp service (same as step 3 of the server setting) Solaris 9 #/etc/rc2.d/S74xntpd stop #/etc/rc2.d/S74xntpd startSolaris 10 # svcadm disable svc: /network/ntp: default # svcadm enable svc:/network/ntp: default check status # svcs svc:/network/ntp: default if it is online, it is normal if it is maintenance, run # svcadm clear svc:/network/ntp: default: Check whether the synchronization is normal again. 4. wait a while and check the synchronization status. # ntpq-p remote refid st t when poll reach delay offset disp ============ ============================ ========================================================== =========== * Pcp0000652pcs.cn. LCL. 1 u 62 64 377 0.93-26.011 0.87 see the front *, and the reach value keeps getting bigger, and the disp value keeps getting smaller, it works normally.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.