Skip to main content

Identify virtual machine

Project description

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;
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smbios-1.2.6.tar.gz (66.8 kB view details)

Uploaded Source

File details

Details for the file smbios-1.2.6.tar.gz.

File metadata

  • Download URL: smbios-1.2.6.tar.gz
  • Upload date:
  • Size: 66.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for smbios-1.2.6.tar.gz
Algorithm Hash digest
SHA256 16cc6cacde1e121e416fcef7bbc799c8729be1b8a4f795cbf150ee7e4a4aaed2
MD5 ea8456b7191f11cf977c335578d5e611
BLAKE2b-256 1e5b72e37189e6bf13c84540b5c64f92a65682ecd08257b82f56bb04d6472825

See more details on using hashes here.

Provenance

The following attestation bundles were made for smbios-1.2.6.tar.gz:

Publisher: publish.yml on PerryWerneck/dmiget

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page