• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How to get the hardware model information in Linux

    In my last article I had shared the commands to check the firmware and driver version of the ethernet card of your Linux box and also to check if the Linux machine you are working on is physical or virtual.

    The below commands are executed in SuSE Enterprise Linux so some of them might not work on other flavors of Linux.

    Run the below command and scroll a few lines where you should be able to see your machine's hardware model as shown below
    # dmesg | less
    (Scroll few lines and you should be able to find the hardware model)
    [    0.000000] DMI: HP ProLiant BL460c Gen9, BIOS I36 07/11/2014

    or you can execute the below command

    # dmesg | grep -i DMI
    [    0.000000] DMI 2.8 present.
    [    0.000000] DMI: HP ProLiant BL460c Gen9, BIOS I36 07/11/2014

    The below command will give you more information about your hardware including the model details
    # dmidecode -t system
    # dmidecode 2.12
    SMBIOS 2.8 present.

    Handle 0x0009, DMI type 1, 27 bytes
    System Information
            Manufacturer: HP
            Product Name: ProLiant BL460c Gen9
            Version: Not Specified
            Serial Number: SGH451XFL8
            UUID: 37373633-3230-5347-4834-353158464C38
            Wake-up Type: Power Switch
            SKU Number: 776320-B21
            Family: ProLiant

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

    You can alternatively also use 'hwinfo' command but the execution might take a while as it will collect all the information with regards to your hardware and then will dump the requested detail to STDOUT
    # hwinfo | egrep   "system.hardware.vendor|system.hardware.product"
      system.hardware.vendor = 'HP'
      system.hardware.product = 'ProLiant BL460c Gen9'

    I hope the article was useful.

    How to get the hardware model information in Linux How to get the hardware model information in Linux Reviewed by admin on Monday, October 26, 2015 Rating: 5

    No comments:

    Powered by Blogger.