A few commands show what your dedicated server is made of: the processor, the memory and its slots, the disks and the speed of the network card. This is useful to check a new server against your order, or to tell our support exactly which disk you mean. The commands were tested on Ubuntu 26.04 LTS on an HP ProLiant server; run them as root.


1. Processor

lscpu | grep -E "Model name|^CPU\(s\)|Core|Thread|Socket"

The answer looks like this:

CPU(s):                  8
Model name:              Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Thread(s) per core:      2
Core(s) per socket:      4
Socket(s):               1

So: one processor with 4 cores and 2 threads per core, 8 threads in all. nproc prints just the number of threads, here 8.

2. Memory

free -h

The line Mem: shows the total memory, here 15Gi (16 GB). Most of buff/cache is free in practice: Linux uses spare memory as a disk cache and gives it back when programs need it. The column available is what programs can still get.

Which memory slots are used:

dmidecode -t memory | grep -E "Locator:|Size:"

Each slot shows Size: 8 GB or Size: No Module Installed. In this example the server has two 8 GB modules and two empty slots, so the memory can be extended there.

3. Disks

lsblk -d -e7 -o NAME,SIZE,MODEL,ROTA,TRAN
NAME  SIZE MODEL            ROTA TRAN
sda   3.6T TOSHIBA MD04ACA4    1 sata
sdb   3.6T TOSHIBA MD04ACA4    1 sata
  • SIZE: 3.6T is a 4 TB disk; disk makers count 1 TB as 1000 GB, Linux as 1024 GB.
  • ROTA: 1 is a hard disk with rotating platters, 0 an SSD or NVMe disk.
  • TRAN: the connection, for example sata or nvme.

Without -d, lsblk also shows the partitions, the RAID arrays (raid1) and where they are mounted. The model and the serial number of one disk: smartctl -i /dev/sda (package smartmontools; on Debian install it with apt install smartmontools). Give the serial number to our support when a disk has to be replaced. Health of the disks: How to Check Disk Health with smartctl on a Dedicated Server.

4. Network

ip -br link
ethtool eno0 | grep -E "Speed|Link detected"

The first command lists the network cards; UP means connected. Use the name of your card in the second one. Speed: 1000Mb/s and Link detected: yes mean a 1 Gbit/s connection. The real speed to the Internet is measured differently: Check the Network of Your Linux Server: ping, mtr and iperf3.

5. The Server Model and the System

dmidecode -s system-manufacturer
dmidecode -s system-product-name
hostnamectl | grep -E "Operating|Kernel"

For example: HP, ProLiant DL120 G7, Ubuntu 26.04.1 LTS.


Related Guides

View all Ubuntu and Debian guides

Was this answer helpful? 0 Users Found This Useful (0 Votes)