问题描述:
使用redfish接口获取bios设置可配置项Attributes为空
“@odata.context”: “/redfish/v1/$metadata#Bios.Bios”,
"@odata.id": "/redfish/v1/Systems/1/Bios/Settings",
"@odata.type": "#Bios.v1_0_0.Bios",
"Id": "Settings",
"Name": "BIOS Configuration Pending Settings",
"AttributeRegistry": "BiosAttributeRegistry.2.6.2",
**"Attributes": null,**
"Actions": {
"Oem": {
"openUBMC": {
"#Settings.Revoke": {
"target": "/redfish/v1/Systems/1/Bios/Settings/Actions/Oem/openUBMC/Settings.Revoke"
}
}
}
},
"Oem": {
"openUBMC": {
"EffectiveStatus": "Effective"
}
}
初步分析:
通过busctl --user introspect bmc.kepler.bios /bmc/kepler/Systems/1/Bios bmc.kepler.Systems.Bios命令知道了Attributes配置是从文件/data/opt/setting.json获取的
.ResultFileName property s “/data/opt/result.json” emits-change
.SettingFileName property s “/data/opt/setting.json” emits-change
读取该文件/data/opt/setting.json内容为空
~ # cd /data/opt/
/data/opt # ls
SMBIOS_CONF bmc currentvalue.json pme registry.json result.json setting.json third_party
/data/opt # cat setting.json
/data/opt #
[问题求助]
/data/opt/setting.json什么情况下会为空?这个文件的内容是从什么地方获取到的?文件内容是否有个参数EquipmentModeFlag表示设置设备bios进入装备模式?