Skip to content

Cross-platform library and tool to extract detailed system information from SMBIOS (in Python, C & C++).

License

Notifications You must be signed in to change notification settings

PerryWerneck/dmiget

Repository files navigation

Linux/Windows tool and library to get DMI data

A versatile toolkit for accessing and extracting System Management BIOS (SMBIOS) data, available as a cross-platform Python, C, and C++ library with a convenient command-line interface. This tool provides comprehensive support for parsing and interpreting SMBIOS structures, enabling retrieval of detailed system information such as hardware components, firmware versions, and manufacturer details.

Platform: Linux/Windows License: GPL v3 CodeQL Advanced build result PyPI version

Installation

Packages

You can download installation package for supported linux distributions in Open Build Service

Download from open build service Download from githut Download from pypi

Examples:

Command line

dmiget
dmiget dmi:///bios/vendor

Python

import smbios
value = smbios.Value('chassis','serial')
print(value)
import smbios
value = smbios.Value('dmi:///chassis/serial')
print(value)
import smbios
value = smbios.memsize()
print(value)
print(int(value))
import smbios
for node in smbios.nodes():
	print(node)
	for value in node.values():
		print('	{}: {}'.format(value.description,value))

C++

#include <smbios/node.h>
#include <iostream>

using namespace std;

int main(int argc, char **argv) {
	Node node{"chassis"};
	cout << node.name() << " - " << node << endl;
	cout << node["manufacturer"] << endl;
	return 0;
}

About

Cross-platform library and tool to extract detailed system information from SMBIOS (in Python, C & C++).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published