NTPクライアント設定

# ntpdate server_name
# chkconfig –list ntpd
# chkconfig ntpd on
# ntpq -p server_name

/etc/ntp.confに以下を残し後はコメント

server -4 server_name1 # Primary NTP Server
server -4 server_name2 # Secondary NTP server
driftfile /var/lib/ntp/drift

その他コマンド:
# clock;date #ClockはBIOS時間、dateはシステム時間を表示
# clock -w #システム時間をBIOS時間に書き込みます

Cron Job設定:(毎日午前0時に正確なシステム時間をBIOSに書き込む)
0 0 * * * /sbin/clock -w

参照サイト:
http://www.oiden.net/Flets/bangai02/
http://sj6.org/ntp_install_for_centos/
http://www.obenri.com/_ntp_sshserver/ntpconf5.html
http://www.obenri.com/_ntp_sshserver/image/ntp_conf5_sample.txt

コメントをどうぞ

コメントを投稿するにはログインしてください。