commit | 5e54a36a95f6a206fc313af71504f1a5fbe8f6cf | [log] [tgz] |
---|---|---|
author | Zhikui Ren <zhikui.ren@intel.com> | Mon Jul 13 15:31:38 2020 -0700 |
committer | Zhikui Ren <zhikui.ren@intel.com> | Wed Jul 22 23:13:40 2020 +0000 |
tree | 86a9e265b10042d7fbd23eef7c0eda6d7953e296 | |
parent | be5dfca5058ffe7667a34924f90523454f031b33 [diff] |
Add SerialNumber and Model for cpu node in redfish If CPUInfo interface is available, populate SerialNumber and Model for processor/cpu. Tested: Verfied /redfish/v1/Systems/system/Processors/cpu0 { "@odata.id": "/redfish/v1/Systems/system/Processors/cpu0", "@odata.type": "#Processor.v1_7_0.Processor", "Id": "cpu0", "MaxSpeedMHz": 4000, "Model": "QQQQ", "Name": "Central Processor", "ProcessorType": "CPU", "SerialNumber": "6122cca2e8a2d5c", ... Redfish Validator passed together with this patch https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/31294/ Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> Change-Id: I0e14d414e06c40062239a0673d2c55e706cc1b30
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/CMakeLists.txt
and then compiling. For example, cmake -DBMCWEB_ENABLE_KVM=NO ...
followed by make
. The option names become C++ preprocessor symbols that control which code is compiled into the program.
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.