Go to main content

手册页部分 8:系统管理命令

退出打印视图

更新时间: 2022年7月27日 星期三
 
 

rdate(8)

名称

rdate - 从远程主机设置系统日期

用法概要

rdate hostname

描述

rdate 从以参数形式提供的 hostname 主机设置本地日期和时间。您必须对本地系统具有 solaris.system.date 授权。通常,rdate 在启动脚本中使用。

指定主机上的 “time” 服务对 rdate 请求进行响应。要启用 “time” 服务,请使用以下命令:

svcadm enable time:stream
svcadm enable time:dgram

用法

rdate 命令支持 IPv6。有关更多信息,请参见 ip6(4P) 手册页。

The protocol used by rdate represents time as an unsigned 32-bit number of seconds ranging from January 1, 1900 to February 7, 2036.The rdate command further restricts this range by not changing the system date to dates prior to December 13, 1983.Another method of time synchronization must be used for dates past the end of this range.

For most purposes, NTP is strongly recommended over this utility.For more information, see the ntpdate(8) and ntpd(8) man pages.

属性

有关下列属性的说明,请参见 attributes(7)

属性类型
属性值
可用性
network/legacy-remote-utilities
Interface Stability
Obsolete

另请参见

ip6(4P), inetd.conf(5), attributes(7), in.timed(8), ntpd(8), ntpdate(8)

附注

将来的 Oracle Solaris 发行版可能会删除此技术。

History

The rdate command has been present since the initial release of Solaris.