While working as a sysadmin I often need to know hardware details about my server, e.g. for scalability.
How much memory can your system address, how many CPUs has the system got, and so on.
You could go downstairs to your basement or to your datacenter and open every server case and count the free memory banks
or the CPUs. Or just use the powerful framework dmidecode.
If you just type dmidecode you’ll get hundreds of lines, that’s not very useful.
dmidecode support multiple methods to get the information you want. It has keywords, numbers and types.
A few examples:
Getting the Service-Tag of a DELL-Server by a keyword:
dmidecode -s system-serial-number
You want to know how many memory your server is able to address with a type number:
dmidecode -t 16
Or you just want all information about your processors with a type:
dmidecode -t processor