Cluster NTP

来源:互联网 发布:旧款mac pro工作站型号 编辑:程序博客网 时间:2024/06/06 17:55
Its recommended to have vendor time service up and running, to verify or to start:


Linux:


To verify:

/sbin/service ntpd status
ntpd (pid 4403) is running...


ps -ef|grep ntp
ntp       2113     1  0 Dec09 ?        00:00:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -x


grep OPTIONS /etc/sysconfig/ntpd
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -x"


To start:

/sbin/service ntpd start


Solaris:

To verify:

/usr/bin/svcs ntp
STATE          STIME    FMRI
online          7:39:29 svc:/network/ntp:default


ps -ef|grep ntp
root 21212     1   0   Feb 02 ?           0:33 /usr/lib/inet/xntpd


egrep 'slewalways|pll' /etc/inet/ntp.conf
slewalways yes
disable pll


To start:

/usr/sbin/svcadm enable ntp


HP-UX:


To verify:

ps -ef|grep ntp
root  3052     1  0 11:43:23 ?         0:01 /usr/sbin/xntpd -x


grep XNTPD_ARGS /etc/rc.config.d/netdaemons
export XNTPD_ARGS="-x"


To start:
/sbin/init.d/xntpd start


AIX

To verify:

/usr/bin/lssrc -ls xntpd
xntpd            tcpip            368754   active


ps -ef|grep ntp
root 786614 151686   0 08:02:32      -  0:00 /usr/sbin/xntpd -x


grep xntpd /etc/rc.tcpip
start /usr/sbin/xntpd "$src_running" -a "-x"


To start:

/usr/bin/startsrc -s xntpd -a "-x"
Windows:

To verify:

C:\> sc query W32Time

SERVICE_NAME: W32Time
       TYPE               : 20  WIN32_SHARE_PROCESS
       STATE              : 4  RUNNING                                         ==> should be RUNNING
                               (STOPPABLE,NOT_PAUSABLE,ACCEPTS_SHUTDOWN)
       WIN32_EXIT_CODE    : 0  (0x0)
       SERVICE_EXIT_CODE  : 0  (0x0)
       CHECKPOINT         : 0x0
       WAIT_HINT          : 0x0


C:\> sc qc W32Time

[SC] GetServiceConfig SUCCESS

SERVICE_NAME: w32time
       TYPE               : 20  WIN32_SHARE_PROCESS
       START_TYPE         : 2   AUTO_START          ==> should be AUTO_START
       ERROR_CONTROL      : 1   NORMAL
       BINARY_PATH_NAME   : C:\WINDOWS\System32\svchost.exe -k netsvcs
       LOAD_ORDER_GROUP   :
       TAG                : 0
       DISPLAY_NAME       : Windows Time
       DEPENDENCIES       :
       SERVICE_START_NAME : LocalSystem


To start:

C:\> net start W32Time
0 0
原创粉丝点击