I have been inspected the situation for a month.
Although the sequence of commands has changed as you suggested, the NTP service still pools incorrect time occasionally.
For your information, we have several devices.
About 1/3 of the devices perform very well with out the unusual NTP problem.
Some of them encounter the problem once a week, while some of them have the problem several times in a week.
According to the incorrect time, I cannot adjust the clock by executing the command
again since the ntp socket is in used.
The only way to adjust the time is restarting the device.
It seems like the device will forget the old time and could perform the command again after restarted (due to the command /usr/sbin/ntpd.)
Do you have any idea how to solve this problem?
Our devices have to operate in 24-7. It is a serious problem if the ntp pools the incorrect time.
Ideally, the device clock should be correct after executed the sequence of commands that you provided. I'm not sure what is the problem.
By the way, I have a question about time synchronization processes.
I understand that the device will periodically perform the NTP service with the command.
Is the command also set the device time to the time from NTP?
If no, will the two time be synchronized periodically?
Because the sequence you provided includes
Code: Select all