Last modified: Oct. 18, 2008
Contents
1 - Summary
2 - Software installation
3 - Commands
1 - Summary
This guide shows how to get the system serial number and BIOS information
in OpenBSD. It will show how to install the dmidecode package. This has been
tested in OpenBSD 4.3.
2 - Software installation
Install the dmidecode package from an OpenBSD FTP mirror server.
# sudo export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.3/packages/i386/
# sudo pkg_add dmidecode-2.9.tgz
3 - Commands
You can display the system information including serial number by typing the
following as the root user.
# dmidecode -t 1 | grep -e 'Manufacturer' -e 'Product Name' -e 'Serial Number' | cut -f 2
Manufacturer: Dell Computer Corporation
Product Name: OptiPlex 170L
Serial Number: XXXXXXX
You can display the BIOS information by typing the following as the root user.
# dmidecode -t 0 | grep -e 'Vendor' -e 'Version' -e 'Release Date' | cut -f 2
Vendor: Dell Computer Corporation
Version: XXX
Release Date: XX/XX/XXXX
|