Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Module for SMBIOS [closed]

I am looking for a Python module that wraps SMBIOS. If there is none such; do you have any advice on the best way to parse system memory in Python to find the SMBIOS table.

There is information available about how to recognize the table in memory, assuming you can parse memory. I have never tried to parse arbitrary memory in Python; I am sure there would be some issues with access rights...

like image 525
ChipJust Avatar asked Mar 15 '26 18:03

ChipJust


1 Answers

I'm not aware of anything ready-made.

On Windows, my best suggestion is to use ctypes and load the kernel32 library. See the GetSystemFirmwareTable function. http://msdn.microsoft.com/en-us/library/windows/desktop/ms724379

The raw SMBIOS table provider ('RSMB') retrieves the contents of the raw SMBIOS firmware table.

You would then need to write a class to parse the data.

I don't know about Linux, but I suspect there is something similar to retrieve the SMBIOS table.

like image 127
JustinJ Avatar answered Mar 17 '26 08:03

JustinJ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!