PowerCli batch processing ESXi's NTP and VM time synchronization

background

The vmware environment, especially the Horizon environment, has very strict requirements for time consistency. If the time is inconsistent, it will cause authentication failure, database master and backup replication, message communication jms abnormal, communication abnormality between components, mutual authentication failure, etc. Various inexplicable errors are reported. Therefore, ensuring that the environment time is consistent is the key to maintaining a vmware virtual environment. This article outlines how to execute ps batch scripts with the help of VMware PowerCli, batch configuration NTP time, batch configuration virtual machine and esxi host time consistent.

PowerCli software installation see: https://blog.csdn.net/ximenjianxue/article/details/110138567

powerCli script

1. Configure ESXi host NTP in batch


#连接VC
$VC='10.179.x.x'
$NTPServer='10.132.x.x'
$UName='[email protected]'
$UPass='yourpass'
Connect

Guess you like

Origin blog.csdn.net/ximenjianxue/article/details/114289148