Ever needed to obtain the serial number (or other details) for a remote server? Couldn’t be bothered to walk/run/drive/fly all the way there just to read a sticky label on the back or bottom of said server? Read on then.
The command you want to run, as root, is dmidecode
. For example, to get the make and model and serial number of a server, do this:
|
|
The result will be similar to:
|
|
Other options for the -t
parameter are:
bios
- tells you all about your bios.system
- tells you about the system hardware.baseboard
- all about the mother board.chassis
- all you need to know about the “box” the system is made up of.processor
- fairly obvious.memory
- again, fairly obvious.cache
- information about your CPU cache.connector
- what sockets are present on the computer. USB, firewire, ethernet etc.slot
- appears to be the bus information, and voltages present, supplied etc.
There’s brief help available:
|
|
|
|
However, to find out the different types you can supply, you need to supply an erroneous type:
|
|
|
|
I’ve just used the command to obtain information about a server located 150 odd miles away from my comfy chair, running in an unattended site. That saved me a bit of time!
Have fun.