System (Hardware)

In this section you will learn how to get basic system hardware data. We will cover the system, baseboard and bios:

For function reference and examples we assume, that we imported systeminformation as follows:

const si = require('systeminformation');

System

All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)

Function Result object Linux BSD Mac Win Sun Comments
si.system(cb) {...} X X X X hardware information
manufacturer X X X X e.g. 'MSI' or 'DELL'
model X X X X model/product e.g. 'MS-7823'
version X X X X version e.g. '1.0'
serial X X X X serial number
uuid X X X X UUID
sku X X X X SKU number
virtual X X X is virtual machine
raspberry X Additional Raspberry-specific information
manufacturer, processor, type, revision
Raspberry only
Example
const si = require('systeminformation');
si.system().then(data => console.log(data));
{
  manufacturer: 'Apple Inc.',
  model: 'MacBookPro13,2',
  version: '1.0',
  serial: 'C01xxxxxxxx',
  uuid: 'F87654-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
  sku: 'Mac-99878xxxx...',
  virtual: false,
}
si.bios(cb) {...} X X X X bios information
vendor X X X X e.g. 'AMI'
version X X X version
releaseDate X X X release date
revision X X X revision
Example
const si = require('systeminformation');
si.bios().then(data => console.log(data));
{
  vendor: 'American Megatrends Inc.',
  version: 'P4.20',
  releaseDate: '2019-09-05',
  revision: '5.13'
}
si.baseboard(cb) {...} X X X X baseboard information
manufacturer X X X X e.g. 'ASUS'
model X X X X model / product name
version X X X X version
serial X X X X serial number
assetTag X X X X asset tag
Example
const si = require('systeminformation');
si.baseboard().then(data => console.log(data));
{
  manufacturer: 'ASRock',
  model: 'H310M-STX',
  version: '',
  serial: 'C80-xxxxxxxxxxx',
  assetTag: ''
}
si.chassis(cb) {...} X X X X chassis information
manufacturer X X X X e.g. 'ASUS'
model X X X X model / product name
type X X X X chassis type e.g. 'desktop'
version X X X X version
serial X X X X serial number
assetTag X X X X asset tag
sku X SKU number
Example
const si = require('systeminformation');
si.chassis().then(data => console.log(data));
{
  manufacturer: 'Apple Inc.',
  model: 'MacBookPro13,2',
  type: '',
  version: '1.0',
  serial: 'C01xxxxxxxx',
  assetTag: 'Mac-99878xxxx...',
  sku: ''
}