How to get OEM information via Python-dmidecode module

1.4k Views Asked by At

How do I retrieve dmidecode (type 204) information using Python dmidecode module?

I'm using Linux Redhat on HP Hardware.

Here's what I'm looking for (except that I want it via 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

I've tried this:

import dmidecode

dmidecode.type(204)

But I've got {}

0

There are 0 best solutions below