SNTP – Quick Client Configuration

SNTP: What is it?

Simple Network Time Protocol is TCP that keeps a system’s time in sync. A SNTP server is a machine that provides the synchronization service to which several machines with the SNTP client are active can connect to fit the local time equal to the server time.

Configuring the SNTP client on IBM i

Log on with a class profile of .SECOFR.

Run the following command:

CHGNTPA RMTSYS('0.pool.ntp.org' '1.pool.ntp.org' '2.pool.ntp.org') AUTOSTART('YES) POLLITV(1440)

Every 1440 minutes (that is, every 24 hours), the SNTP client will check the 3 servers specified in the RMTSYS parameter for the local time with the remote time and, if necessary, adjust the time.

For more information about NTP servers, see the http://www.pool.ntp.org/en/ site.

To start the SNTP client immediately, run the command:

STRTCPSVR -NTP

Time setting or adjustment activities are recorded in the log files in the /QIBM/USERDATA/OS400/TCPIP/NTP folder. The log files are called QTOT-yyyymmdd.

Example log:

SNTP QTOTNTP/QNTP/342627 Client Activity Logging 0:30:34.915
TCP9136 SNTP Client started.
TCP9146 You are using the xxx.xxx.xxx.xxx time server.
TCP9162 05/21/19 0:30:34.915 Remaining time to adjust 0.000 seconds.
TCP9116 UTC time of the NTP server 05/05/19 0:30:34.915 is 5/20/19 22:30:34.738.
TCP9117 The UTC time of the client clock 05/21/19 0:30:34.915 is 5/20/19 22:30:34.892.
TCP9119 Client Clock 05/21/19 0:30:34.915 Adapted : 1 (0 is unadapted, 1st adapted)

Visit the www.markonetools.it site.

Related Posts
DB2 for i SQL – String Manipulation – POSSTR-LOCATE-LOCATE_IN_STRING (EN)

Introduction Often, in our applications, we need to work with text strings, and DB2 SQL can come in very useful Read more

DB2 for i – FAQ & Howtos (EN)

DB2 Database and SQL ... maybe the most important things on IBM i platform: here's a collection of FAQs, tips Read more

IBM i 7.4 Announcement (En)

Comes directly with the Easter egg this IBM announcement for the news of the IBM i 7.4 version, iNext version Read more

Generated Always Columns (EN)

Introduction "Generated Always Column": are columns, table fields, filled by DB2 engine: something like columns with a default value but Read more

Recent Posts

ACS Access Client Solution 1.1.9.5

Early April saw the release of the "Spring Version" of ACS Access Client Solution, version 1.1.9.5 Interesting new features especially…

3 days ago

Tim Rowe and Scott Forstie for CEC 2024 – Milan

If the packed agenda of sessions at Common Europe Congress 2024, June 3-6 Milan, wasn't enough for you, here's another…

3 days ago

Code for IBM i 2.10.0 – Debug IBM i App with Visual Studio Code

Debugging functions with Visual Studio Code have been available for some time but this new version 2.10.0 simplifies the handling…

5 days ago

ObjectConnect over TCP/IP

Two and a half years after my post Transferring objects with ObjectConnect and Enterprise Extender, I finally got around to…

6 days ago

SQL: SELECT with “superpowers”

With a little trick even a simple SELECT statement can execute any system command! Let's see how to do that...

6 months ago

NetServer for everyone – part 5

A mini-serial guide to configuring, managing, using, and troubleshooting the IBM i NetServer

1 year ago