Tuesday, April 27, 2010

Getting Linux System Information

From the Linux Magazine I found a wonderful article about getting the hardware system information.

Linux System Information Decoded

There are two commands that can be run using sudo (Ubuntu), dmidecode and biosdecode.

biosdecode

There is a good man page on the command.  I pulled the following info from the man page.

       * SMBIOS (System Management BIOS)
         Use dmidecode for a more detailed output.

       · DMI (Desktop Management Interface, a legacy version of SMBIOS)
         Use dmidecode for a more detailed output.

       · SYSID

       · PNP (Plug and Play)

       · ACPI (Advanced Configuration and Power Interface)

       · BIOS32 (BIOS32 Service Directory)

       · PIR (PCI IRQ Routing)

       · 32OS (BIOS32 Extension, Compaq-specific)
         See ownership for a Compaq ownership tag retrieval tool.

       · SNY (Sony-specific, not decoded)

       · VPD (Vital Product Data, IBM-specific)
         Use vpddecode for a more detailed output.

       · FJKEYINF (Application Panel, Fujitsu-specific)

The information for my HP laptop is as follows:
# biosdecode 2.9
ACPI 2.0 present.
    OEM Identifier: HP   
    RSD Table 32-bit Address: 0xBFED5AC7
    XSD Table 64-bit Address: 0x00000000BFED5B17
SMBIOS 2.4 present.
    Structure Table Length: 731 bytes
    Structure Table Address: 0x000DC010
    Number Of Structures: 19
    Maximum Structure Size: 121 bytes
BIOS32 Service Directory present.
    Revision: 0
    Calling Interface Address: 0x000FDC10
PNP BIOS 1.0 present.
    Event Notification: Not Supported
    Real Mode 16-bit Code Address: E73F:9F8D
    Real Mode 16-bit Data Address: 0040:0000
    16-bit Protected Mode Code Address: 0x000FC3E8
    16-bit Protected Mode Data Address: 0x00000400

dmidecode
There is a good man page on this one also.

The following information is for my HP laptop:

SMBIOS 2.4 present.
19 structures occupying 731 bytes.
Table at 0x000DC010.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
    Vendor: Hewlett-Packard
    Version: F.52    
    Release Date: 03/24/2008
    Address: 0xE6F30
    Runtime Size: 102608 bytes
    ROM Size: 1024 kB
    Characteristics:
        ISA is supported
        PCI is supported
        PNP is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        ESCD support is available
        Boot from CD is supported
        Selectable boot is supported
        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)
        ACPI is supported
        USB legacy is supported
        AGP is supported
        Smart battery is supported
        BIOS boot specification is supported
        Targeted content distribution is supported

Handle 0x0001, DMI type 1, 27 bytes
System Information
    Manufacturer: Hewlett-Packard
    Product Name: HP Pavilion dv9700 Notebook PC   
    Version: Rev 1
    Serial Number: CNF8174BCW
    UUID: 434E4638-3137-3442-4357-001E685F55DF
    Wake-up Type: Power Switch
    SKU Number: GP236AV    
    Family: 103C_5335KV

Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
    Manufacturer: Quanta
    Product Name: 30CB
    Version: 79.29
    Serial Number: None

Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
    Manufacturer: Quanta
    Type: Notebook
    Lock: Not Present
    Version: N/A
    Serial Number: None
    Asset Tag:                    
    Boot-up State: Safe
    Power Supply State: Safe
    Thermal State: Safe
    Security Status: None
    OEM Information: 0x00000104

Handle 0x0004, DMI type 4, 35 bytes
Processor Information
    Socket Designation: U2E1
    Type: Central Processor
    Family: <OUT OF SPEC>
    Manufacturer: Intel
    ID: 76 06 01 00 FF FB EB BF
    Version: Intel(R) Core(TM)2 Duo CPU T8300
    Voltage: 3.3 V
    External Clock: 800 MHz
    Max Speed: 2400 MHz
    Current Speed: 2400 MHz
    Status: Populated, Enabled
    Upgrade: Socket 478
    L1 Cache Handle: 0x0005
    L2 Cache Handle: 0x0006
    L3 Cache Handle: Not Provided
    Serial Number: Not Specified
    Asset Tag: Not Specified
    Part Number: Not Specified

Handle 0x0005, DMI type 7, 19 bytes
Cache Information
    Socket Designation: L1 Cache
    Configuration: Enabled, Socketed, Level 1
    Operational Mode: Write Back
    Location: Internal
    Installed Size: 64 KB
    Maximum Size: 64 KB
    Supported SRAM Types:
        Burst
        Pipeline Burst
        Asynchronous
    Installed SRAM Type: Asynchronous
    Speed: Unknown
    Error Correction Type: Unknown
    System Type: Unknown
    Associativity: Unknown

Handle 0x0006, DMI type 7, 19 bytes
Cache Information
    Socket Designation: L2 Cache
    Configuration: Enabled, Socketed, Level 2
    Operational Mode: Write Back
    Location: External
    Installed Size: 3072 KB
    Maximum Size: 3072 KB
    Supported SRAM Types:
        Burst
        Pipeline Burst
        Asynchronous
    Installed SRAM Type: Burst
    Speed: Unknown
    Error Correction Type: Unknown
    System Type: Unknown
    Associativity: Unknown

Handle 0x0007, DMI type 9, 13 bytes
System Slot Information
    Designation: PCI Express Slot 1
    Type: 64-bit PCI Express
    Current Usage: Available
    Length: Long
    ID: 0
    Characteristics:
        5.0 V is provided
        3.3 V is provided

Handle 0x0008, DMI type 9, 13 bytes
System Slot Information
    Designation: PCI Express Slot 2
    Type: 64-bit PCI Express
    Current Usage: Available
    Length: Long
    ID: 0
    Characteristics:
        5.0 V is provided
        3.3 V is provided
        PME signal is supported
        Hot-plug devices are supported

Handle 0x0009, DMI type 9, 13 bytes
System Slot Information
    Designation: PCI Express Slot 6
    Type: 64-bit PCI Express
    Current Usage: Available
    Length: Long
    ID: 0
    Characteristics:
        5.0 V is provided
        3.3 V is provided
        PME signal is supported

Handle 0x000A, DMI type 10, 6 bytes
On Board Device Information
    Type: Video
    Status: Enabled
    Description:   

Handle 0x000B, DMI type 11, 5 bytes
OEM Strings
    String 1: $HP$
    String 2: LOC#ABA
    String 3: ABS 70/71 79 7A 7B 7C

Handle 0x000C, DMI type 16, 15 bytes
Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: None
    Maximum Capacity: 4 GB
    Error Information Handle: Not Provided
    Number Of Devices: 2

Handle 0x000D, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x000C
    Error Information Handle: No Error
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 2048 MB
    Form Factor: DIMM
    Set: 1
    Locator: DIMM 1
    Bank Locator: Bank 0,1
    Type: DDR2
    Type Detail: Synchronous
    Speed: 667 MHz (1.5 ns)
    Manufacturer: Not Specified
    Serial Number: Not Specified
    Asset Tag: Not Specified
    Part Number: Not Specified

Handle 0x000E, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x000C
    Error Information Handle: No Error
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 2048 MB
    Form Factor: DIMM
    Set: 1
    Locator: DIMM 2
    Bank Locator: Bank 2,3
    Type: DDR2
    Type Detail: Synchronous
    Speed: 667 MHz (1.5 ns)
    Manufacturer: Not Specified
    Serial Number: Not Specified
    Asset Tag: Not Specified
    Part Number: Not Specified

Handle 0x000F, DMI type 19, 15 bytes
Memory Array Mapped Address
    Starting Address: 0x00000000000
    Ending Address: 0x000FFFFFFFF
    Range Size: 4 GB
    Physical Array Handle: 0x000C
    Partition Width: 0

Handle 0x0010, DMI type 20, 19 bytes
Memory Device Mapped Address
    Starting Address: 0x00000000000
    Ending Address: 0x0007FFFFFFF
    Range Size: 2 GB
    Physical Device Handle: 0x000D
    Memory Array Mapped Address Handle: 0x000F
    Partition Row Position: 2
    Interleave Position: 2
    Interleaved Data Depth: 2

Handle 0x0011, DMI type 32, 20 bytes
System Boot Information
    Status: <OUT OF SPEC>

Handle 0x0012, DMI type 127, 4 bytes
End Of Table

No comments: