aix下开启ntp服务

简介:

1、配置/etc/ntp.conf文件,添加NTP服务器地址信息(server 192.168.1.20)
broadcastclient
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
server 192.168.1.20

2、启动xntpd进程

1
2
3
4
5
6
方法1:
# startsrc -s xntpd
0513-059 The xntpd Subsystem has been started. Subsystem PID is 327788.
方法2:
# smit xntpd
选择“Start Using the xntpd Subsystem”--“BOTH”


3、检查xntpd服务状态

1
# lssrc -ls xntpd

 Program name:    /usr/sbin/xntpd 
 Version:         3 
 Leap indicator:  11 (Leap indicator is insane.) 
 Sys peer:        no peer, system is insane 
 Sys stratum:     16 
 Sys precision:   -18 
 Debug/Tracing:   DISABLED 
 Root distance:   0.000000 
 Root dispersion: 0.000000 
 Reference ID:    no refid, system is insane 
 Reference time:  no reftime, system is insane 
 Broadcast delay: 0.003906 (sec) 
 Auth delay:      0.000122 (sec) 
 System flags:    bclient pll monitor filegen  
 System uptime:   80 (sec) 
 Clock stability: 0.000000 (sec) 
 Clock frequency: 0.000000 (sec) 
 Peer: 192.168.1.20 
      flags: (configured) 
      stratum:  3, version: 3 
      our mode: client, his mode: server 
Subsystem         Group            PID          Status 
 xntpd            tcpip            172176       active


4、使用ntpdate手动与NTP服务器同步

1
# ntpdate -d 192.168.1.20

17 Nov 10:37:59 ntpdate[131094]: 3.4y
transmit(192.168.1.20)
receive(192.168.1.20)
transmit(192.168.1.20)
receive(192.168.1.20)
transmit(192.168.1.20)
receive(192.168.1.20)
transmit(192.168.1.20)
receive(192.168.1.20)
transmit(192.168.1.20)
server 192.168.1.20, port 123
stratum 3, precision -6, leap 00, trust 000
refid [64.4.10.33], delay 0.04146, dispersion 0.00026
transmitted 4, in filter 4
reference time:      d813d221.52a70817  Sun, Nov 16 2014 19:47:13.322
originate timestamp: d813ec37.25da3b4a  Sun, Nov 16 2014 21:38:31.147
transmit timestamp:  d814a2e7.2a0bd000  Mon, Nov 17 2014 10:37:59.164
filter delay:  0.04167  0.04150  0.04146  0.04146 
               0.00000  0.00000  0.00000  0.00000 
filter offset: -46768.0 -46768.0 -46768.0 -46768.0
               0.000000 0.000000 0.000000 0.000000
delay 0.04146, dispersion 0.00026
offset -46768.016225

17 Nov 10:37:59 ntpdate[131094]: step time server 192.168.1.20 offset -46768.016225










本文转自 冰冻vs西瓜 51CTO博客,原文链接:http://blog.51cto.com/molewan/1674143,如需转载请自行联系原作者
目录
相关文章
|
存储 弹性计算 安全
阿里云数字新基建系列——混合云架构(第2章-1)
阿里云经过12年的发展,以IaaS、PaaS分层为标准的云计算基础技术已经非常成熟,同时围绕这两层的泛网络、泛存储、泛安全等对云计算攸关的技术也起着关键支撑作用。当然,阿里云的核心技术有很多,包括但不限于数据库、大数据、IoT、AI等技术。限于篇幅,本章不会涉及这些内容,后续章节主要是介绍IaaS和PaaS层及相关的泛网络、泛存储、泛安全技术原理。
阿里云数字新基建系列——混合云架构(第2章-1)
POST 请求出现异常!java.io.IOException: Server returned HTTP response code: 400 for URL
POST 请求出现异常!java.io.IOException: Server returned HTTP response code: 400 for URL
4415 0
|
6月前
|
关系型数据库 MySQL Docker
《docker高级篇(大厂进阶):5.Docker-compose容器编排》包括是什么能干嘛去哪下、Compose核心概念、Compose使用三个步骤、Compose常用命令、Compose编排微服务
《docker高级篇(大厂进阶):5.Docker-compose容器编排》包括是什么能干嘛去哪下、Compose核心概念、Compose使用三个步骤、Compose常用命令、Compose编排微服务
401 6
|
10月前
|
网络安全 文件存储 数据安全/隐私保护
绿联云NAS一些探索(1):SSH、包管理器探测、安装docker-compose等
绿联云NAS一些探索(1):SSH、包管理器探测、安装docker-compose等
778 6
|
Linux 数据安全/隐私保护 Python
Linux配置网卡、创建用户赋予sudo权限、互信息等基本操作
以上是Linux配置网卡、创建用户赋予sudo权限、互信息的基本操作。这些步骤可以用于在Linux系统上进行网络配置、用户管理和信息分析。 买CN2云服务器,免备案服务器,高防服务器,就选蓝易云。百度搜索:蓝易云
262 4
|
存储 Oracle Unix
TSM服务器日常维护简明手册--TSM启动和停止
TSM服务器日常维护简明手册--TSM启动和停止
323 0
|
Cloud Native 关系型数据库 MySQL
Centos7安装Mysql5.7(超详细版)
*下载地址:[https://dev.mysql.com/downloads/mysql/5.7.html](https://dev.mysql.com/downloads/mysql/5.7.html)**
6705 3
Centos7安装Mysql5.7(超详细版)
|
Java
jdk(1.8) jvm 默认参数
jdk(1.8) jvm 默认参数
901 0