Quantcast
Channel: GoLinuxHub
Viewing all articles
Browse latest Browse all 392

How to get the hardware model information in Linux

$
0
0
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'


Follow the below links for more tutorials

How to find the path of any command in Linux
How to configure a Clustered Samba share using ctdb in Red Hat Cluster
How to delete an iscsi-target from openfiler and Linux
How to perform a local ssh port forwarding in Linux
How to use yum locally without internet connection using cache?
What is umask and how to change the default value permanently?
Understanding Partition Scheme MBR vs GPT
How does a successful or failed login process works in Linux
How to find all the process accessing a file in Linux
How to exclude multiple directories from du command in Linux
How to configure autofs in Linux and what are its advantages?
How to resize software raid partition in Linux
How to configure Software RAID 1 mirroring in Linux
How to prevent a command from getting stored in history in Linux

Viewing all articles
Browse latest Browse all 392

Latest Images

Trending Articles



Latest Images