Identificar el fabricante de un sistema en Linux
Mediante el uso de dmidecode y lspci podemos identificar fácilmente el fabricante de un sistema. Vamos a ver unos ejemplos con maquinas HP y Dell.
Mediante el uso del parámetro -t podemos indicar al dmidecode que información queremos ver. Por ejemplo mediante system podemos ver información relativa al sistema. En el caso de un Dell PowerEdge 1950 veriamos algo similar a lo siguiente:
# dmidecode -t system
# dmidecode 2.7
SMBIOS 2.5 present.
Handle 0x0100, DMI type 1, 27 bytes.
System Information
Manufacturer: Dell Inc.
Product Name: PowerEdge 1950
Version: Not Specified
Serial Number: C433M5J
UUID: 11151C1C-3100-4067-8052-D2D01F1C221B
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified
Handle 0x0C00, DMI type 12, 5 bytes.
System Configuration Options
Option 1: NVRAM_CLR: Clear user settable NVRAM areas and set defaults
Option 2: PWRD_EN: Close to enable password
Handle 0x2000, DMI type 32, 11 bytes.
System Boot Information
Status: No errors detected
Como vemos, también podemos obtener el Serial Number del sistema sin tener que instalar el software de Dell y todos sus daemons. En el caso de un Dell R200 veríamos lo siguiente:
# dmidecode -t 1
# dmidecode 2.7
SMBIOS 2.5 present.
Handle 0x0100, DMI type 1, 27 bytes.
System Information
Manufacturer: Dell Inc.
Product Name: PowerEdge R200
Version: Not Specified
Serial Number: 2WWMM8J
UUID: 11151C1C-3300-444D-8099-B2C04F44344A
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified
Mediante lspci también podemos ver si se trata de un sistema Dell por la controladora LSI que llevan:
# lspci | grep LSI 01:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)
En el caso de sistemas HP también podemos ver mediante dmidecode el Serial Number y el fabricante. Por ejemplo, en un HP DL360 G4 veríamos lo siguiente:
Handle 0x0100
DMI type 1, 25 bytes.
System Information
Manufacturer: HP
Product Name: ProLiant DL360 G4
Version: Not Specified
Serial Number: XXX5XX033X
UUID: 33363831-3334-4742-4A35-323230333350
Wake-up Type: Power Switch
También podemos saber si el sistema es HP por la presencia de la iLO o la controladora Smart Array usando lspci:
# /sbin/lspci | grep Compaq 01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 01) 01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out Processor (rev 01) 02:01.0 RAID bus controller: Compaq Computer Corporation Smart Array 64xx (rev 01)
Relacionados
Imprimir
30. July 2010 at 2:56 pm :
Pero esto no funciona con otras maquinas lo probe con una SuperMicro y otras con placas Intel y no muestra mas que esto:
[root@syslog-serv ~]# dmidecode -t system # dmidecode 2.10 SMBIOS 2.5 present. Handle 0x0005, DMI type 1, 27 bytes System Information Manufacturer: Product Name: Version: Serial Number: UUID: 57CF5862-5680-11DC-9B71-001676CBD502 Wake-up Type: Power Switch SKU Number: Not Specified Family: Not Specified Handle 0x001B, DMI type 32, 20 bytes System Boot Information Status: No errors detectedHubiese sido genial que funcionara en general.
30. July 2010 at 3:01 pm :
Esto es cosa del fabricante, prueba a ver si lo encuentras en algún otro sitio con:
En algunos equipos Dell no esta en la sección de system pero si por algún otro sitio, prueba a ver