Get SAS DiskInfo
更新时间: 2026/08/06
在Gitcode上查看源码Get SAS DiskInfo
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Obtains SAS disk information.
Privilege
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 95h |
| 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=04h |
| 5 | Parameter Selector |
| 6 | JBOD Slot No. |
| 7 | Specifies the start number of the hard disk to be queried. |
| 8 | Specifies the number of hard disks to be queried. |
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. |
| 5:N | Disk Information |
Reference Information
Table 1 Disk Information
| - | # | Data Field |
|---|---|---|
| Disk Presence | 01 | data1 JBOD slot number Start disk ID for data2 query Number of data3 disks data4-n: disk presence information 1: The SIM card is in position. 0: The SIM card is not in position. |
| Disk Information | 02 | data1 JBOD slot number Start disk ID for data2 query Number of data3 disks data4: first disk type 0: no disk 1 indicates a SAS disk. Indicates a SATA disk. Data5: supported rate of the first hard disk 0: no disk 1:1.5G 2: 3G 3: 6 Gbit/s 4: 12 Gbit/s data6-7: rotational speed of the first hard disk (RPM) Capacity of the first hard disk in data 8-9 (GB) data10-29: serial number of the first hard disk (character string) data30-n subsequent disk information |
Command Example
Obtain SAS disk information.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN