Check Dedicated Server Specifications | check raid

This post explains few quick linux commands to check server specifications. I tried to explain every command output in this post as follows:

Check SSD

# cat /sys/block/sda/queue/rotational
1

if above commnad returns 1 it means HDD else if it returns 0 then it is SSD.

 

Check RAM

# cat /proc/meminfo

MemTotal: 131778740 kB

Above command returns huge list of outputs, however you can ignore all and should focus on 1st line which tells about total Memory. You can convert KBs to MBs at google in order to get values in MBs.

Check Network Card Speed (NIC)

# sudo ethtool eth0 | grep Speed

10000Mb/s

# sudo ethtool bond0 | grep Speed

Speed: 20000Mb/s

Replace bond0 or eth0 with your network card name.

 

Check Raid Status

# cat /proc/mdstat 

Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 sda3[1] sdb3[0]
262016 blocks [2/2] [UU]

md1 : active raid1 sda2[1] sdb2[0]
119684160 blocks [2/2] [UU]

md0 : active raid1 sda1[1] sdb1[0]
102208 blocks [2/2] [UU]

unused devices: 

You can see RAID1 is setup on the server or if no raid is setup you will get following below output:

Personalities :
unused devices: 

 

Check CPU/Processor Info

# cat /proc/cpuinfo

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz
stepping : 4
microcode : 0x42e
cpu MHz : 1200.000
cache size : 15360 KB
physical id : 1
siblings : 12
core id : 5
cpu cores : 6
apicid : 43
initial apicid : 43
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm epb ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear spec_ctrl intel_stibp flush_l1d
bogomips : 4805.76
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

 

Check Internet Speed

# wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli

Then run:

# python speedtest-cli

Testing download speed................................................................................
Download: 929.13 Mbit/s
Testing upload speed................................................................................................
Upload: 697.23 Mbit/s

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>