Python dmidecode モジュールを使用して dmidecode (タイプ 204) 情報を取得するにはどうすればよいですか?
HP ハードウェアで Linux Redhat を使用しています。
これが私が探しているものです(Python経由で欲しいことを除いて):
> dmidecode --type 204
# dmidecode 2.11
SMBIOS 2.7 present.
Handle 0xCC00, DMI type 204, 20 bytes
HP ProLiant System/Rack Locator
Rack Name: UnnamedRack
Enclosure Name: encdrp5
Enclosure Model: BladeSystem c7000 Enclosure G3
Enclosure Serial: xxxxxxxxx
Enclosure Bays: 16
Server Bay: 6
Bays Filled: 1
私はこれを試しました:
import dmidecode
dmidecode.type(204)
しかし、私は持っています{}