Set NTP Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Set NTP Configuration
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Set NTP information.
Privilege
BasicSetting
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer 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. |
| 4 | Sub command, sub command=81h |
| 5 | Selector. For details about the configuration options, see Table 1. |
| 6 | length: length of the data to be set |
| 7:N | data: configured data. For details, see Table 1. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer 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
| Functions | parameter selector | parameter data-get (Get NTP Configuration) | parameter data-set (Set NTP Configuration) |
|---|---|---|---|
| Enabling NTP | 00h | Request: 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 mode | 01h | Request: 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 servers | 02h | Request: 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 interval | 03h | Request: 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 interval | 04h | Request: 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 Authentication | 05h | Request: 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 address | 06h | Request: 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 server | 07h | Request: 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 address | 08h | Request: 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 0Response:
text
0f db 07 00