How to Synchronize HMC Clock with a Network Time Protocol (NTP) Time Server

Technote (troubleshooting)


Problem(Abstract)

This document describes how to configure the HMC to automatically synchronize its clock with a Network Time Protocol (NTP) time server.

Resolving the problem

This document describes how to configure the HMC to automatically synchronize its clock with a Network Time Protocol (NTP) time server. NTP is supported in HMC Version 6 and later.

Graphical Interface

The graphical option is only available on Version 7 HMCs. To enable clock synchronization with a NTP server, you should perform the following:

Note: You must perform all configuration steps and restart the HMC to fully enable NTP.

1. Select HMC Management, click Change Date and Time, and then click the NTP Configuration tab.

2. Enable the NTP Service. Check the box Enable NTP service on this HMC.

3. Add at least one NTP server, and click the Add NTP Server... button. Fill in the IP address or DNS address of the NTP Service. If you do not know the protocol version, select Not specified. Click OK.

NTP Configuration panel

4. Click OK to save the changes.

5. Restart the HMC when prompted. Under HMC Management, click Shutdown or Restart, restart, and click OK.


Command Line Interface (CLI)

This option is available for HMC Version 6 and later. To enable Network Time Protocol service (start the daemon on each boot):

chhmc -c xntp -s enable

To add a Network Time Protocol server to the configuration file by IP address and, at the same time, enable firewall access through network interface eth1:

chhmc -c xntp -s add -a 10.10.10.32 -i eth1

To add a Network Time Protocol server to the configuration file by name and, at the same time, enable firewall access through network interface eth1:

chhmc -c xntp -s add -a mytimeserver.company.com -i eth1

Note: If -i is not specified, the firewall will need to be opened. In Version 6, use Customize network settings, LAN adapters, Details, firewall tab to enable NTP. In Version 7, use HMC Management, Change Network settings, LAN Adapters, Details, firewall tab to enable NTP.

Restart the HMC after running the commands to make sure daemon starts with the updated configuration file.

To view the current configuration (if ntp is enabled and list of servers):
lshmc -r
ssh=enable,sshprotocol=,remotewebui=enable,xntp=disable,xntpserver=127.127.1.0,...

Verification and Debug

User hscroot has read access to the log files. The less, cat, and tail commands can be used to view related logs:

/var/log/ntp - NTP log that can be used to verify the daemon is running, NTP server contacted, and so on
Example:
5 Apr 09:51:26 ntpd[29271]: kernel time sync enabled 0001
5 Apr 09:51:27 ntpd[29271]: synchronized to 9.10.228.46, stratum 2

var/log/messages [ grep -i ntp]

To check daemon is running use the netstat command to verify the daemon is listening on udp port 123:

netstat -lnu | grep 123

Historical Number

382149477

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Server Firmware, HMC and SDMC
HMC

Software version:

5.3.0, 5.3.5, 5.4.0, 5.4.5, 6.1.0, 6.1.1

Operating system(s):

IBM i

Reference #:

N1015481

Modified date:

2013-07-10

Translate my page

Machine Translation

Content navigation