Thanks to one of my team mate for asking some command line questions which made me dig deeper and try to find out how to work with ntpd service using command line.
1) Connecting to your ESXi
Connect-VIServer (name of your ESXi host)
2) While Connecting it will prompt you for username and password specify the username and password for ESXi.
3) To add NTP
Add-VmHostNtpServer -VMHost $esx -NtpServer servername
Add-VmHostNtpServer -VMHost $esx -NtpServer servername
4) To check if NTP is configured Properly
Get-VMHostNtpServer
No comments:
Post a Comment