用命令设置esxi主机时间

用命令设置esxi主机时间 
 
一、设置esxi主机时间
设置esxi主机时间为 2020 年03月8日16:01: 
 
更改esxi系统时间:
                                                   天       时        分        月        年
~ #  esxcli system time set -d 08 -H 16 -m 01 -M 03 -y 2020
如果同步系统时间到主板上,使用下面命令:
~ # esxcli system time get
 
更改esxi主机主板上的时间:
~ # esxcli hardware clock set -d 10 -H 10 -m 18 -M 04 -y 2020
如果同步主板到esxi系统上,使用下面命令:
~ # esxcli system time get
 
修改后,要使重启服务器不失效,请参考:https://www.cnblogs.com/dh17/articles/13926579.html

posted @ 2020-11-04 15:51  da0h1  阅读(2005)  评论(0编辑  收藏  举报