View hardware information under Linux (MAC,IP address, HDD model, serial number, etc.)

Source: Internet
Author: User

First, check the network card MAC address

#安装lshw

[email protected] ~]# Yum install LSHW

#使用方法

[[email protected] ~]# lshw-c network *-network:0 description:ethernet Interface Produc T:netxtreme II BCM5709 Gigabit Ethernet vendor:broadcom Limited physical id:0 Bus info: [email p       rotected]:02:00.0 logical name:enp2s0f0 version:20 SERIAL:00:26:55:31:A9:DC size:1gbit/s capacity:1gbit/s width:64 bits Clock:33mhz capabilities:pm vpd msi msix pciexpress bus_master cap_l IST Ethernet Physical TP 10BT 10BT-FD 100BT 100bt-fd 1000bt-fd autonegotiation configuration:autonegotiation=on bro Adcast=yes driver=bnx2 driverversion=2.2.6 duplex=full firmware=bc 4.6.4 NCSI 1.0.3 latency=0 link=yes multicast=yes Port =twisted pair speed=1gbit/s resources:irq:16 memory:f4000000-f5ffffff *-network:1 description:ethernet inte  Rface product:netxtreme II BCM5709 Gigabit Ethernet vendor:broadcom Limited physical id:0.1 Bus Info: [Email protected]:02:00.1 logical name:enp2s0f1 version:20 serial:00:26:55:31:a9:de size:1gbit/s Capa city:1gbit/s width:64 bits Clock:33mhz capabilities:pm vpd msi msix pciexpress bus_master cap_list E Thernet physical TP 10BT 10bt-fd 100BT 100bt-fd 1000bt-fd autonegotiation configuration:autonegotiation=on Broadcas T=yes driver=bnx2 driverversion=2.2.6 duplex=full firmware=bc 4.6.4 NCSI 1.0.3 ip=10.0.100.85 latency=0 link=yes Multicas T=yes port=twisted pair speed=1gbit/s resources:irq:17 memory:f2000000-f3ffffff *-network:0 description:eth       Ernet interface Product:netxtreme II BCM5709 Gigabit Ethernet vendor:broadcom Limited Physical id:0 Bus info: [email protected]:03:00.0 logical name:enp3s0f0 version:20 serial:00:26:55:31:a9:  E0 size:1gbit/s capacity:1gbit/s width:64 bits clock:33mhz capabilities:pm vpd msi Msix PCIExpress Bus_master CAP_list Ethernet Physical TP 10BT 10BT-FD 100BT 100bt-fd 1000bt-fd autonegotiation configuration:autonegotiation=on Broadcast=yes driver=bnx2 driverversion=2.2.6 duplex=full firmware=bc 4.6.4 latency=0 link=yes multicast=yes port= Twisted pair speed=1gbit/s resources:irq:18 memory:f8000000-f9ffffff *-network:1 description:ethernet Inter Face Product:netxtreme II BCM5709 Gigabit Ethernet vendor:broadcom Limited physical id:0.1 Bus       Info: [email protected]:03:00.1 logical Name:enp3s0f1 version:20 serial:00:26:55:31:a9:e2 capacity:1gbit/s width:64 bits Clock:33mhz capabilities:pm vpd msi msix pciexpress bus_master Cap_li St Ethernet physical TP 10BT 10BT-FD 100BT 100bt-fd 1000bt-fd autonegotiation configuration:autonegotiation=on Broa Dcast=yes driver=bnx2 driverversion=2.2.6 firmware=bc 4.6.4 latency=0 link=no multicast=yes port=twisted pair Resour Ces:irq:19 memory:f6000000-f7ffFfff 

Second, view the hard disk

#安装 Smartmontools

Yum Install Smartmontools-y

#使用方法

[Email protected] ~]# smartctl-a/dev/sdasmartctl 6.2 2017-02-27 r4394 [x86_64-linux-3.10.0-514.26.2.el7.x86_64] ( Local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org=== START of information section = = =vendor:               hpproduct:              LOGICAL volumerevision:             2.74User Capacity:        384,005,660,672 bytes [384 GB] Logical block Size:   bytesrotation rate:        15000 rpmlogical Unit ID:      0x600508b1001030393636354543300b00 Serial Number:        50123456789ABCDEDevice type:          disklocal time is:        Wed Nov  8 16:10:00 2017 Cstsmart support was:     Unavailable-device lacks smart capability.=== START of READ Smart DATA Section ===error Counte R Logging not Supporteddevice does not support self Test logging

#加-C parameter

[Email protected] ~]# smartctl-x/dev/sdasmartctl 6.2 2017-02-27 r4394 [x86_64-linux-3.10.0-514.26.2.el7.x86_64] ( Local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org=== START of information section = = =vendor:hpproduct:logical Volumerevision:2.74user capacity:384,005,660,6 bytes [384 gb]logical block size:512 bytesrotation rate:15000 rpmlogical Unit id:0x600508b100103039363 6354543300b00serial number:50123456789abcdedevice type:disklocal Time is:wed Nov 8 16:12:07 201 7 Cstsmart support Is:unavailable-device lacks SMART capability. Read Cache Is:enabledwriteback Cache is:disabled=== START of read SMART DATA section ===error Counter logging n OT Supporteddevice does not support self Test loggingdevice does not support Background scan results LOGGINGSCSIPRINTSASPH Y Log Sense Failed [unsupported SCSI opcode]

  

View hardware information under Linux (MAC,IP address, HDD model, serial number, etc.)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.