Start of change

ADD_TIME_SERVER procedure

The ADD_TIME_SERVER procedure adds a Network Time Protocol (NTP) server to the NTP configuration list.

The ADD_TIME_SERVER procedure requires 5770SS1 Option 33 - Portable Application Solutions Environment (PASE).

Authorization: The caller must have:
  • *IOSYSCFG special authority, and
  • *RW authority to /QIBM/UserData/OS400/TCPIP/NTP/ntp.conf
Read syntax diagramSkip visual syntax diagram ADD_TIME_SERVER ( TIME_SERVER =>  time-server ,PREFERRED_INDICATOR => preferred-indicator )

The schema is QSYS2.

time-server
A character or graphic string that identifies the DNS name of the NTP server to be added to the configuration.
preferred-indicator
A character or graphic string that indicates whether this NTP server should be considered a preferred time server.
NO
This is not a preferred time server.
YES
This is a preferred time server.

Example

  • Add time.domain.name.com as a preferred time server
    CALL QSYS2.ADD_TIME_SERVER(TIME_SERVER =>'time.domain.name.com', 
                               PREFERRED_INDICATOR => 'YES');
End of change