You can use either esxcli or vicfg-hostops to enter/exit maintenance mode.
esxcli
vicfg-hostops
Note that you can use vicfg-hostops --operation info to check whether the host is finished with entering maintenance mode or is still busy.
PowerCLI
After connecting to the host or vCenter server:
You can easily test the availability of an NTP server by using ntpdate. This utility is a command line utility which performs a one-time time sync to the specified NTP server but it can also be used to query the time without setting it by using the -q parameter:
$ ntpdate -q 10.30.0.1 server 10.30.0.1, stratum 4, offset 0.001217, delay 0.04170 8 Jan 10:19:36 ntpdate[2376]: adjust time server 10.30.0.1 offset 0.001217 sec
« ‹ | April 2024 | › » | ||||
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |