Skip to content

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 systeminspector as follows:

const si = require('@ambicuity/systeminspector');

System

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

FunctionResult objectLinuxBSDMacWinSunComments
si.system(cb)XXXXhardware information
manufacturerXXXXe.g. 'MSI' or 'DELL'
modelXXXXmodel/product e.g. 'MS-7823'
versionXXXXversion e.g. '1.0'
serialXXXXserial number
uuidXXXXUUID
skuXXXXSKU number
virtualXXXis virtual machine
virtualHostXXXvirtual host (only if virtual = true)
raspberryXAdditional Raspberry-specific information
manufacturer, processor, type, revision
Raspberry only
si.uuid(cb)XXXXXobject of several UUIDs
osXXXXos specific UUID
hardwareXXXXhardware specific UUID
macsXXXXMAC addresses
si.bios(cb)XXXXbios information
vendorXXXXe.g. 'AMI'
versionXXXXversion
releaseDateXXXrelease date
revisionXXXrevision
serialXXserial
languageXbios language
featuresXsupported features
si.baseboard(cb)XXXXbaseboard information
manufacturerXXXXe.g. 'ASUS'
modelXXXXmodel / product name
versionXXXXversion
serialXXXXserial number
assetTagXXXXasset tag
memMaxXXXmemory max capacity bytes (where available)
memSlotsXXXnumber memory slots on baseboard
si.chassis(cb)XXXXchassis information
manufacturerXXXXe.g. 'ASUS'
modelXXXXmodel / product name
typeXXXXchassis type e.g. 'desktop'
versionXXXXversion
serialXXXXserial number
assetTagXXXXasset tag
skuxXSKU number

Examples

Example
const si = require('@ambicuity/systeminspector');
si.system().then(data => console.log(data));
json
{
  manufacturer: 'Apple Inc.',
  model: 'MacBookPro13,2',
  version: '1.0',
  serial: 'C01xxxxxxxx',
  uuid: 'F87654-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
  sku: 'Mac-99878xxxx...',
  virtual: false,
}
Example
const si = require('@ambicuity/systeminspector');
si.uuid().then(data => console.log(data));
json
{
  os: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
  hardware: 'xxxxxxxxxxxxxx',
  macs: [
    '01:02:03:04:05:06',
    '02:03:04:05:06:07',
    'aa:bb:cc:dd:ee:ff'
  ]
}
Example
const si = require('@ambicuity/systeminspector');
si.bios().then(data => console.log(data));
json
{
  vendor: 'American Megatrends Inc.',
  version: 'P4.20',
  releaseDate: '2019-09-05',
  revision: '5.13',
  langage: 'en',
  features: [
    'PCI',
    'Boot from CD',
    'Selectable boot',
    'EDD',
    'Print screen service',
    'ACPI',
    'USB legacy',
    'BIOS boot specification',
    'Targeted content distribution',
    'UEFI'
  ]
}
Example
const si = require('@ambicuity/systeminspector');
si.baseboard().then(data => console.log(data));
json
{
  manufacturer: 'ASRock',
  model: 'H310M-STX',
  version: '',
  serial: 'C80-xxxxxxxxxxx',
  assetTag: ''
  memMax: 68719476736
  memSlots: 2
}
Example
const si = require('@ambicuity/systeminspector');
si.chassis().then(data => console.log(data));
json
{
  manufacturer: 'Apple Inc.',
  model: 'MacBookPro13,2',
  type: 'Laptop',
  version: '1.0',
  serial: 'C01xxxxxxxx',
  assetTag: 'Mac-99878xxxx...',
  sku: 'A1706'
}
Inspector AI
SystemInspector AI initialized. How can I help you query your hardware?