Skip to content

Latest commit

 

History

History
80 lines (56 loc) · 2.18 KB

README.md

File metadata and controls

80 lines (56 loc) · 2.18 KB

Linux/Windows tool and library to get DMI data

Platform: Linux/Windows License: GPL v3 CodeQL 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;
}