HowTo Get Servers info (Vendor, CPU, Memory, Disk) - Useful Commands

Version 3

    Here are some useful commands to get the server's info.

     

    Commands

     

    CPU:

    dmidecode | grep -A3 '^System Information'

    dmidecode -t processor

    cat /proc/cpuinfo

    lscpu

     

    Disk:

    lshw -class disk

    smartctl -a /dev/sda | grep "^SATA"

     

    Memory:

    cat /proc/meminfo

    dmidecode --type 17

     

     

    Examples:

    dmidecode | grep -A3 '^System Information'

    # dmidecode | grep -A3 '^System Information'

    System Information

    Manufacturer: GIGABYTE

    Product Name: R270-T64-00

    Version: 0100

     

    dmidecode -t processor

    # dmidecode -t processor

    # dmidecode 3.0

    Getting SMBIOS data from sysfs.

    SMBIOS 3.0.0 present.

     

    Handle 0x002E, DMI type 4, 42 bytes

    Processor Information

    Socket Designation: Socket

    Type: Central Processor

    Family: ARM

    Manufacturer: CN8890-2000BG2601-ST-Y-G

    ID: 11 0A 1F 43 01 00 00 00

    Version: 2.1

    Voltage: 1.2 V

    External Clock: 156 MHz

    Max Speed: 2000 MHz

    Current Speed: 2000 MHz

    Status: Populated, Enabled

    Upgrade: Other

    L1 Cache Handle: 0x002F

    L2 Cache Handle: 0x0031

    L3 Cache Handle: 0x0000

    Serial Number: CPU Serial#

    Asset Tag: CPU Asset Tag#

    Part Number: CN88xx

    Core Count: 48

    Core Enabled: 48

    Characteristics:

    64-bit capable

    Multi-Core

    Execute Protection

    Enhanced Virtualization

    Power/Performance Control

     

    Handle 0x0040, DMI type 4, 42 bytes

    Processor Information

    Socket Designation: Socket

    Type: Central Processor

    Family: ARM

    Manufacturer: CN8890-2000BG2601-CP-Y-G

    ID: 11 0A 1F 43 01 00 00 00

    Version: 2.1

    Voltage: 1.2 V

    External Clock: 156 MHz

    Max Speed: 2000 MHz

    Current Speed: 2000 MHz

    Status: Populated, Enabled

    Upgrade: Other

    L1 Cache Handle: 0x0041

    L2 Cache Handle: 0x0043

    L3 Cache Handle: 0x0000

    Serial Number: CPU Serial#

    Asset Tag: CPU Asset Tag#

    Part Number: CN88xx

    Core Count: 48

    Core Enabled: 48

    Characteristics:

    64-bit capable

    Multi-Core

    Execute Protection

    Enhanced Virtualization

    Power/Performance Control

     

    cat /proc/cpuinfo

    # cat /proc/cpuinfo

    processor       : 0

    BogoMIPS        : 200.00

    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics

    CPU implementer : 0x43

    CPU architecture: 8

    CPU variant     : 0x1

    CPU part        : 0x0a1

    CPU revision    : 1

     

     

    processor       : 1

    BogoMIPS        : 200.00

    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics

    CPU implementer : 0x43

    CPU architecture: 8

    CPU variant     : 0x1

    CPU part        : 0x0a1

    CPU revision    : 1

     

     

    ...

     

    lscpu

    # lscpu

    Architecture:          aarch64

    Byte Order:            Little Endian

    CPU(s):                96

    On-line CPU(s) list:   0-95

    Thread(s) per core:    1

    Core(s) per socket:    48

    Socket(s):             2

    NUMA node(s):          2

    NUMA node0 CPU(s):     0-47

    NUMA node1 CPU(s):     48-95

    smartctl -a /dev/sda | grep "^SATA"

    # smartctl -a /dev/sda | grep "^SATA"

    SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)

     

    cat /proc/meminfo

    # cat /proc/meminfo

    MemTotal:       66866880 kB

    MemFree:        54458176 kB

    MemAvailable:   63428416 kB

    Buffers:            1408 kB

    Cached:          8403392 kB

    SwapCached:        55040 kB

    Active:          6449152 kB

    Inactive:        2817408 kB

    Active(anon):     663424 kB

    Inactive(anon):   235520 kB

    Active(file):    5785728 kB

    Inactive(file):  2581888 kB

    Unevictable:           0 kB

    Mlocked:               0 kB

    SwapTotal:      33489856 kB

    SwapFree:       33243712 kB

    Dirty:               128 kB

    Writeback:             0 kB

    AnonPages:        827136 kB

    Mapped:            64192 kB

    Shmem:             36288 kB

    Slab:            2160960 kB

    SReclaimable:     847424 kB

    SUnreclaim:      1313536 kB

    KernelStack:       18560 kB

    PageTables:        12160 kB

    NFS_Unstable:          0 kB

    Bounce:                0 kB

    WritebackTmp:          0 kB

    CommitLimit:    66923264 kB

    Committed_AS:    3840576 kB

    VmallocTotal:   2142764992 kB

    VmallocUsed:           0 kB

    VmallocChunk:          0 kB

    CmaTotal:         524288 kB

    CmaFree:          412224 kB

    HugePages_Total:       0

    HugePages_Free:        0

    HugePages_Rsvd:        0

    HugePages_Surp:        0

    Hugepagesize:     524288 kB

     

    dmidecode --type 17

    # dmidecode --type 17

    # dmidecode 3.0

    Getting SMBIOS data from sysfs.

    SMBIOS 3.0.0 present.

     

    Handle 0x0034, DMI type 17, 40 bytes

    Memory Device

    Array Handle: 0x0032

    Error Information Handle: Not Provided

    Total Width: 72 bits

    Data Width: 64 bits

    Size: 8192 MB

    Form Factor: DIMM

    Set: Unknown

    Locator: DIMM_P0_A0

    Bank Locator: P0_Node0_Channel0_Dimm0

    Type: DDR4

    Type Detail: Registered (Buffered)

    Speed: 2400 MHz

    Manufacturer: Micron Crucial

    Serial Number: 1336171D

    Asset Tag: DIMM_P0_A0_AssetTag

    Part Number: 18ASF1G72PZ-2G3B1  

    Rank: 1

    Configured Clock Speed: 2100 MHz

    Minimum Voltage: Unknown

    Maximum Voltage: Unknown

    Configured Voltage: Unknown

     

    Handle 0x0036, DMI type 17, 40 bytes

    Memory Device

    Array Handle: 0x0032

    Error Information Handle: Not Provided

    Total Width: 72 bits

    Data Width: 64 bits

    Size: No Module Installed

    Form Factor: Unknown

    Set: Unknown

    Locator: DIMM_P0_A1

    Bank Locator: P0_Node0_Channel0_Dimm1

    Type: DDR4

    Type Detail: Unknown

    Speed: Unknown

    Manufacturer: NO DIMM

    Serial Number: NO DIMM

    Asset Tag: NO DIMM

    Part Number: NO DIMM

    Rank: Unknown

    Configured Clock Speed: Unknown

    Minimum Voltage: Unknown

    Maximum Voltage: Unknown

    Configured Voltage: Unknown

     

    ...