No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Smart Provisioning User Guide 09

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
IPMI Protocol Read/Write System Info

IPMI Protocol Read/Write System Info

IPMI Protocol

The Intelligent Platform Management Interface 2.0 (IPMI2.0) defines three communication interfaces for iBMC and system software (including BIOS, OS, and APP): SMIC, KCS and BT. Currently, Huawei servers support only BT interfaces.

Table 3-25 shows the iBMC request format of the BT interface. Table 3-26 shows the format of the response message.

Table 3-25 iBMC request format of the BT interface

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Length

NetFn/LUN

Seq

Cmd

Data

Table 3-26 iBMC response format of the BT interface

Byte 1

Byte 2

Byte 3

Byte 4

Byte 5

Byte6:N

Length

NetFn/LUN

Seq

Cmd

Completion Code

Data

NOTE:
  • NetFn: The network function code is used to classify ipmi commands. Each category has a unique number, which is the network function code. For example, a system command, a sensor event class command, and a memory class command. The network function code of request frames is an even number, and that of corresponding response frames is an odd number. The network function code of response frames is equal to the network function code of the request frame plus one.
  • Cmd: Indicates an IPMI command word. You can use the network function code + IPMI command word to locate a command.
  • Completion Code: Indicates the response of the responder to the request frame of the requester.

System Info Parameter Description

System Info is a third-party information sharing storage area. iBMC provides only non-volatile storage and interfaces for third parties to read and write. The content and format are determined and parsed by the third party. A maximum of 4096 0–255 numbers (including 3-byte data) can be stored.

The value range of Set selector is 256. The value ranges from 0 to 255. Each area contains a maximum of 16 bytes. When the first byte of the first block in the sent message is not 0, the number indicates the length of the data to be sent. When the first byte of the first block is 0, it indicates that the total length exceeds 255 bytes. In this case, the second and third bytes of the first block are used to indicate the total length (small byte order), and the third party determines the number of blocks to be read based on this byte.

In this document, only the scenario when the first byte of the first block is not 0 is adopted, and the first byte of the first block is used as the length of data to be sent.

Table 3-27 OEM System Info Parameters

Parameters

No.

Data

System Info

C2h

  • data1: -set selector (0 base)
  • data2-N: -system Info
Table 3-28 SystemInfo data format

Order

Value

Byte Description

1

1–254

Data length

2:255

-

Character information

Character information is in the format of Key : Value, and each key is separated by a semicolon (;).

For example, the format of the character string operator:eSight;osType:ESXi6.7_x64 in System Info is shown in Figure 3-266.

Figure 3-266 Storage format

Table 3-29 describes the network function codes and command words of the System Info read/write command.

Table 3-29 System Info read/write commands

BMC Device and Messaging Commands

NetFn

Cmd

Privilege Note

Set System Info Parameters

App 06h

58h

Administrator

Get System Info Parameters

App 06h

59h

User

Write Command Formats

Data Frame Types

Order

Value

Byte Description

Request

1

C2h

Parameter selector: System Info=C2h

2

00~0Fh

Set Selector: 0–15

3:18

-

Configuration parameter data, System Info Parameters

Response

1

-

Completion Code

Read Command Formats

Data Frame Types

Order

Value

Byte Description

Request

1

00h

Get parameter.

2

C2h

Parameter selector

3

00~0Fh

Set Selector.

4

00h

Block Selector (00h if parameter does not require a block number)

Response

1

-

Completion Code.

2

-

Parameter revision.

3

00~0Fh

Set Selector.

4:19

-

Configuration parameter data, System Info Parameters

Example

The following uses ipmitool.exe tool as an example. The command for reading and writing the System Info is as follows:

  • Write in osinstall:start:

    Run the following command: ipmitool.exe -H ipaddr -I lanplus -U username -P password raw 0x06 0x58 0xc2 0x0 0xf 0x6f 0x73 0x69 0x6e 0x73 0x74 0x61 0x6c 0x6c 0x3a 0x73 0x74 0x61 0x72 0x74

    Response: If the return code is 0, the execution is successful.

  • Read:

    Run the following command: ipmitool.exe -H ipaddr -I lanplus -U username -P password raw 0x06 0x59 0x00 0xc2 0x0 0x00

    Response: 00 0f 6f 73 69 6e 73 74 61 6c 6c 3a 73 74 61 72 74

NOTE:

Enter ipaddr/username/password based on the actual situation.

Translation
Download
Updated: 2019-05-11

Document ID: EDOC1100034052

Views: 28940

Downloads: 355

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next