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

VsCode Extention: Bob Cozzi’s RPG IV to RPG Free Conversion

👉 Review: Bob Cozzi’s RPG IV to RPG Free Conversion – a useful VS Code extension for RPG modernization If…

10 months ago

IBM i & SQL Tips #010 – Locating Programs in the Call Stack with STACK_INFO

Hello everyone, I’d like to highlight another excellent contribution by Massimo Duca, part of his ongoing IBM i & SQL…

10 months ago

Trying out “Display File DDS Edit” for VS Code

Intrigued by some recent posts from Cristian Larsen on LinkedIn (New Release – Display File DDS Edit v 0.10.1), I…

11 months ago

Project Bob: the next-gen AI partner for IBM i and IBM Z application development

Hello everyone, Today I’d like to draw your attention to a major new announcement from IBM: Project Bob — a…

11 months ago

IBM i & SQL Tips #6: Calling REST APIs and Parsing JSON Responses with SQL

I want to share with you a particularly useful article by Massimo Duca in the IBM i & SQL Tips…

12 months ago

How Parameter Passing Works in IBM i Programs (RPG / Cobol)

Hello everyone, I’d like to highlight a very useful article by Marco Riva on Markonetools, where he clearly explains how…

12 months ago