ResourceDefinition
uris
/redfish/v1/Chassis/chassis_id/Drives/drives_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 指定驱动器资源模型的OData描述信息 |
| @odata.id | string | true | - | 指定驱动器资源的访问路径 |
| @odata.type | string | true | - | 指定驱动器资源的类型 |
| Id | string | true | - | 指定驱动器资源的ID |
| Name | string | true | - | 指定驱动器资源的名称 |
| Model | string | true | - | 指定驱动器型号 |
| Revision | string | true | - | 指定驱动器的版本信息 |
| Status { | object | true | - | 指定驱动器的状态,包括: ● State:驱动器使能状态 ● Health:驱动器健康状态 ● Severity:驱动器的自定义健康状态 |
| Status.Health | string | true | - | 驱动器健康状态,包括: ● OK:正常 ● Warning:警告 ● Critical:严重 |
| Status.Oem { | object | true | - | 自定义属性 |
| Status.Oem.Public { | object | true | - | 自定义属性 |
| Status.Oem.Public.Severity | string | true | - | 驱动器的自定义健康状态,例如Informational |
| Status.State | string | true | - | 驱动器使能状态,包括: ● Enabled:使能 ● Disabled:禁用 |
| } | ||||
| CapacityBytes | number | true | - | 指定驱动器容量,单位为字节 |
| BlockSizeBytes | number | true | - | 指定驱动器块大小,单位为字节 说明 不支持NVMe硬盘 |
| FailurePredicted | boolean | true | - | 指定驱动器是否检测到预故障,包括: ● true ● false |
| Protocol | string | true | - | 指定驱动器遵从的协议 ● SPI:协议,无需翻译 ● PCIe:协议,无需翻译 ● AHCI:协议,无需翻译 ● UHCI:协议,无需翻译 ● SAS:协议,无需翻译 ● SATA:协议,无需翻译 ● USB:协议,无需翻译 ● NVMe:协议,无需翻译 ● FC:协议,无需翻译 ● iSCSI:协议,无需翻译 ● FCoE:协议,无需翻译 ● NVMeOverFabrics:协议,无需翻译 ● SMB:协议,无需翻译 ● NFSv3:协议,无需翻译 ● NFSv4:协议,无需翻译 ● HTTP:协议,无需翻译 ● HTTPS:协议,无需翻译 ● FTP:协议,无需翻译 ● SFTP:协议,无需翻译 |
| MediaType | string | true | - | 指定驱动器的介质类型 ● HDD:HDD ● SSD:SSD ● SMR:SMR |
| Manufacturer | string | true | - | 指定驱动器的制造商 |
| SerialNumber | string | true | - | 指定驱动器的序列号 |
| CapableSpeedGbs | number | true | - | 指定驱动器接口的最大速率 |
| NegotiatedSpeedGbs | number | true | - | 指定驱动器接口的协商速率 |
| PredictedMediaLifeLeftPercent | null | true | - | 指定驱动器的剩余寿命百分比 |
| IndicatorLED | string | true | - | 指定驱动器的定位指示灯状态,包括: ● Off:关闭 ● Blinking:闪烁 |
| HotspareType | string | true | - | 指定驱动器的热备状态, 包括: ● None ● Global:该硬盘作为此存储域中所有其他硬盘的全局热备盘。 ● Dedicated:该硬盘作为用户自定义的硬盘或卷集合的专用热备盘。 ● Auto Replace:该硬盘作为用户自定义的一组硬盘的热备盘。 |
| StatusIndicator | string | true | - | 指定驱动器的指示灯状态,包括 ● OK:正常 ● Fail:故障 ● Rebuild:正在重建 ● PredictiveFailureAnalysis:预测性故障(硬盘仍工作但预计即将故障) ● Hotspare:热备盘(已标记为自动重建并替换故障盘) ● InAFailedArray:所在阵列故障 ● InACriticalArray:所在阵列降级 |
| PartNumber | string | true | - | 硬盘资产部件编号 说明 BMC500 5.13.0及以上版本支持。 |
| LocationIndicatorActive | boolean | true | - | 硬盘定位状态,包括: ● true ● false 说明 BMC500 5.13.0及以上版本支持。 |
| DriveFormFactor | null | true | - | 硬盘尺寸,取值范围: ● Drive3_5:3.5英寸硬盘 ● Drive2_5:2.5英寸硬盘 ● M2:M.2接口硬盘 ● OEM:厂商自定义尺寸 说明 BMC500 5.13.0及以上版本支持。 |
| Metrics { | object | true | - | 指向与此驱动器关联的硬件诊断信息的URI链接 说明 BMC500 5.13.0及以上版本支持。 |
| Metrics.@odata.id | string | true | - | 硬件诊断信息资源的访问路径 |
| } | ||||
| Assembly { | object | true | - | 指向与此驱动器关联的装配体资源的URI链接 说明 BMC500 5.13.0及以上版本支持。 |
| Assembly.@odata.id | string | true | - | 装配体资源的访问路径 |
| } | ||||
| PhysicalLocation { | object | true | - | 阵列中硬盘的相对位置 说明 BMC500 5.13.0及以上版本支持。 |
| PhysicalLocation.Info | string | true | - | 只读字符串,表示资源的位置 |
| PhysicalLocation.InfoFormat | string | true | - | 只读字符串,表示Info属性的格式 |
| PhysicalLocation.PartLocationContext | string | true | - | 可读字符串,用于区分同一外壳内不同部件的PartLocation值,这些值可能包含该部件的父级PartLocation值的层次信息 |
| } | ||||
| Location[ ] | array | true | - | 指定驱动器丝印 |
| Location[].Info | string | true | - | 指定驱动器丝印信息 |
| Location[].InfoFormat | string | true | - | 指定驱动器丝印格式 |
| RotationSpeedRPM | number | true | - | 指定驱动器的转速 |
| Oem { | object | true | - | 自定义属性 |
| Oem.Public { | object | true | - | 自定义属性 |
| Oem.Public.Presence | string | true | - | 驱动器在位状态,包括: ● Present:在位 ● Absent:不在位 |
| Oem.Public.DriveID | number | true | - | 创建逻辑盘时指定的驱动器的ID |
| Oem.Public.RebuildState | string | true | - | 指定驱动器数据重建状态,包括: ● DoneOrNotRebuilt:未重建或已完成重建 ● Rebuilding:正在重建 |
| Oem.Public.AssociatedResource | null | true | - | 指定驱动器的资源归属 |
| Oem.Public.RebuildProgress | null | true | - | 指定驱动器数据重建进度 |
| Oem.Public.PatrolState | string | true | - | 指定驱动器巡检状态,包括: ● DoneOrNotPatrolled:未巡检或已完成 ● Patrolling:正在巡检 |
| Oem.Public.TemperatureCelsius | number | true | - | 指定驱动器当前温度。 说明 已屏蔽该属性值频繁变化导致的事件上报 |
| Oem.Public.FirmwareStatus | string | true | - | 指定驱动器的状态,包括: ● UnconfiguredGood:未配置到任何卷的完好硬盘。 ● UnconfigureBad:未配置的坏硬盘。 ● HotSpareDrive:热备盘。 ● Offline: 成员盘处于离线状态。 ● Failed: 已配置的坏硬盘(故障盘)。 ● Online: 成员盘处于正常状态。 ● GettingCopied:硬盘正在复制数据。 ● JBOD:硬盘由主机控制,不受RAID卡管理(直通模式)。 ● UnconfiguredShieded: 未配置且被屏蔽的硬盘。 ● HotSpareShielded:热备且被屏蔽的硬盘。 ● ConfiguredShielded:已配置且被屏蔽的硬盘。 ● Foreign: 带有外来(外部)配置的硬盘。 ● Active:硬盘处于活动状态。 ● Standby: 硬盘处于待机状态。 ● Sleep: 硬盘处于休眠状态。 ● DSTInProgress: 磁盘自检(DST)正在后台执行中。 ● SMARTOfflineDataCollection: SMART离线数据收集正在后台执行中。 ● SCTCommand:SCT命令正在后台执行中。 ● Rebuilding:已配置的硬盘正在重建。 ● Raw:设备以原始模式运行 ● Ready:设备已准备就绪 ● NotSupported:当前设备或操作不被系统或控制器所支持。 ● PredictiveFailure:设备可能即将发生故障 ● EraseInProgress:设备正在进行数据擦除操作 |
| Oem.Public.IsEPD | boolean | true | - | 是否为加强型物理硬盘 |
| Oem.Public.SpareforLogicalDrives[ ] | array | true | - | 指定驱动器是局部热备盘时所属逻辑盘列表 |
| Oem.Public.SASAddress[ ] | array | true | - | 指定驱动器SAS地址 |
| Oem.Public.PowerState | string | true | - | 物理盘的节能休眠状态 ● Spun Up:电机旋转 ● Spun Down:电机停转 ● Transition:状态切换中 |
| Oem.Public.SlotPowerState | string | true | - | 指定物理盘槽位的电源状态 ● On ● Off:下电 说明 BMC300 5.13.0.1及以上版本支持 |
| Oem.Public.Type | string | true | - | 驱动器类型,包括 ● Disk:磁盘 ● SDCard:SD卡 ● PCIe SSD Card:PCIe固态硬盘卡 |
| Oem.Public.Position | string | true | - | 指定驱动器容器 |
| Oem.Public.EstimatedRemainingLifespan | number | true | - | 指定驱动器预估剩余寿命 |
| Oem.Public.HoursOfPoweredUp | number | true | - | 指定驱动器上电运行时间 说明 已屏蔽该属性值频繁变化导致的事件上报 |
| Oem.Public.SATASmartInformation | null | true | - | SATA接口SMART信息 |
| Oem.Public.SASSmartInformation { | object | true | - | SAS接口SMART信息 |
| Oem.Public.SASSmartInformation.MediaErrorCount | number | true | - | 介质错误数 |
| Oem.Public.SASSmartInformation.PrefailErrorCount | number | true | - | 预测故障错误数 |
| Oem.Public.SASSmartInformation.OtherErrorCount | number | true | - | 其它错误数 |
| Oem.Public.SASSmartInformation.HealthStatus | null | true | - | 健康状态 |
| Oem.Public.SASSmartInformation.DiskTemperatureCelsius | number | true | - | 驱动器温度(摄氏度) |
| Oem.Public.SASSmartInformation.DiskStripeTemperatureCelsius | number | true | - | 驱动器条带温度(摄氏度) |
| Oem.Public.SASSmartInformation.ElementsInGrownDefectList | number | true | - | 增长缺陷列表(G表)中的元素 |
| Oem.Public.SASSmartInformation.ElementsInPrimaryDefectList | number | true | - | 主缺陷列表(P表)中的元素 |
| Oem.Public.SASSmartInformation.WeekAndYearOfManufacture | string | true | - | 生产日期 |
| Oem.Public.SASSmartInformation.BlocksSentToInitiator | number | true | - | 发送到启动器的块 |
| Oem.Public.SASSmartInformation.BlocksReceivedFromInitiator | number | true | - | 从启动器收到的块 |
| Oem.Public.SASSmartInformation.NumberOfMinutesUntilNextSMARTTest | number | true | - | 距下一次内部SMART测试的时长(分钟) |
| Oem.Public.SASSmartInformation.SequenceNumberOfLastPredFailEvent | number | true | - | 最后一次预测故障事件的序列号 |
| } | ||||
| Oem.Public.BDF | string | true | - | BDF值: ● Bus:总线 ● Device:设备 ● Function:功能 ● null |
| Oem.Public.CryptoEraseSupported | boolean | true | - | 指定驱动器是否支持加密盘数据擦除 |
| Oem.Public.RelatedArrayInfo { | object | true | - | 指定驱动器上的驱动器阵列信息 |
| Oem.Public.RelatedArrayInfo.Members[ ] | array | true | - | 指定驱动器阵列的成员 |
| Oem.Public.RelatedArrayInfo.FreeSpaceMiBPerDrive | number | true | - | 指定驱动器阵列中每个驱动器的剩余容量(单位: MB) |
| Oem.Public.RelatedArrayInfo.TotalFreeSpaceMiB | number | true | - | 指定驱动器阵列中总的剩余容量(单位:MB) |
| Oem.Public.RelatedArrayInfo.FreeBlocksSpaceMib[ ] | array | true | - | 指定驱动器阵列中的剩余容量(单位:MB) |
| Oem.Public.RelatedArrayInfo.NumDrivePerSpan | number | true | - | 指定驱动器阵列中每个Span的成员的个数 |
| Oem.Public.RelatedArrayInfo.VolumeRaidLevel | string | true | - | 指定驱动器阵列组成的虚拟磁盘的级别 |
| } | ||||
| } | ||||
| Oem.SlotNumber | number | true | - | 物理盘所在背板的槽位号 |
| Oem.EnclosureDeviceId | number | true | - | 物理盘所在背板的设备ID,由RAID控制器固件生成 |
| Oem.BootPriority | string | true | - | 启动优先级 ● Primary:第一启动设备 ● Secondary:第二启动设备 ● All:第一和第二启动设备 ● None |
| Oem.BootEnable | boolean | true | - | 是否为启动盘 |
| Oem.FormFactor | string | true | - | 硬盘尺寸 ● Unknown:未知 ● 5.25 inch:5.25英寸 ● 3.5 inch:3.5英寸 ● 2.5 inch:2.5英寸 ● 1.8 inch:1.8英寸 ● Lessthan 1.8 inch:小于1.8英寸 ● mSATA:mSATA ● M.2:M.2 ● MicroSSD:MicroSSD ● CFast:CFast卡 |
| } | ||||
| Links { | object | true | - | 驱动器关联的资源 |
| Links.Volumes[ ] | array | true | - | 指定驱动器所属逻辑盘列表 |
| Links.Volumes[].@odata.id | string | true | - | 指定驱动器所属逻辑盘的访问路径 |
| } | ||||
| Actions { | object | true | - | Redfish允许的指定驱动器资源可执行操作 |
| Actions.#Drive.Reset { | object | true | - | 重启指定物理盘操作 说明 BMC300 5.13.0.1及以上版本支持 |
| Actions.#Drive.Reset.target | string | true | - | 重启指定物理盘操作的访问路径 |
| Actions.#Drive.Reset.@Redfish.ActionInfo | string | true | - | 重启指定物理盘操作ActionInfo的访问路径 |
| } | ||||
| Actions.Oem { | object | true | - | 自定义属性 |
| Actions.Oem.Public { | object | true | - | 自定义属性 |
| Actions.Oem.Public.#Drive.CryptoErase { | object | true | - | 加密盘的数据安全擦除操作 |
| Actions.Oem.Public.#Drive.CryptoErase.target | string | true | - | 加密盘的数据安全擦除操作的访问路径 |
| } | ||||
| } | ||||
| } | ||||
| } |
supported_methods
- GET
- POST
- PATCH
HTTP methods
GET
命令功能
查询指定驱动器资源信息
命令格式
URL: https://device_ip/redfish/v1/Chassis/chassis_id/Drives/drive_id
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| chassis_id | 系统资源的ID | ● 针对机架服务器,取值 为1 ● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1” ● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号) ● 针对X6800 V5,X6000 V5,G5500,XA320 V2 服务器,取值还可以为 Enc,表示计算节点所在 的机框资源 ● 针对设备U位信息,取值 可以为UN(N表示设备U 位号),例如"U1" ● 针对机柜资源,取值为 Rack |
| drive_id | 指定驱动器的ID | 可从指定机箱资源中获取 |
| auth_value | 执行该GET请求时,必须在 “Headers”中携带“X- Auth-Token”值用于鉴权 | 可通过/redfish/v1/ SessionService/Sessions创 建会话时获得 |
使用指南
无
使用实例
SAS接口驱动器请求样例:
GET https://device_ip/redfish/v1/Chassis/1/Drives/HDDPlaneDisk1
请求头:
X-Auth-Token: 123456789***********************
请求消息体:无
响应样例1:
{
"@odata.context": "/redfish/v1/$metadata#Drive.Drive",
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk1",
"@odata.type": "#Drive.v1_1_0.Drive",
"Id": "HDDPlaneDisk1",
"Name": "Disk1",
"Model": "MBF2300RC",
"Revision": "0109",
"Status": {
"Health": "OK",
"Oem": {
"Public": {
"Severity": "Informational"
}
},
"State": "Enabled"
},
"CapacityBytes": 298999349248,
"BlockSizeBytes": 512,
"FailurePredicted": false,
"Protocol": "SAS",
"MediaType": "HDD",
"Manufacturer": "TOSHIBA",
"SerialNumber": "EB72PC600G1C",
"CapableSpeedGbs": 6,
"NegotiatedSpeedGbs": 6,
"PredictedMediaLifeLeftPercent": null,
"IndicatorLED": "Off",
"HotspareType": "None",
"StatusIndicator": "OK",
"PartNumber": "",
"LocationIndicatorActive": false,
"DriveFormFactor": null,
"Metrics": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk1/Metrics"
},
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk1/Assembly"
},
"PhysicalLocation": {
"Info": "Disk1",
"InfoFormat": "DeviceName",
"PartLocationContext": ""
},
"Location": [
{
"Info": "Disk1",
"InfoFormat": "DeviceName"
}
],
"RotationSpeedRPM": 7200,
"Oem": {
"Public": {
"Presence": "Present",
"DriveID": 1,
"RebuildState": "DoneOrNotRebuilt",
"AssociatedResource": null,
"RebuildProgress": null,
"PatrolState": "DoneOrNotPatrolled",
"TemperatureCelsius": 70,
"FirmwareStatus": "Online",
"IsEPD": false,
"SpareforLogicalDrives": [],
"SASAddress": [
"5000039418218546",
"0000000000000000"
],
"PowerState": "Spun Up",
"SlotPowerState": "On",
"Type": "Disk",
"Position": "HDDPlane",
"EstimatedRemainingLifespan": 1675,
"HoursOfPoweredUp": 6504.18,
"SATASmartInformation": null,
"SASSmartInformation": {
"MediaErrorCount": 0,
"PrefailErrorCount": 0,
"OtherErrorCount": 0,
"HealthStatus": null,
"DiskTemperatureCelsius": 34,
"DiskStripeTemperatureCelsius": 68,
"ElementsInGrownDefectList": 0,
"ElementsInPrimaryDefectList": 0,
"WeekAndYearOfManufacture": "in week 34 of year 2013",
"BlocksSentToInitiator": 272795360,
"BlocksReceivedFromInitiator": 381334143,
"NumberOfMinutesUntilNextSMARTTest": 33,
"SequenceNumberOfLastPredFailEvent": 0
},
"BDF": "0000:80:02.2",
"CryptoEraseSupported": false,
"RelatedArrayInfo": {
"Members": [
"Disk0",
"Disk1"
],
"FreeSpaceMiBPerDrive": 0,
"TotalFreeSpaceMiB": 0,
"FreeBlocksSpaceMib": [
0
],
"NumDrivePerSpan": 2,
"VolumeRaidLevel": "RAID0"
}
},
"SlotNumber": 5,
"EnclosureDeviceId": 66,
"BootPriority": "None",
"BootEnable": false,
"FormFactor": "2.5 inch"
},
"Links": {
"Volumes": [
{
"@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Volumes/LogicalDrive3"
}
]
},
"Actions": {
"#Drive.Reset": {
"target": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk1/Actions/Drive.Reset",
"@Redfish.ActionInfo": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk1/ResetActionInfo"
},
"Oem": {
"Public": {
"#Drive.CryptoErase": {
"target": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk1/Actions/Oem/Public/Drive.CryptoErase"
}
}
}
}
}响应码:200
SATA接口驱动器请求样例: GET https://device_ip/redfish/v1/Chassis/1/Drives/HDDPlaneDisk2
请求头:
X-Auth-Token: 123456789***********************
请求消息体:无
响应样例2:
{
"@odata.context": "/redfish/v1/$metadata#Drive.Drive",
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk2",
"@odata.type": "#Drive.v1_1_0.Drive",
"Id": "HDDPlaneDisk2",
"Name": "Disk2",
"Model": "MBF2300RC",
"Revision": "0109",
"Status": {
"Health": "OK",
"Oem": {
"Public": {
"Severity": "Informational"
}
},
"State": "Enabled"
},
"CapacityBytes": 298999349248,
"BlockSizeBytes": 512,
"FailurePredicted": false,
"Protocol": "SATA",
"MediaType": "HDD",
"Manufacturer": "TOSHIBA",
"SerialNumber": "EB72PC600G1C",
"CapableSpeedGbs": 6,
"NegotiatedSpeedGbs": 6,
"PredictedMediaLifeLeftPercent": null,
"IndicatorLED": "Off",
"HotspareType": "None",
"StatusIndicator": "OK",
"PartNumber": "",
"LocationIndicatorActive": false,
"DriveFormFactor": null,
"Metrics": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk2/Metrics"
},
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk2/Assembly"
},
"PhysicalLocation": {
"Info": "Disk2",
"InfoFormat": "DeviceName",
"PartLocationContext": ""
},
"Location": [
{
"Info": " Disk2",
"InfoFormat": "DeviceName"
}
],
"RotationSpeedRPM": 7200,
"Oem": {
"Public": {
"DriveID": 2,
"RebuildState": "DoneOrNotRebuilt",
"RebuildProgress": null,
"PatrolState": "DoneOrNotPatrolled",
"TemperatureCelsius": 70,
"FirmwareStatus": "Online",
"SpareforLogicalDrives": [],
"SASAddress": [
"5000039418218546",
"0000000000000000"
],
"SlotPowerState": "On",
"Type": "Disk",
"Position": "HDDPlane",
"HoursOfPoweredUp": 6455,
"SATASmartInformation": {
"AttributeRevision": 25,
"AttributeRevisionNumber": 21,
"AttributeItemList": [
{
"RawValue": 47637533,
"UpdateMode": "Always",
"AttributeName": "DISK_CURRENT_PENDING_SECTOR",
"NormalizedValue": 76,
"Flag": "0x000f",
"WorstValue": 63,
"FaultStatus": null,
"Threshold": 44,
"FaultWarningMode": "Pre-fail",
"SmartAttributeID": 3
},
......
]
},
"SASSmartInformation": null,
"CryptoEraseSupported": false,
"RelatedArrayInfo": {
"Members": [
"Disk0",
"Disk1"
],
"FreeSpaceMiBPerDrive": 0,
"TotalFreeSpaceMiB": 0,
"FreeBlocksSpaceMib": [
0
],
"NumDrivePerSpan": 2,
"VolumeRaidLevel": "RAID0"
},
"SlotNumber": 5,
"EnclosureDeviceId": 66,
"BootEnable": false
}
},
"Links": {
"Volumes": [
{
"@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Volumes/LogicalDrive3"
}
]
},
"Actions": {
"#Drive.Reset": {
"target": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk2/Actions/Drive.Reset",
"@Redfish.ActionInfo": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk2/ResetActionInfo"
},
"Oem": {
"Public": {
"#Drive.CryptoErase": {
"target": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk2/Actions/Oem/Public/Drive.CryptoErase"
}
}
}
}
}响应码:200
SD驱动器请求样例: GET https://device_ip/redfish/v1/Chassis/1/Drives/mainboardSDCard1
请求头: X-Auth-Token: 123456789***********************
请求消息体:无
响应样例3:
{
"@odata.context": "/redfish/v1/$metadata#Drive.Drive",
"@odata.id": "/redfish/v1/Chassis/Blade8/Drives/mainboardSDCard1",
"@odata.type": "#Drive.v1_1_0.Drive",
"Id": "mainboardSDCard1",
"Name": "mainboardSDCard1",
"Model": null,
"Revision": null,
"Status": {
"Health": "OK",
"Oem": {
"Public": {
"Severity": "Informational"
}
},
"State": "Enabled"
},
"CapacityBytes": 31635456,
"BlockSizeBytes": 512,
"FailurePredicted": null,
"Protocol": null,
"MediaType": null,
"Manufacturer": "SMART",
"SerialNumber": 3356845,
"CapableSpeedGbs": null,
"NegotiatedSpeedGbs": null,
"PredictedMediaLifeLeftPercent": null,
"IndicatorLED": null,
"HotspareType": null,
"StatusIndicator": null,
"PartNumber": "",
"LocationIndicatorActive": false,
"DriveFormFactor": null,
"Metrics": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/mainboardSDCard1/Metrics"
},
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/mainboardSDCard1/Assembly"
},
"PhysicalLocation": {
"Info": "mainboardSDCard1",
"InfoFormat": "DeviceName",
"PartLocationContext": ""
},
"Location": [],
"RotationSpeedRPM": null,
"Oem": {
"Public": {
"SlotPowerState": "On",
"Type": "SDCard",
"RebuildState": "DoneOrNotRebuilt"
}
},
"Links": {
"Volumes": []
},
"Actions": {
"#Drive.Reset": {
"target": "/redfish/v1/Chassis/1/Drives/mainboardSDCard1/Actions/Drive.Reset",
"@Redfish.ActionInfo": "/redfish/v1/Chassis/1/Drives/mainboardSDCard1/ResetActionInfo"
}
}
}响应码:200
PCIe SSD驱动器请求样例: GET https://device_ip/redfish/v1/Chassis/1/Drives/mainboardPCIeCard4(SSD)
请求头: X-Auth-Token: 6599174c38c36838737d9749179e1ee1
请求消息体:无
响应样例4:
{
"@odata.context": "/redfish/v1/$metadata#Drive.Drive",
"@odata.id": "/redfish/v1/Chassis/1/Drives/mainboardPCIeCard4(SSD)",
"@odata.type": "#Drive.v1_1_0.Drive",
"Id": "mainboardPCIeCard4(SSD)",
"Name": "PCIe Card4 (SSD)",
"Model": null,
"Revision": null,
"Status": {
"Health": "OK",
"Oem": {
"Public": {
"Severity": "Informational"
}
},
"State": null
},
"CapacityBytes": null,
"FailurePredicted": false,
"Protocol": "PCIe",
"MediaType": "SSD",
"Manufacturer": "",
"SerialNumber": null,
"CapableSpeedGbs": null,
"NegotiatedSpeedGbs": null,
"PredictedMediaLifeLeftPercent": 100,
"IndicatorLED": "Off",
"HotspareType": null,
"StatusIndicator": null,
"PartNumber": "",
"LocationIndicatorActive": false,
"DriveFormFactor": null,
"Metrics": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/mainboardPCIeCard4(SSD)/Metrics"
},
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/mainboardPCIeCard4(SSD)/Assembly"
},
"PhysicalLocation": {
"Info": "mainboardPCIeCard4(SSD)",
"InfoFormat": "DeviceName",
"PartLocationContext": ""
},
"Location": [
{
"Info": "PCIeCard4(SSD)",
"InfoFormat": "DeviceName"
}
],
"RotationSpeedRPM": null,
"Oem": {
"Public": {
"DriveID": 4,
"RebuildState": "DoneOrNotRebuilt",
"AssociatedResource": null,
"RebuildProgress": null,
"PatrolState": "DoneOrNotPatrolled",
"TemperatureCelsius": null,
"FirmwareStatus": null,
"SpareforLogicalDrives": [],
"SASAddress": [],
"SlotPowerState": "On",
"Type": "PCIe SSD Card",
"Position": "mainboard",
"HoursOfPoweredUp": null,
"SATASmartInformation": null,
"SASSmartInformation": null
}
},
"Links": {
"Volumes": []
},
"Actions": {
"#Drive.Reset": {
"target": "/redfish/v1/Chassis/1/Drives/mainboardPCIeCard4(SSD)/Actions/Drive.Reset",
"@Redfish.ActionInfo": "/redfish/v1/Chassis/1/Drives/mainboardPCIeCard4(SSD)/ResetActionInfo"
}
}
}响应码:200
PATCH
命令功能
修改指定驱动器属性
命令格式
URL: https://device_ip/redfish/v1/Chassis/chassis_id/Drives/drives_id
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type
If-Match: ifmatch_value请求消息体:
● 设置定位指示灯状态:
{
"IndicatorLED": ledstate
}● 设置全局热备盘或取消热备盘:
{
"HotspareType": hotsparetype
}● 设置局部热备盘:
{
"HotspareType": Dedicated,
"Oem": {
"Public": {
"SpareforLogicalDrives": [
{
"@odata.id": volumepath
}
]
}
}
}● 设置自动替换热备盘:
{
"HotspareType": "Auto Replace",
"Oem": {
"Public": {
"SpareforLogicalDrives": [
{
"@odata.id": volumepath
}
]
}
}
}● 设置巡检开关:
{
"Oem": {
"Public": {
"PatrolState": patrolstate
}
}
}● 设置硬盘状态:
{
"Oem": {
"Public": {
"FirmwareStatus": diskstate
}
}
}● 设置启动盘:
{
"Oem": {
"Public": {
"BootEnable": bootstate
}
}
}● 设置启动优先级:
{
"Oem": {
"Public": {
"BootPriority": bootpriority
}
}
}● 设置硬盘定位状态:
{
"LocationIndicatorActive": location_indicator_active
}URL参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| chassis_id | 系统资源的ID | ● 针对机架服务器,取值 为1 ● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1” ● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号) ● 针对X6800 V5,X6000 V5,G5500,XA320 V2 服务器,取值还可以为 Enc,表示计算节点所在 的机框资源 ● 针对设备U位信息,取值 可以为UN(N表示设备U 位号),例如"U1" ● 针对机柜资源,取值为 Rack |
| drives_id | 驱动器资源的ID | 可通过指定机箱资源获取。 |
请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| IndicatorLED | 定位指示灯状态 | ● Off ● Blinking |
| HotspareType | 驱动器的热备状态 | ● None ● Global ● Dedicated ● Auto Replace |
| @odata.id | 驱动器设置为局部热备盘 时,所关联的逻辑盘访问路 径 说明 当“hotsparetype”为 “None”和“Global”时,不 需要设置此Oem参数。 | 可通过查询指定存储资源获 得 例如:"/redfish/v1/ Systems/1/Storages/ RAIDStorage0/Volumes/ LogicalDrive3 |
| FirmwareStatus | 驱动器状态。 | 驱动器状态可在如下状态之 间切换: ● “Online”和 “Offline” ● “UnconfiguredGood” 和“JBOD” ● “UnconfigureBad” 到 “UnconfiguredGood” 说明 驱动器状态设置为“JBOD” 之前,请先通过BMC Web开 启控制器的JBOD功能。 |
| PatrolState | 巡检开关的状态 | 可设置为: ● “Patrolling” : 开启 ● “DoneOrNotPatrolled ” :关闭 |
| BootEnable | 是否为启动盘 | 可设置为: ● true ● false |
| BootPriority | 启动优先级 | 可设置为 ● Primary:第一启动设备 ● Secondary:第二启动设 备 ● All:第一和第二启动设 备 ● None:取消启动设备 |
| LocationIndicatorActive | 硬盘定位状态 | 可设置为: ● true ● false 说明 BMC500 5.13.0 及以上版 本支持。 |
使用指南
无
使用实例
请求样例1:
PATCH https://device_ip/redfish/v1/Chassis/1/Drives/HDDPlaneDisk1请求头:
X-Auth-Token: 123456789***********************
Content-Type: application/json
If-Match: W/"3d607e36"请求消息体:
{
"IndicatorLED": "Blinking",
"LocationIndicatorActive": true
}响应样例:
{
"@odata.context": "/redfish/v1/$metadata#Drive.Drive",
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk0",
"@odata.type": "#Drive.v1_1_0.Drive",
"Id": "HDDPlaneDisk1",
"Name": "Disk1",
"Model": "MBF2300RC",
"Revision": "0109",
"Status": {
"Health": "OK",
"Oem": {
"Public": {
"Severity": "Informational"
}
},
"State": "Enabled"
},
"CapacityBytes": 298999349248,
"BlockSizeBytes": 512,
"FailurePredicted": false,
"Protocol": "SAS",
"MediaType": "HDD",
"Manufacturer": "TOSHIBA",
"SerialNumber": "EB72PC600G1C",
"CapableSpeedGbs": 6,
"NegotiatedSpeedGbs": 6,
"PredictedMediaLifeLeftPercent": null,
"IndicatorLED": "Off",
"HotspareType": "None",
"StatusIndicator": "OK",
"PartNumber": "",
"LocationIndicatorActive": true,
"DriveFormFactor": null,
"Metrics": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk0/Metrics"
},
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk0/Assembly"
},
"PhysicalLocation": {
"Info": "Disk0",
"InfoFormat": "DeviceName",
"PartLocationContext": ""
},
"Location": [
{
"Info": "Disk1",
"InfoFormat": "DeviceName"
}
],
"RotationSpeedRPM": 7200,
"Oem": {
"Public": {
"DriveID": 1,
"RebuildState": "DoneOrNotRebuilt",
"AssociatedResource": null,
"RebuildProgress": null,
"PatrolState": "DoneOrNotPatrolled",
"TemperatureCelsius": 70,
"FirmwareStatus": "Online",
"SpareforLogicalDrives": [],
"SASAddress": [
"5000039418218546",
"0000000000000000"
],
"PowerState": "Spun Up",
"Type": "Disk",
"Position": "HDDplane",
"HoursOfPoweredUp": 100,
"SATASmartInformation": null,
"SASSmartInformation": {
"MediaErrorCount": 0,
"PrefailErrorCount": 0,
"OtherErrorCount": 0,
"HealthStatus": null,
"DiskTemperatureCelsius": 34,
"DiskStripeTemperatureCelsius": 68,
"ElementsInGrownDefectList": 0,
"ElementsInPrimaryDefectList": 0,
"WeekAndYearOfManufacture": "in week 34 of year 2013",
"BlocksSentToInitiator": 272795360,
"BlocksReceivedFromInitiator": 381334143,
"NumberOfMinutesUntilNextSMARTTest": 33,
"SequenceNumberOfLastPredFailEvent": 0
},
"BDF": "0000:80:02.2",
"CryptoEraseSupported": false,
"RelatedArrayInfo": {
"Members": [
"Disk0",
"Disk1"
],
"FreeSpaceMiBPerDrive": 0,
"TotalFreeSpaceMiB": 0,
"FreeBlocksSpaceMib": [
0
],
"NumDrivePerSpan": 2,
"VolumeRaidLevel": "RAID0"
},
"SlotNumber": 5,
"EnclosureDeviceId": 66,
"BootEnable": false
}
},
"Links": {
"Volumes": [
{
"@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Volumes/LogicalDrive3"
}
]
},
"Actions": {
"Oem": {
"Public": {
"#Drive.CryptoErase": {
"target": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk1/Actions/Oem/Public/Drive.CryptoErase"
}
}
}
}
}响应码:200
POST (ACTION)
SecureErase
命令功能
加密盘的数据安全擦除
命令格式
URL: https://device_ip/redfish/v1/Chassis/chassis_id/Drives/drives_id/Actions/Oem/Public/Drive.CryptoErase
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type请求消息体:
{}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| Chassis_id | 系统资源的ID | ● 针对机架服务器,取值 为1 ● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1” ● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号) ● 针对X6800 V5,X6000 V5,G5500,XA320 V2 服务器,取值还可以为 Enc,表示计算节点所在 的机框资源 ● 针对设备U位信息,取值 可以为UN(N表示设备U 位号),例如"U1" ● 针对机柜资源,取值为 Rack |
| drive_id | 指定驱动器的ID | ● 可从指定机箱资源中获 取 |
使用指南
无
使用实例
请求样例:
POST https://device_ip/redfish/v1/Chassis/1/Drives/HDDPlaneDisk0/Actions/Oem/Public/Drive.CryptoErase请求头:
X-Auth-Token: 123456789***********************
Content-Type: application/json请求消息体:
{}响应样例:
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "Base.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200
POST (ACTION)
Drive.ResetPhysicalDisk
命令功能
复位指定物理盘
命令格式
URL: https://device_ip/redfish/v1/Chassis/chassis_id/Drives/drives_id/Actions/Drive.Reset
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type请求消息体:
{
"ResetType": reset_type
}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| Chassis_id | 系统资源的ID | ● 针对机架服务器,取值 为1 ● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1” ● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号) ● 针对X6800 V5,X6000 V5,G5500,XA320 V2 服务器,取值还可以为 Enc,表示计算节点所在 的机框资源 ● 针对设备U位信息,取值 可以为UN(N表示设备U 位号),例如"U1" ● 针对机柜资源,取值为 Rack |
| drive_id | 指定驱动器的ID | ● 可从指定机箱资源中获 取 |
| reset_type | 上下电操作类型 | 取值: ● ForceOn:强制上电 ● ForceOff:强制下电 |
使用指南
BMC300 5.13.0.1及以上版本支持。
使用实例
请求样例:
POST https://device_ip/redfish/v1/Chassis/1/Drives/HDDPlaneDisk0/Actions/Drive.Reset请求头:
X-Auth-Token: 123456789***********************
Content-Type: application/json请求消息体:
{
"ResetType": "On"
}响应样例:
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "Base.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200