Podaci o RHEL6U2 serveru i CentOS 6 mašini

Kako iz komandne linije dobiti hardverske podatke o serveru (mrak u sistem sali, server visoko, ne može se pročitati!).
Za to se koristi komanda dmidecode (zgodan link) :
# dmidecode -t system
# dmidecode 2.11
SMBIOS 2.4 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: XXXXXXXXXXXXX
Product Name: PRIMERGY XXXXX YY
Version: GS01
Serial Number: XXXXXXXXXXX
UUID: 00000000-0000-0000-0000-000XXXXXX
Wake-up Type: Power Switch
SKU Number: ABN:XXXXX-V101-1
Family: SERVER

Handle 0x0021, DMI type 12, 5 bytes
System Configuration Options
Option 1: DIP1 ON: BIOS Recovery
Option 2: DIP2 ON: Password Skip
Option 3: DIP3 ON: BIOS Write Protect
Option 4: DIP4 ON: CMOS Default

Handle 0x003C, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected

Ili kraća verzija :
# dmidecode -t 1 | grep -e ‘Manufacturer’ -e ‘Product Name’ -e ‘Serial Number’ | cut -f 2
Manufacturer: XXXXXXXXXXXX
Product Name: XXXXXXXXX YYYYY
Serial Number: XXXXXXXXXXX

Ako dmidecode ne postoji na sistemu, može se instalirati sa “yum” komandom, za RHEL verzije 5 i na dalje.

A ako specifično imate problema sa CPU-ovima (jeli jedan CPU, ili jedan ali dual core) :
# nproc
2
ovo je komanda koja pokazuje “the number of processing units available”, dakle ovde 2.
Ako top komanda pokazuje 1CPU, znači, jedno gnezdo, dual core CPU 😉
Detaljniji info :
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 26
Stepping: 5
CPU MHz: 2926.000
BogoMIPS: 5852.00
Hypervisor vendor: VMware
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0,1
Još više podataka (pomalo nepotrebno mnogo):
# less /prc/cpuinfo
…..
**********************************************
CentOS 6 :
CPU podaci : # less /proc/cpuinfo
Podaci o verziji kernela : # uname -a

This entry was posted in Linux and tagged , , , . Bookmark the permalink.

Comments are closed.