Nas mais diversas situações, me deparei com a necessidade de obter informações sobre o meu notebook e/ou um determinado equipamento. Então fica a dica neste post de alguns comando no terminal do Linux.
# dmidecode -t 1 dmidecode 2.12 SMBIOS entry point at 0x9cebef98 SMBIOS 2.7 present.Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: LENOVO Product Name: 20349 Version: Lenovo Y50-70 Touch Serial Number: 3575483501912 UUID: CB654041-3471-E411-B2A0-F0761C27B1DF Wake-up Type: Power Switch SKU Number: LENOVO_MT_20349_BU_idea_FM_Lenovo Y50-70 Touch Family: IDEAPAD
Modelo do processador:
# dmidecode -t 4| grep CPU Version: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz
Memória:
#dmidecode -t 17 # dmidecode 2.12 # SMBIOS entry point at 0x9cebef98 SMBIOS 2.7 present.
Handle 0x002B, DMI type 17, 34 bytes Memory Device Array Handle: 0x002A Error Information Handle: 0x002F Total Width: 64 bits Data Width: 64 bits Size: 8192 MB Form Factor: SODIMM Set: None Locator: DIMM0 Bank Locator: BANK 0 Type: DDR3 Type Detail: Synchronous Speed: 1600 MHz Manufacturer: Unknown Serial Number: 00000000 Asset Tag: Unknown Part Number: Rank: 2 Configured Clock Speed: 1600 MHz
Resumidamente utiliza-se o comando dmidecode com direito de root precedido do parâmetro desejado conforme a tabelo:
0 BIOS 1 System 2 Base Board 3 Chassis 4 Processor 5 Memory Controller 6 Memory Module 7 Cache 8 Port Connector 9 System Slots 10 On Board Devices 11 OEM Strings 12 System Configuration Options 13 BIOS Language 14 Group Associations 15 System Event Log 16 Physical Memory Array 17 Memory Device 18 32-bit Memory Error 19 Memory Array Mapped Address 20 Memory Device Mapped Address 21 Built-in Pointing Device 22 Portable Battery 23 System Reset 24 Hardware Security 25 System Power Controls 26 Voltage Probe 27 Cooling Device 28 Temperature Probe 29 Electrical Current Probe 30 Out-of-band Remote Access 31 Boot Integrity Services 32 System Boot 33 64-bit Memory Error 34 Management Device 35 Management Device Component 36 Management Device Threshold Data 37 Memory Channel 38 IPMI Device 39 Power Supply