Configuring NTP service settings by using the command line

You can configure the NTP service settings by using the command interface.

About this task

To configure NTP service settings from the command line, you enter NTP configuration mode and enter the required NTP commands.

After an NTP server is identified by the remote-server command, the appliance functions as a Simple Network Time Protocol (SNTP) client as described in RFC 2030. As an NTP client, the appliance issues time-of-day requests to the specified NTP server every 15 minutes.

The appliance supports one NTP server at a time. To designate a new NTP server, use the no ntp-service command to delete the current server, and then use the remote-server command to designate the new server.

Procedure

  1. Connect to the IBM® MQ Appliance as described in Command line access. Log in as an administrative user.
  2. Type config to enter global configuration mode.
  3. Type the following command to configure NTP service settings:
    
    ntp-service
    
  4. Use the following NTP commands to configure the settings:
    Command Description
    admin-state Sets the administrative state for the configuration.
    refresh-interval Sets the interval between clock synchronizations.
    remote-server Identifies an NTP server.
    timeout Sets the duration to wait for a response from an NTP server
  5. After you configure the NTP service settings, enter exit
  6. Enter write memory to save the updated configuration.