Command ntp, Table 64, Parameters for command ntp – Vaisala Hydromet Data Collection Platform User Manual

Page 301

Advertising
background image

Chapter 5 __________________________________________ Configuring TCP/IP-Based Telemetry

VAISALA______________________________________________________________________ 299

Command ntp

The command ntp can be used to manually set the QML realtime 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 64 on page 299

.

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

Table 64

Parameters for Command ntp

Parameter

Use

set

Sets QML realtime 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.

Advertising