All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
One-click script to check your Linux server's hardware details
I'm glad to share a one-click bash script that quickly shows the details of all the hardware of your Linux servers.
https://github.com/Har-Kuun/ServerHardware
Specifically, it checks the make, model, part number, configurations, status of multiple components of your servers.
- CPU
- RAM sticks
- Disk drives
- RAID controllers
- NIC
- Motherboard
- PSU
- Fans
- Other hardwares
The script work on Ubuntu, Debian, and some CentOS-based systems. And apparently, this will work on dedicated servers only, not VPS. To use it, you can run any one of the commands as below.
wget -qO- https://raw.githubusercontent.com/Har-Kuun/ServerHardware/refs/heads/main/serverhw.sh | bash
or
curl -Lso- https://raw.githubusercontent.com/Har-Kuun/ServerHardware/refs/heads/main/serverhw.sh | bash
or
wget -qO- ts.st/hw | bash
or
curl -Lso- ts.st/hw | bash
At the end of the run, it will output a short summary, as well as more detailed hardware info stored in a .txt file on your local drive. Below is an example summary output of an OVH server.
==============================================
Hardware Info Summary
==============================================
System Info
--------------------------------------------------
System : Supermicro Super Server
BIOS : American Megatrends Inc. 3.4.V1 (03/09/2023)
Motherboard : Supermicro X10SRi-F 1.01B
--------------------------------------------------
CPU Info
--------------------------------------------------
Model : Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz
BIOS Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz CPU @ 3.6GHz
Topology : 1 Socket(s), 6 Cores, 12 Threads
--------------------------------------------------
Memory Info
--------------------------------------------------
RAM : 125Gi Total
Installed RAM Sticks:
------------------------------------------------------------------------------------------------------
| Size | Type | Speed | Configured Speed | Manufacturer | Part Number |
------------------------------------------------------------------------------------------------------
| 32 GB | DDR4 | 2667 MT/s | 2400 MT/s | Micron | 36ASF4G72PZ-2G6E1 |
| 32 GB | DDR4 | 2667 MT/s | 2400 MT/s | Micron | 36ASF4G72PZ-2G6E1 |
| 32 GB | DDR4 | 2667 MT/s | 2400 MT/s | Micron | 36ASF4G72PZ-2G6E1 |
| 32 GB | DDR4 | 2667 MT/s | 2400 MT/s | Micron | 36ASF4G72PZ-2G6E1 |
------------------------------------------------------------------------------------------------------
Disk Info
------------------------------------------------------------------------------------------------------------------------
| Name | Size | Model | Power On Hours | Data Read (GB) | Data Written (GB) |
------------------------------------------------------------------------------------------------------------------------
| nvme0n1 | 1.7T | SAMSUNG MZQL21T9HCJR-00A07 | 405 | 155.28 | 779.18 |
| nvme1n1 | 1.7T | SAMSUNG MZQL21T9HCJR-00A07 | 405 | 152.30 | 779.33 |
------------------------------------------------------------------------------------------------------------------------
RAID Info
--------------------------------------------------
Software RAID : raid1 (Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] [raid10] )
--------------------------------------------------
Network Info
--------------------------------------------------
eno1 : network I350 Gigabit Network Connection (1000Mb/s)
eno2 : network I350 Gigabit Network Connection
--------------------------------------------------
This script was adapted and translated from another script written by Yuri-NagaSaki. Shoutout to the smart guy who wrote the original script - it was nicely written and structured. I kept most of the detection logic, whereas updated the summary and output logic and did the translation work.
Hopefully this script can be helpful for the many dedicated server customers here in LET. Cheers ![]()


Comments
Lovely.
Nice work
Great work!
Maybe add relocated sectors count (and other HDD health info)?
this actually looks very useful! Thanks
Good idea - I'll try to get it added in the next version
Is that a sweet super upgraded KS-LE-B?
Nicely done, kudos!
Btw, I just so happened to see a small and purely cosmetic error in line 115. "Kernal Version" - should obviously be Kernel Version" ... *g
Thanks bro - good catch! Fixed
Good work!
Any chance to include hardware details for igpu/GPU?
te.st is a nice ass domain
It's supposed to take care of GPU already in the detailed .txt report (not in the summary report though). Will see if I can get it added in the summary report
It either doesn't like dell OEM (In my case a SolidFire Storage system AKA NetApp) or it doesn't like Proxmox (Debian 12), couldn't find the Raid controller, Ram Stick info, and couldn't get hours, read and write on drives other than my Radian RMS-200 SLOG. I'm leaning that it doesn't like running under proxmox cause I ran it on one of my WiWynn servers and it didn't see the raid, or ram stick info there either But it did get hours etc from it's drives.
The Dell has a LSI Raid controller but drives are just being passed through.
Potential improvements
Missing zfs support
But from what I see it's a nice little tool, even though it doesn't support zfs it does see my zfs-thin partitioning, got good details on my NICs, other system info so I say Nice Work !!!!!
Damn I wish I had
te.st. Unfortunately it's only ts.st, not te.st..Thanks for the feedback! Yes unfortunately it doesn't like Proxmox. I'll see if I can do something for the zfs part.
Not enough coffee today I guess
Still good though
Not bad.
Flexing the lottery, I’ve sent a dm since ur selling this one for the 26€ monthly
Looks like I got something messed up at the RAM sticks part.. will try to get it fixed😂
Sure !
Resgards
Only 64GB ram sadly
Yes 😊
my imaginary dream specs 😞😞🤤🤤
Installed RAM Sticks Failed
weird that it can't say the OS (only saw Default string Default string)
Yuri-NagaSaki is also here
@sayyiku
Your script has some issue processing "Installed RAM Sticks", please fix that, thank you.
I just updated the script with different
awklogic in the memory part, and it should now work better for Debian. Hopefully it would solve this problem. @honusAlso added the reallocated sector count and SMAR error info in the summary report
@SashkaPro