Log SNTP activity

This topic explains how to use the logging function to help you track activity and identify problems with the server or client.

Logging is used to create records of the actions of the SNTP client or server. Use logging to assist in problem analysis, not during normal running situations.

One log file will be created each day, with the name in the form QTOT YYYYMMDD, where YYYY represents the year, MM represents the month, and DD represents the day.

The coded character set identifier (CCSID) of the file is the default system CCSID. If the system default CCSID is changed during the time when the activity log is in use on the same day, the original CCSID of the file will still be used. Because the resulting file might become unreadable, it is recommended that you stop the SNTP client, rename the activity log, and restart the SNTP client so that a new log will be created using the new CCSID.

Log client activity

To log SNTP client activity, follow these steps:
  1. In iSeries™ Navigator, expand your iSeries server > Network > Servers > TCP/IP.
  2. Right-click SNTP, and click Properties to open the SNTP Properties pages.
  3. Go to the Client page. Select when you want to log SNTP client activity.
  4. Click OK to save your selection.
The client activity logs are created in the Integrated File System directory /QIBM/UserData/OS400/TCPIP/NTP. An example of a client log follows:
SNTP Client Activity Log QTOTNTP/QNTP/097229  08/21/03 12:00:48.502 AM                      
TCP9136 SNTP Client started.                                                                
TCP9146 Using time server TIME.                                                             
TCP9162 08/21/03 12:00:48.548 AM Time remaining for adjustment is 0.000 seconds.            
TCP9116 08/21/03 12:00:48.548 AM NTP server UTC time is 08/21/03 5:00:48.196.               
TCP9117 08/21/03 12:00:48.548 AM Client clock UTC time is 08/21/03 5:00:48.197.             
TCP9120 08/21/03 12:00:48.548 AM Client clock adjusted = 1  (0 = not adjusted, 1 = adjusted) 
TCP9146 Using time server TIME.                                                             
TCP9162 08/21/03 12:01:48.590 AM Time remaining for adjustment is 0.000 seconds.            
TCP9116 08/21/03 12:01:48.590 AM NTP server UTC time is 08/21/03 5:01:48.589.               
TCP9117 08/21/03 12:01:48.590 AM Client clock UTC time is 08/21/03 5:01:48.589.             
TCP9120 08/21/03 12:01:48.590 AM Client clock adjusted = 1  (0 = not adjusted, 1 = adjusted) 

Log server activity

To log SNTP server activity, follow these steps:
  1. In iSeries Navigator, expand your iSeries server > Network > Servers > TCP/IP.
  2. Right-click SNTP, and click Properties to open the SNTP Properties pages.
  3. Go to the Server page. Select when you want to log SNTP server activity.
  4. Click OK to save your selection.
The server activity logs are created in the Integrated File System directory /QIBM/UserData/OS400/TCPIP/NTP/SERVER. An example of a server log follows:
SNTP Server Activity Log QTOTNTP/QNTP/097326  08/21/03 2:46:04.329 PM                         
TCP9159 SNTP Server started.                                                                  
TCP9161 08/21/03 2:46:20.828 PM Client 9.5.150.56 Unsynchronized status returned. 
TCP9163 08/21/03 2:46:20.854 PM SNTP system client unable to contact server. 
TCP9161 08/21/03 2:47:21.181 PM Client 9.5.150.57 Unsynchronized status returned.
TCP9162 08/21/03 2:47:21.195 PM Time remaining for adjustment is .534 seconds. 
TCP9160 08/21/03 2:48:21.242 PM Client 9.5.56.158, UTC time returned is 08/21/03 19:48:21.241. 
TCP9160 08/21/03 2:48:21.532 PM Client 9.130.69.21.159, UTC time returned is 08/21/03 19:48:21.531.
Related tasks
Stop SNTP