search by tags

for the user

adventures into the land of the command line

how can you find out hardware information from a server

there are a few different commands that can help, some I didn't include here and also some of them are not installed by default, you may have to install them.

dmidecode

$ sudo dmidecode | grep Product

[Physical system]

Product Name: 01HXXJ
Product Name: Inspiron N5050

[Virtual system]

Product Name: VirtualBox
Product Name: VirtualBox

facter

$ sudo facter 2> /dev/null | grep virtual

[Physical system]

is_virtual => false
virtual => physical

[Virtual system]

is_virtual => true
virtual => kvm

lshw

$ sudo lshw -class system

[Physical system]

sk
 description: Portable Computer
 product: Inspiron N5050 (To be filled by O.E.M.)
 vendor: Dell Inc.
 version: Not Specified
 serial: JSQ9PR1
 width: 4294967295 bits
 capabilities: smbios-2.6 dmi-2.6 smp vsyscall32
 configuration: boot=normal chassis=portable sku=To be filled by O.E.M. uuid=44454C4C-5300-1051-8039-CAC04F505231

[Virtual system]

ubuntuserver
 description: Computer
 product: VirtualBox
 vendor: innotek GmbH
 version: 1.2
 serial: 0
 width: 64 bits
 capabilities: smbios-2.5 dmi-2.5 vsyscall32
 configuration: family=Virtual Machine uuid=78B58916-4074-42E2-860F-7CAF39B5E6F5

localhost.themountain.io
    description: Computer
    product: VirtualBox
    vendor: innotek GmbH
    version: 1.2
    serial: 0
    width: 64 bits
    capabilities: smbios-2.5 dmi-2.5 vsyscall64 vsyscall32
    configuration: family=Virtual Machine uuid=7776FDA9-F518-4616-A9B2-742D9AC376D9