IBM Support

Simple Network Time Protocol (SNTP) and NET TIME command

Troubleshooting


Problem

This document outlines the SNTP application and the use of "NET TIME" on a client machine.

Resolving The Problem

Simple Network Time Protocol (SNTP) is an application used to synchronize time settings between various SNTP clients and a SNTP server. The IBM System i can function as a SNTP server and, when it does, there are occasions where a client may want to use the NET TIME command to synchronize time settings. If a client attempts to use the command NET TIME \\SYSTEM_NAME /SET /YES where SYSTEM_NAME is the name of the System i, the command may fail with an error that reads as follows:

System error 5 has occurred, access is denied

Because the Windows client is trying to send the PC user's credentials, this will fail. To resolve this and successfully use the NET TIME command, you should follow these steps:

1.Start i5/OS NetServer service:

o System i Navigator, then select Network ---> Services ---> TCP/IP ---> i5/OS NetServer.

or

o Issue the following CL command:

STRTCPSVR SERVER(*NETSVR)
2.Sign on to IBM System i.
3.On PC side, you should issue the following command:

net use \\system_name "password" /user:"username"

where username and password are the credentials to sign on to the System i.
4.Assuming Step 3 is successful, you should issue the following command:

net view \\system_name

This will list shared resource on the System i; if the command fails. it it likely due to firewall settings.
5.Assuming Step 4 completes, you should issue the following command:

net time \\system_name /set /yes
The steps above should resolve the original error and allow the NET TIME command to work successfully.
[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

622061967

Document Information

More support for:
IBM i

Software version:
6.1.0

Operating system(s):
IBM i

Document number:
684823

Modified date:
18 December 2019

UID

nas8N1011203

Manage My Notification Subscriptions