On s390x architecture, lshw doesn't properly report the system model. This commit adds fallback detection using the read_values command, which provides the model information in the format: "2064 = z900 IBM eServer zSeries 900" The implementation: - Runs read_values -c on s390x systems only - Parses the output to extract the model string - Intelligently splits IBM models into vendor and version (e.g., "z900 IBM eServer zSeries 900" -> vendor="IBM", version="eServer zSeries 900") - Enriches the existing HardwareNode system class with this data Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
40 lines
762 B
JSON
40 lines
762 B
JSON
{
|
|
"id": "s390x",
|
|
"class": "system",
|
|
"claimed": true,
|
|
"description": "System",
|
|
"children": [
|
|
{
|
|
"id": "memory",
|
|
"class": "memory",
|
|
"claimed": true,
|
|
"description": "System memory",
|
|
"physid": "0",
|
|
"size": 8589934592
|
|
},
|
|
{
|
|
"id": "cpu:0",
|
|
"class": "processor",
|
|
"claimed": true,
|
|
"product": "IBM/S390",
|
|
"physid": "1",
|
|
"businfo": "cpu@0",
|
|
"configuration": {
|
|
"cores": "2",
|
|
"enabledcores": "2"
|
|
}
|
|
},
|
|
{
|
|
"id": "cpu:1",
|
|
"class": "processor",
|
|
"claimed": true,
|
|
"product": "IBM/S390",
|
|
"physid": "2",
|
|
"businfo": "cpu@1",
|
|
"configuration": {
|
|
"cores": "2",
|
|
"enabledcores": "2"
|
|
}
|
|
}
|
|
]
|
|
}
|