有时候,在定制化配置导入时,会出现某个模块的报错;
在我们调试报错时,如果完全重跑 0502 ,成本有点太高,我们可以通过资源树方法调试单个模块的配置导入功能;
调用 MicroComponent 的 ConfigManage Import 接口即可;
对于模拟生产定制化,最后一个参数传入 ‘custom’,对于模拟网页上的配置导入,最后一个参数传入 ‘configuration’;
例:
busctl --user call bmc.kepler.sensor /bmc/kepler/sensor/MicroComponent bmc.kepler.MicroComponent.ConfigManage Import a{ss}ss 0 ‘{“ConfigData”: {“CustomSettings”: {“BMCSet_PEF_Enable”: {“Value”: “off”, “Import”: true}}}}’ custom
busctl --user call bmc.kepler.ssdp /bmc/kepler/ssdp/MicroComponent bmc.kepler.MicroComponent.ConfigManage Import a{ss}ss 0 ‘{“ConfigData”: {“CustomSettings”: {“BMCSet_SSDPEnable”: {“Value”: false, “Import”: true}, “BMCSet_SSDP_NOTIFY_INTERVAL”: {“Value”: 500, “Import”: true}}}}’ custom
busctl --user call bmc.kepler.nsm /bmc/kepler/nsm/MicroComponent bmc.kepler.MicroComponent.ConfigManage Import a{ss}ss 0 ‘{“ConfigData”: {“CustomSettings”: {“Custom_SNMPAgent_ServiceControl”: {“Value”: “off”, “Import”: true}, “Custom_WEBServer_ServiceControl”: {“Value”: “true”, “Import”: true}, “BMCSet_CustomWebserverHttpState”: {“Value”: “true”, “Import”: true}, “Custom_WebserverHttpState”: {“Value”: “enabled”, “Import”: true}}}}’ custom
配置项模板,可以在 profile_schema 仓找到
