Owner manual

User's Guide ______________________________________________________________________
228 _________________________________________________________________ M211296EN-B
Command ntp
The command ntp can be used to manually set the QML real-time clock
and to test the connection to an NTP server. The command syntax is:
ntp<set | show | test > <server[:port]> [maxroundtrip] [interface]
Parameters for the ntp command are presented in Table 65 below.
Table 65 Parameters for Command ntp
Parameter Use
Set Sets QML real-time clock to server
time
Show Shows server time
Test Tests server connection and shows
debug output
server[:port] NTP server to contact. Port is
optional and the default value is 123.
Maxroundtrip Maximum allowed roundtrip in
milliseconds, for example, time
between request transmit and data
reception. The default value is 5000
ms.
Interface Interface to use. The default value is
netif0.
Examples of ntp command output are presented below:
/> ntp test ntp.vaisala.com
Opening interface...
NTP: Sending datagram to ntp.vaisala.com
1B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 C9 FF E0 96 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
NTP: data received, time error [s] -8
Status: 00 -> Clock operating correctly
Ref updated: Thu May 24 09:45:17 2007
Req txd : Thu May 24 09:59:50 2007
Req rxd : Thu May 24 09:59:58 2007
Resp txd: Thu May 24 09:59:58 2007
Resp rxd: Thu May 24 09:59:50 2007
roundtrip: 0
/> ntp set fi.pool.ntp.org:123 2000 netif1
Opening interface...
Time set to server UTC: Thu May 24 09:15:46 2007
/> ntp show ntp.vaisala.com
Opening interface...
Received server UTC: Thu May 24 10:15:18 2007