• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ntpdate
2
3
4## Command Function
5
6This command is used to synchronize system time from the server.
7
8
9## Syntax
10
11ntpdate [_SERVER_IP1_] [_SERVER_IP2_]...
12
13
14## Parameters
15
16**Table 1** Parameter description
17
18| Parameter| Description| Value Range|
19| -------- | -------- | -------- |
20| SERVER_IP | Specifies the IP address of the NTP server.| N/A |
21
22
23## Usage Guidelines
24
25Run the **ntpdate [_SERVER_IP1_] [_SERVER_IP2_]...** command to obtain and display the time of the first server with a valid IP address.
26
27
28## Example
29
30Run **ntpdate 192.168.1.3 **to update the system time.
31
32
33## Output
34
35
36```
37OHOS # ntpdate 192.168.1.3
38time server 192.168.1.3: Mon Jun 13 09:24:25 2016
39```
40
41If the time zone of the board is different from that of the server, the displayed time may be several hours different from the server time obtained.
42