代码仓
中
Bios
更新时间: 2026/06/26
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Systems/system_id/Bios

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-BIOS资源模型的OData描述信息
@odata.idstringtrue-BIOS资源的访问路径
@odata.typestringtrue-BIOS资源的类型
Idstringtrue-BIOS资源的ID
Namestringtrue-BIOS资源的名称
AttributeRegistrystringtrue-BIOS属性注册资源ID
Attributes {objecttrue-BIOS属性列表,具体属性参考表3-488
Attributes.ATSstringtrue-是否使能Intel VT-d地址转换服务(ATS)
Attributes.BMCWDTActionstringtrue-BMC看门狗超时后的动作
Attributes.BMCWDTEnablestringtrue-是否使能BMC看门狗
Attributes.BMCWDTTimeoutnumbertrue-BMC看门狗超时时间
Attributes.BootPStatestringtrue-启动时的P状态
Attributes.BootTypeOrder0stringtrue-启动类型顺序0
Attributes.BootTypeOrder1stringtrue-启动类型顺序1
Attributes.BootTypeOrder2stringtrue-启动类型顺序2
Attributes.BootTypeOrder3stringtrue-启动类型顺序3
Attributes.C6Enablestringtrue-是否使能C6状态
Attributes.CREnablestringtrue-是否使能串口重定向
Attributes.CoherencySupportstringtrue-是否支持缓存一致性
Attributes.CustomPowerPolicystringtrue-自定义电源策略
Attributes.DCUIPPrefetcherEnablestringtrue-是否使能DCU IP预取器
Attributes.DCUStreamerPrefetcherEnablestringtrue-是否使能DCU流预取器
Attributes.DDRFreqLimitstringtrue-DDR频率限制
Attributes.EnableXEstringtrue-是否使能XE功能
Attributes.FPKPortConfig0stringtrue-是否使能FPK端口0
Attributes.FPKPortConfig1stringtrue-是否使能FPK端口1
Attributes.FPKPortConfig2stringtrue-是否使能FPK端口2
Attributes.FPKPortConfig3stringtrue-是否使能FPK端口3
Attributes.GlobalBaudRatestringtrue-串口全局波特率
Attributes.InterruptRemapstringtrue-是否使能中断重映射
Attributes.KtiLinkL0pEnstringtrue-是否使能KTI链路L0p电源状态
Attributes.KtiLinkL1Enstringtrue-是否使能KTI链路L1电源状态
Attributes.MLCSpatialPrefetcherEnablestringtrue-是否使能MLC空间预取器
Attributes.MLCStreamerPrefetcherEnablestringtrue-是否使能MLC流预取器
Attributes.MonitorMwaitEnablestringtrue-是否使能MONITOR/MWAIT指令
Attributes.NumaEnstringtrue-是否使能NUMA
Attributes.OSWDTActionstringtrue-OS看门狗超时后的动作
Attributes.OSWDTEnablestringtrue-是否使能OS看门狗
Attributes.OSWDTTimeoutnumbertrue-OS看门狗超时时间
Attributes.PCIeARISupportstringtrue-是否支持PCIe ARI
Attributes.PCIePortDisable1stringtrue-是否禁用PCIe端口1
Attributes.PCIePortDisable8stringtrue-是否禁用PCIe端口8
Attributes.PCIePortDisable85stringtrue-是否禁用PCIe端口85
Attributes.PCIeSRIOVSupportstringtrue-是否支持PCIe SR-IOV
Attributes.PStateDomainstringtrue-P状态域
Attributes.PXEBootToLanLegacystringtrue-是否使能Legacy模式PXE网络启动
Attributes.PXEBootToLanUEFIstringtrue-是否使能UEFI模式PXE网络启动
Attributes.PassThroughDMAstringtrue-是否使能DMA直通
Attributes.PatrolScrubstringtrue-是否使能内存巡检
Attributes.PowerSavingstringtrue-省电模式
Attributes.ProcessorAutonomousCStateEnablestringtrue-是否使能处理器自主C状态
Attributes.ProcessorAutonomousCstateEnablestringtrue-是否使能处理器自主C状态
Attributes.ProcessorC1eEnablestringtrue-是否使能处理器C1e状态
Attributes.ProcessorEISTEnablestringtrue-是否使能处理器EIST
Attributes.ProcessorFlexibleRationumbertrue-处理器灵活倍频
Attributes.ProcessorFlexibleRatioOverrideEnablestringtrue-是否使能处理器灵活倍频覆盖
Attributes.ProcessorHWPMEnablestringtrue-是否使能处理器硬件电源管理
Attributes.ProcessorHyperThreadingDisablestringtrue-是否禁用处理器超线程
Attributes.ProcessorX2APICstringtrue-是否使能处理器x2APIC
Attributes.PxeTimeoutRetryControlstringtrue-PXE超时重试控制
Attributes.QpiLinkSpeedstringtrue-QPI链路速度
Attributes.QuickBootstringtrue-是否使能快速启动
Attributes.QuietBootstringtrue-是否使能静默启动
Attributes.SystemCpuUsagenumbertrue-系统CPU使用率
Attributes.TStateEnablestringtrue-是否使能T状态
Attributes.TurboModestringtrue-是否使能Turbo模式
Attributes.VTdSupportstringtrue-是否支持VT-d
}
SoftwareImages [ {arraytrue-BIOS固件镜像列表
SoftwareImages[].@odata.idstringtrue-固件信息资源节点的访问路径
} ]
ActiveSoftwareImage {objecttrue-有效的BIOS固件镜像
ActiveSoftwareImage.@odata.idstringtrue-固件信息资源节点的访问路径
}
ResetBiosToDefaultsPendingbooleantruetrue/false是否存在重设BIOS属性的待处理请求
@Redfish.Settings {objecttrue-BIOS设置资源信息
@Redfish.Settings.@odata.typestringtrue-BIOS设置资源的类型
@Redfish.Settings.ETagstringtrue-BIOS设置资源的ETag值
@Redfish.Settings.Messages[ ]arraytrue-BIOS设置任务相关联的数组,记录BIOS侧返回的未生效的设置项及对应的错误码
@Redfish.Settings.Timestringtrue-BIOS设置生效的时间
@Redfish.Settings.SettingsObject {objecttrue-BIOS设置资源的访问路径
@Redfish.Settings.SettingsObject.@odata.idstringtrue-SettingsObject资源的访问路径
}
}
Actions {objecttrue-Redfish允许的指定BIOS资源可执行操作
Actions.#Bios.ResetBios {objecttrue-恢复BIOS项默认值
Actions.#Bios.ResetBios.targetstringtrue-恢复BIOS属性默认值的路径
Actions.#Bios.ResetBios.@Redfish.ActionInfostringtrue-恢复BIOS属性默认值的查询路径
}
Actions.#Bios.ChangePassword {objecttrue-修改BIOS密码
Actions.#Bios.ChangePassword.targetstringtrue-修改BIOS密码的路径
Actions.#Bios.ChangePassword.@Redfish.ActionInfostringtrue-修改BIOS密码的查询路径
}
}
Oem {objecttrue-自定义属性
Oem.Public {objecttrue-自定义属性
Oem.Public.BootCertificates {objecttrue-BIOS证书资源的访问路径说明BMC300 3.8.0.1及以上版本支持
Oem.Public.BootCertificates.@odata.idstringtrue-BootCertificates资源的访问路径
}
}
}
PolicyConfig {objecttrue-BIOS策略重配资源的访问路径
PolicyConfig.@odata.idstringtrue-PolicyConfig资源的访问路径
}

supported_methods ​

  • GET
  • POST

HTTP methods ​

GET ​

命令功能

查询 BIOS 资源信息

说明

查询BIOS配置信息时,查询的是BIOS持久化生效的配置项信息。BIOS实际支持的 资源信息受BIOS版本限制。

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Bios

请求头:


X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
system_id系统资源的ID参见源文件参数说明
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

无

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/Systems/system_id/Bios

X-Auth-Token: 123456789***********************

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#Bios.Bios",
  "@odata.id": "/redfish/v1/Systems/1/Bios",
  "@odata.type": "#Bios.v1_2_3.Bios",
  "Id": "Bios",
  "Name": "BIOS Configuration Current Settings",
  "AttributeRegistry": "BiosAttributeRegistry.1.0.1",
  "Attributes": {
    "QuickBoot": "Enabled",
    "QuietBoot": "Disabled",
    "PXEBootToLanUEFI": "Enabled",
    "PXEBootToLanLegacy": "Enabled",
    "PxeTimeoutRetryControl": "Disabled",
    "BootTypeOrder0": "HardDiskDrive",
    "BootTypeOrder1": "DVDROMDrive",
    "BootTypeOrder2": "PXE",
    "BootTypeOrder3": "Others",
    "CustomPowerPolicy": "Efficiency",
    "TurboMode": "Disabled",
    "ProcessorHyperThreadingDisable": "Enabled",
    "ProcessorEISTEnable": "Enabled",
    "PowerSaving": "Enabled",
    "SystemCpuUsage": 95,
    "PStateDomain": "All",
    "ProcessorAutonomousCstateEnable": "Enabled",
    "ProcessorAutonomousCStateEnable": "Enabled",
    "ProcessorC1eEnable": "Enabled",
    "C6Enable": "Enabled",
    "NumaEn": "Enabled",
    "PCIeSRIOVSupport": "Disabled",
    "PCIeARISupport": "Disabled",
    "VTdSupport": "Enabled",
    "InterruptRemap": "Enabled",
    "CoherencySupport": "Enabled",
    "ATS": "Enabled",
    "PassThroughDMA": "Enabled",
    "BMCWDTEnable": "Disabled",
    "BMCWDTAction": "HardReset",
    "BMCWDTTimeout": 20,
    "OSWDTEnable": "Disabled",
    "OSWDTAction": "HardReset",
    "OSWDTTimeout": 5,
    "CREnable": "Enabled",
    "GlobalBaudRate": "Rate115200",
    "ProcessorFlexibleRatioOverrideEnable": "Disabled",
    "ProcessorFlexibleRatio": 23,
    "ProcessorHWPMEnable": "Disabled",
    "TStateEnable": "Disabled",
    "EnableXE": "Disabled",
    "MLCStreamerPrefetcherEnable": "Disabled",
    "MLCSpatialPrefetcherEnable": "Disabled",
    "MonitorMwaitEnable": "Enabled",
    "DCUStreamerPrefetcherEnable": "Disabled",
    "DCUIPPrefetcherEnable": "Enabled",
    "ProcessorX2APIC": "Disabled",
    "BootPState": "MaxPerformance",
    "QpiLinkSpeed": "Auto",
    "KtiLinkL0pEn": "Enabled",
    "KtiLinkL1En": "Enabled",
    "DDRFreqLimit": "Auto",
    "PatrolScrub": "Enabled",
    "FPKPortConfig0": "Enabled",
    "FPKPortConfig1": "Enabled",
    "FPKPortConfig2": "Enabled",
    "FPKPortConfig3": "Enabled",
    "PCIePortDisable1": "Auto",
    "PCIePortDisable8": "Auto",
    "PCIePortDisable85": "Auto"
  },
  "SoftwareImages": [
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Bios"
    }
  ],
  "ActiveSoftwareImage": {
    "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Bios"
  },
  "ResetBiosToDefaultsPending": false,
  "@Redfish.Settings": {
    "@odata.type": "#Settings.v1_0_0.Settings",
    "ETag": "2484f287",
    "Messages": [],
    "Time": "2016-02-29T16:14:44+00:00",
    "SettingsObject": {
      "@odata.id": "/redfish/v1/Systems/1/Bios/Settings"
    }
  },
  "Actions": {
    "#Bios.ResetBios": {
      "target": "/redfish/v1/Systems/1/Bios/Actions/Bios.ResetBios",
      "@Redfish.ActionInfo": "/redfish/v1/Systems/1/Bios/ResetBiosActionInfo"
    },
    "#Bios.ChangePassword": {
      "target": "/redfish/v1/Systems/1/Bios/Actions/Bios.ChangePassword",
      "@Redfish.ActionInfo": "/redfish/v1/Systems/1/Bios/ChangePasswordActionInfo"
    }
  },
  "Oem": {
    "Public": {
      "BootCertificates": {
        "@odata.id": "/redfish/v1/Systems/1/Bios/Oem/Public/BootCertificates"
      }
    }
  },
  "PolicyConfig": {
    "@odata.id": "/redfish/v1/Systems/1/Bios/PolicyConfig"
  }
}

响应码:200

POST (ACTION) ​

ResetBios ​

命令功能

恢复 BIOS 属性默认值

说明

恢复BIOS默认资源表示已下发BIOS默认值,但当前还未生效,下次系统重启时生 效。

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Bios/Actions/Bios.ResetBios

请求头:


X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
system_id系统资源的ID● 针对机架服务器,取值 为1
● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 "Blade1"
● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 "Swi1"
● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以 为Enc,表示计算节点 所在的机框资源
● 针对设备U位信息,取 值可以为UN(N表示设 备U位号),例如"U1"
● 针对机柜资源,取值为 Rack

使用指南

无

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/system_id/Bios/Actions/Bios.ResetBios

X-Auth-Token: 123456789*********************** Content-Type: header_type

请求消息体:

json
{}

响应样例:

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) ​

ChangePassword ​

命令功能

修改 BIOS 密码

说明

BMC只是修改BIOS密码,BIOS密码生效需重启OS,且如果OS重启前有多次设 置,以最后一次的设置请求为准1。

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Bios/Actions/Bios.ChangePassword

请求头:


X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{
  "OldPassword": oldpwd_value,
  "NewPassword": newpwd_value,
  "PasswordName": pwd_name
}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
system_id系统资源的ID● 针对机架服务器,取值 为1
● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1”
● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1”
oldpwd_value字符串BIOS已存在密码,长度以 BIOS侧实际情况为准
newpwd_value字符串BIOS的新密码,长度以 BIOS侧实际情况为准
pwd_name字符串● Supervisor:修改BIOS 管理员密码
● UserPassword:修改 BIOS普通用户密码 说明 UserPassword只在BMC300 5.1.0及以上版本支持

使用指南

无

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/system_id/Bios/Actions/Bios.ChangePassword

X-Auth-Token: 123456789*********************** Content-Type: header_type

请求消息体:

json
{
  "OldPassword": oldpwd_value,
  "NewPassword": newpwd_value,
  "PasswordName": pwd_name
}

响应样例:

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