Configure NTP on iLO via HPE Scripting Tools for Windows PowerShell
HPE Scripting Tools for Windows PowerShell is a powerful set of utilities that can be used to perform various configuration tasks on HPE Servers. Windows PowerShell is Microsoft’s task automation framework, consisting of a command-line shell and associated scripting language built on the .NET Framework.
HPE Scripting Tools for Windows PowerShell provides a simplified and consistent infrastructure management experience. They follow the standard PowerShell syntax and scripting model, making it easy for customers to incorporate these functions into their administrative scripts.
In order to keep synchronize iLO time with NTP server or time server, you have to enable NTP configuration and add proper NTP server address. Configuring NTP on more than one server is a difficult task for any administrator, because you have to do it via iLO command line or web based GUI manually. At this post I want to share an example for NTP configuration as a PowerShell script.
You need to download and install HPE Scripting Tools for Windows PowerShell, also HPE Scripting Tools for Windows PowerShell has requirements for installation that please read related documents before installation.
In order to run the script you need to logon as an administrator account to iLO, so make sure about your iLO’s account privilege.
The above script is so simple, just you have to replace “iLO1 IP”,”iLO2 IP”,”iLO..N IP” with IP addresses or FQDN. Script will ask your username and password to use it on all iLO connections (You have to define same username on all servers for this script).
Replace “Etc/UTC” with proper time zone and also “NTP Server Address” with proper NTP server address.
HP Scripting Tools for Windows PowerShell