Cisco DNCS System Release 2.7 3.7 4.2 インストールガイド

ページ / 124
 
Appendix D 
Setting Up the Network Time Protocol on Solaris Servers and Clients 
96 
OL-31613-01 
Configure NTP on the Server 
By default, the EC is configured to use the internal clock for timing. Follow these 
instructions to configure the EC to obtain timing from an external NTP server, if 
desired.  
Note: Obtain the primary and any secondary NTP source IP addresses from the 
system operator. 
1  If necessary, open a remote terminal window on the EC. 
2  Complete the following steps to log on to the xterm window as the root user. 
a  Type 
su -
 and press Enter. The password prompt appears. 
b  Type the root password and press Enter
3  Type the following command and press Enter to initialize the /etc/inet/ntp.conf 
file as a server: 
/dvs/platform/libexec/install_ntp –s
  
4  Open the 
etc/inet/ntp.conf
 file in a text editor. 
5  Replace the contents of the ntp.conf file with the following: 
server [Primary Time Source IP Address] prefer
 
server [Secondary Time Source IP Address]
 
server 127.127.1.0
 
driftfile /etc/ntp.drift
 
6  Save and close the ntp.conf file. 
7  Type the following command and press Enter
svcs | grep ntp
 
8  Did the output from step 7 show ntp
 
If yes, continue with step 9. 
 
If no, type the following command and press Enter. Then, go to step 9. 
svcadm enable ntp
 
9  Type the following command and press Enter to restart the NTP service: 
svcadm restart ntp
 
10  Type the following command and press Enter to check the status of the NTP: 
ntpq -p
  
Result:  You should see output similar to the following: 
    remote      refid     st t when poll reach delay offset   
disp
 
==============================================================
====
 
*PrimNTPSvr 198.51.100.44 3 u   53   64   37  0.37  -2.320 
438.31