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
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');