Dmidecode: Diferència entre les revisions
De Guifi.net - Wiki Català
(→Fer inventari) |
Al (Discussió | contribucions) m (1 revisió) |
(Cap diferència)
|
Revisió de 21:27, 13 nov 2010
Contingut
Descripció
$ sudo apt-cache show dmidecode Package: dmidecode ... Description: Dump Desktop Management Interface data The Desktop Management Interface provides a standardized description of a computer's hardware, including characteristics such as BIOS serial number and hardware connectors. dmidecode provides a dump of the DMI data available from the BIOS. It is used as a back-end tool by other hardware detection programs.
Mostra informació del maquinari.
Instal·lació
$ sudo apt-get install dmidecode
Fitxers:
$ dpkg -L dmidecode /. /usr /usr/sbin /usr/sbin/dmidecode /usr/sbin/biosdecode /usr/sbin/ownership /usr/sbin/vpddecode /usr/share /usr/share/man /usr/share/man/man8 /usr/share/man/man8/ownership.8.gz /usr/share/man/man8/vpddecode.8.gz /usr/share/man/man8/dmidecode.8.gz /usr/share/man/man8/biosdecode.8.gz /usr/share/doc /usr/share/doc/dmidecode /usr/share/doc/dmidecode/changelog.Debian.gz /usr/share/doc/dmidecode/AUTHORS /usr/share/doc/dmidecode/copyright /usr/share/doc/dmidecode/changelog.gz /usr/share/doc/dmidecode/README.gz /usr/share/doc/dmidecode/CHANGELOG.gz
$ dmidecode | more
Informació de la BIOS
$ sudo dmidecode | more
BIOS Information Vendor: Phoenix Technologies, LTD Version: 6.00 PG Release Date: 12/07/2004 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 512 kB Characteristics: ISA is supported PCI is supported PNP is supported APM is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported BIOS ROM is socketed EDD is supported 5.25"/360 KB floppy services are supported (int 13h) 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 KB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) ACPI is supported USB legacy is supported AGP is supported LS-120 boot is supported ATAPI Zip drive boot is supported
Mostrar informació concreta d'un subsistema
$ sudo dmidecode -t dmidecode: option requires an argument -- 't' Type number or keyword expected Valid type keywords are: bios system baseboard chassis processor memory cache connector slot
Per exemple el processador:
$ sudo dmidecode -t processor # dmidecode 2.9 SMBIOS 2.5 present. Handle 0x0005, DMI type 4, 40 bytes Processor Information Socket Designation: XU1 PROCESSOR Type: Central Processor Family: Pentium 4 Manufacturer: Intel ID: FD 06 00 00 FF FB EB BF Signature: Type 0, Family 6, Model 15, Stepping 13 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (Fast floating-point save and restore) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) SS (Self-snoop) HTT (Hyper-threading technology) TM (Thermal monitor supported) PBE (Pending break enabled) Version: Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz Voltage: 1.2 V External Clock: 800 MHz Max Speed: 6000 MHz Current Speed: 2000 MHz Status: Populated, Enabled Upgrade: Socket LGA775 L1 Cache Handle: 0x0006 L2 Cache Handle: 0x0007 L3 Cache Handle: 0x0008 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 2 Core Enabled: 2 Thread Count: 2 Characteristics:
64-bit capable
Quin tipus de memòria RAM tenim?
$ sudo dmidecode | more ... Handle 0x0006, DMI type 6, 12 bytes Memory Module Information Socket Designation: A0 Bank Connections: 0 1 Current Speed: 10 ns Type: Other Installed Size: 1024 MB (Double-bank Connection) Enabled Size: 1024 MB (Double-bank Connection) Error Status: OK Handle 0x0007, DMI type 6, 12 bytes Memory Module Information Socket Designation: A1 Bank Connections: None Current Speed: 10 ns Type: Other Installed Size: Not Installed Enabled Size: Not Installed Error Status: OK ... Handle 0x0017, DMI type 17, 21 bytes Memory Device Array Handle: 0x0016 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: 1024 MB Form Factor: DIMM Set: None Locator: A0 Bank Locator: Bank0/1 Type: Unknown Type Detail: None Handle 0x0018, DMI type 17, 21 bytes Memory Device Array Handle: 0x0016 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: A1 Bank Locator: Bank2/3 Type: Unknown Type Detail: None
$ sudo dmidecode | grep -n "Form Factor"
Recursos:
Quants ports SATA té una placa mare sense obrir-la?
Executeu dmidecode i conteu quants:
Port Connector Information Internal Reference Designator: SATA2
hi ha.
Exemples
Fer inventari
Exemple extret de fog al fitxer:
/usr/local/fog/lib/funcs.sh
De la imatge initrd.gz
function doInventory() { sysman=`dmidecode -s system-manufacturer`; sysproduct=`dmidecode -s system-product-name`; sysversion=`dmidecode -s system-version`; sysserial=`dmidecode -s system-serial-number`; systype=`dmidecode -t 3 | grep Type:`; biosversion=`dmidecode -s bios-version`; biosvendor=`dmidecode -s bios-vendor`; biosdate=`dmidecode -s bios-release-date`; mbman=`dmidecode -s baseboard-manufacturer`; mbproductname=`dmidecode -s baseboard-product-name`; mbversion=`dmidecode -s baseboard-version`; mbserial=`dmidecode -s baseboard-serial-number`; mbasset=`dmidecode -s baseboard-asset-tag`; cpuman=`dmidecode -s processor-manufacturer`; cpuversion=`dmidecode -s processor-version`; cpucurrent=`dmidecode -t 4 | grep 'Current Speed:' | head -n1`; cpumax=`dmidecode -t 4 | grep 'Max Speed:' | head -n1`; mem=`cat /proc/meminfo | grep MemTotal`; hdinfo=`hdparm -i $hd | grep Model=`; caseman=`dmidecode -s chassis-manufacturer`; casever=`dmidecode -s chassis-version`; caseserial=`dmidecode -s chassis-serial-number`; casesasset=`dmidecode -s chassis-asset-tag`; sysman64=`echo $sysman | base64`; sysproduct64=`echo $sysproduct | base64`; sysversion64=`echo $sysversion | base64`; sysserial64=`echo $sysserial | base64`; systype64=`echo $systype | base64`; biosversion64=`echo $biosversion | base64`; biosvendor64=`echo $biosvendor | base64`; biosdate64=`echo $biosdate | base64`; mbman64=`echo $mbman | base64`; mbproductname64=`echo $mbproductname | base64`; mbversion64=`echo $mbversion | base64`; mbserial64=`echo $mbserial | base64`; mbasset64=`echo $mbasset | base64`; cpuman64=`echo $cpuman | base64`; cpuversion64=`echo $cpuversion | base64`; cpucurrent64=`echo $cpucurrent | base64`; cpumax64=`echo $cpumax | base64`; mem64=`echo $mem | base64`; hdinfo64=`echo $hdinfo | base64`; caseman64=`echo $caseman | base64`; casever64=`echo $casever | base64`; caseserial64=`echo $caseserial | base64`; casesasset64=`echo $casesasset | base64`;