Colobridge WIKI

настройка ntp клиента в solaris 11

Применимость: Solaris

Слова для поиска:


Нужно обеспечить синхронизацию времени на сервере с OS Solaris

Выполните эти команды:

echo "server 0.pool.ntp.org" > /etc/inet/ntp.conf
echo "server 1.pool.ntp.org" >> /etc/inet/ntp.conf
echo "server 2.pool.ntp.org" >> /etc/inet/ntp.conf
echo "server 3.pool.ntp.org" >> /etc/inet/ntp.conf
echo "server 4.pool.ntp.org" >> /etc/inet/ntp.conf
vi /etc/inet/ntp.conf
echo "driftfile /var/ntp/ntp.drift" >> /etc/inet/ntp.conf
echo "statsdir /var/ntp/ntpstats/" >> /etc/inet/ntp.conf
echo "filegen peerstats file peerstats type day enable" >> /etc/inet/ntp.conf
echo "filegen loopstats file loopstats type day enable" >> /etc/inet/ntp.conf
date 
ntpdate 0.pool.ntp.org
date 
svcadm enable ntp
svcs ntp
ntpq -p

Если все прошло успешно, то вывод последней команды должен быть похож на это:

ntpq -p

ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
-ns1.ooonet.ru   62.117.76.141    2 u   17   64  377   71.868   -2.455   1.164
+93-57-8-172.ip1 193.204.114.232  2 u   24   64  377   78.567   -1.706   3.313
*gamma.rueckgr.a 129.69.1.153     2 u   17   64  377   31.774   -3.613   1.128
+thw23.de        52.239.121.49    3 u   24   64  377    7.898   -1.724   1.247


Актуальность: 2013/03/21 13:20