VMware Cloud Community
masa_japan
Contributor
Contributor
Jump to solution

lost secodary ntp server

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.

0 Kudos
1 Solution

Accepted Solutions
railroadmanuk
Contributor
Contributor
Jump to solution

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

View solution in original post

0 Kudos
2 Replies
railroadmanuk
Contributor
Contributor
Jump to solution

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

0 Kudos
masa_japan
Contributor
Contributor
Jump to solution

Hi Tim.

very thanx

I can set secondary server.

0 Kudos