Using PowerCLI, I know how the add/remove NTP servers to/from an ESX server. I know how to start/stop services on an ESX server. How do you enable/disable NTP?
Is this what you are looking for ?
Get-VMHost MyEsx | Get-VMHostService | where {$_.Key -eq "ntpd"} |Set-VMHostService -Policy "off"
and
Get-VMHost MyEsx | Get-VMHostService | where {$_.Key -eq "ntpd"} |Set-VMHostService -Policy "on"
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Is this what you are looking for ?
Get-VMHost MyEsx | Get-VMHostService | where {$_.Key -eq "ntpd"} |Set-VMHostService -Policy "off"
and
Get-VMHost MyEsx | Get-VMHostService | where {$_.Key -eq "ntpd"} |Set-VMHostService -Policy "on"
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
This may have answered my question. Does this open up the UDP 123 firewall port?
No, but this does
Get-VMHost MyEsx | Get-VMHostFirewallException | where {$_.Name -eq "NTP client"} | Set-VMHostFirewallException -Enabled:$true
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks.