Set NTP Configuration
更新时间: 2026/08/06
在Gitcode上查看源码

Set NTP Configuration

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

Set NTP information.

Privilege

BasicSetting

Command Information

Request Information

ByteData Field
NetFn30h
CMD93h
1:3Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
4Sub command, sub command=81h
5Selector. For details about the configuration options, see Table 1.
6length: length of the data to be set
7:Ndata: configured data. For details, see Table 1.

Response Information

ByteData Field
1Completion Code
2:4Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.

Reference

Table 1 NTP configuration parameters

Functionsparameter selectorparameter data-get (Get NTP Configuration)parameter data-set (Set NTP Configuration)
Enabling NTP00hRequest:
length: 00h
Response:
length:01h
data: The options are as follows:
00h: Disabled
01h: enabled
Request:
length:01h
data: The options are as follows:
00h: Disabled
01h: enabled
Response:
NTP network mode01hRequest:
length: 00h
Response:
length:01h
data: The options are as follows:
01h: static mode, which needs to be manually configured.
02h: DHCPv4, using dynamic IPv4 addresses
03h: DHCPv6, using dynamic IPv6
Request:
length:01h
data: The options are as follows:
01h: static mode, which needs to be manually configured.
02h: DHCPv4, using dynamic IPv4 addresses
03h: DHCPv6, using dynamic IPv6
Response:
Number of NTP servers02hRequest:
length: 00h
Response:
length: 01h
data: The options are as follows:
03h: The total number of servers is 3.
06h: indicates that the total number of servers is 6.
Request:
length: 01h
data: The options are as follows:
03h: The total number of servers is 3.
06h: indicates that the total number of servers is 6.
Response:
Minimum NTP polling interval03hRequest:
length: 00h
Response:
length:01h
data: The options are as follows:
03h: The polling interval is 8 seconds (2 to the power of 3).
04h: The polling interval is 16 seconds (2 to the power of 4).
05h: The polling interval is 32 seconds (2 to the power of 5).
...
11h: The polling interval is 131072 seconds (17th power of 2).
Request:
length:01h
data: Polling exponent. The options are as follows:
03h: The polling interval is 8 seconds (2 to the power of 3).
04h: The polling interval is 16 seconds (2 to the power of 4).
05h: The polling interval is 32 seconds (2 to the power of 5).
...
11h: The polling interval is 131072 seconds (17th power of 2).
Response:
Maximum NTP polling interval04hRequest:
length: 00h
Response:
length:01h
data: The options are as follows:
03h: The polling interval is 8 seconds (2 to the power of 3).
04h: The polling interval is 16 seconds (2 to the power of 4).
05h: The polling interval is 32 seconds (2 to the power of 5).
...
11h: The polling interval is 131072 seconds (17th power of 2).
Request:
length:01h
data: The options are as follows:
03h: The polling interval is 8 seconds (2 to the power of 3).
04h: The polling interval is 16 seconds (2 to the power of 4).
05h: The polling interval is 32 seconds (2 to the power of 5).
...
11h: The polling interval is 131072 seconds (17th power of 2).
Response:
NTP Server Authentication05hRequest:
length: 00h
Response:
length: 01h
data: The options are as follows:
00h: Disabled
01h: enabled
Request:
length: 01h
data: The options are as follows:
00h: Disabled
01h: enabled
Response:
Primary NTP server address06hRequest:
length: 00h
Response:
length: indicates the specific address length.
data: specific address character string code
Request:
length: indicates the specific address length.
data: specific address character string code
Response:
Address of the standby NTP server07hRequest:
length: 00h
Response:
length: indicates the specific address length.
data: specific address character string code
Request:
length: indicates the specific address length.
data: specific address character string code
Response:
NTP extended server address08hRequest:
length: 01h
data1: sequence number of the extended server. Currently, a maximum of four extended servers are supported.
Response:
length: indicates the specific address length.
data1:N: specific address character string code
Request:
length: 1 + address length
data1: sequence number of the extended server, which is related to the number of servers.
data2:N: specific address character string code
Response:

Command Example

Enable the NTP function.

Request:

bash
ipmicmd -k "0f 00 30 93 db 07 00 81 00 01 01" smi 0

Response:

text
0f db 07 00

Back to Index