Monday 17 September 2018

step by step to configure NTP client in Soalris

How to Set Up an NTP Client in Soalris


Step 1: Login as root user


Step 2: Create the ntp.conf file.

# cd /etc/inet

-bash-4.1$ ls -lrt
total 203
-r--r--r--   1 root     sys         3262 Oct  6  2015 dhcpd.conf.example
-rw-r--r--   1 root     sys         5832 Oct  6  2015 slp.conf.example
-rw-r--r--   1 root     sys         4570 Oct  6  2015 services
-rw-r--r--   1 root     sys         1882 Oct  6  2015 protocols
-rw-r--r--   1 root     sys          462 Oct  6  2015 networks
-rw-r--r--   1 root     sys          487 Oct  6  2015 netmasks
-r--r--r--   1 root     sys         2088 Oct  6  2015 ipsecinit.sample
-rw-r--r--   1 root     sys         2039 Oct  6  2015 ipsecalgs
-rw-r--r--   1 root     sys          528 Oct  6  2015 ipaddrsel.conf
-rw-r--r--   1 root     sys          812 Oct  6  2015 inetd.conf
-r--r--r--   1 root     sys           22 Oct  6  2015 datemsk.ndpd
-r--r--r--   1 root     sys         4001 Oct  6  2015 ntp.server
-r--r--r--   1 root     sys         4122 Oct  6  2015 ntp.client
-r--r--r--   1 root     sys         3290 Oct  6  2015 wanboot.conf.sample
drwxr-xr-x   4 ikeuser  sys            8 Jul 18  2016 ike
drwx------   3 root     sys            6 Jul 18  2016 secret
lrwxrwxrwx   1 root     root           7 Jul 18  2016 ipnodes -> ./hosts
-rw-r--r--   1 root     root          63 Jul 18  2016 static_routes-DefaultFixed
-rw-r--r--   1 root     sys          252 Feb  5  2018 hosts
-bash-4.1$ 

# cp ntp.client ntp.conf

Edit the ntp.conf file.

#vi /etc/inet/ntp.conf


# Many ISP's also provide NTP servers for use by their customers. 

# server server_name1 iburst
# server server_name2 iburst
# server server_name3 iburst
server
# Always configure the drift file. It can take days for ntpd to completely 
# stabilize and without the drift file, it has to start over on a reboot
# of if ntpd restarts. 

Step 3: To activate the ntpd daemon,Start the ntpd daemon.

# svcadm enable ntp

No comments:

Post a Comment