Hi.
I set my primary and secondary NTP server
The following command
# NTP Setting
Add-VmHostNtpServer -VMHost $esxhost -NtpServer $ntppri
Add-VmHostNtpServer -VMHost $esxhost -NtpServer $ntpalt
but checked ntpq -p on ESXi
lost secodary ntp server, only primary ntp server
please help
thanks.
Hi Masa
Have you tried adding them in an array like this?
$arrNTPServers = ("dk.pool.ntp.org","de.pool.ntp.org","us.pool.ntp.org")
Add-VMHostNtpServer -VMHost "esx01.lab.local" -NtpServer $arrNTPServers -Confirm:$false
Found this at https://www.amikkelsen.com/?p=458
Hope this helps
Tim
Hi Masa
Have you tried adding them in an array like this?
$arrNTPServers = ("dk.pool.ntp.org","de.pool.ntp.org","us.pool.ntp.org")
Add-VMHostNtpServer -VMHost "esx01.lab.local" -NtpServer $arrNTPServers -Confirm:$false
Found this at https://www.amikkelsen.com/?p=458
Hope this helps
Tim
Hi Tim.
very thanx
I can set secondary server.