查看所有设备 lsdev
Device DMA IRQ I/O Ports ------------------------------------------------ 0000:00:1d.0 2200-221f 0000:00:1d.1 2600-261f 0000:00:1d.2 2a00-2a1f 0000:00:1d.3 2e00-2e1f 0000:00:1f.2 0480-048f 0000:00:1f.3 0440-045f 0000:01:06.0 4000-40ff 0000:04:00.0 5000-50ff 0000:07:00.0 6000-60ff 0000:07:00.1 6100-61ff aacraid 169 acpi 9 ACPI 0580-0583 0584-0585 0588-058b 0590-0595 05a8-05af cascade 4 dma 0080-008f dma1 0000-001f dma2 00c0-00df ehci_hcd:usb5 90 fpu 00f0-00ff i801_smbus 0440-045f ide1 15 0170-0177 0376-0376 keyboard 0060-006f libata 14 01f0-01f7 0480-048f lpfc 106 114 6000-60ff 6100-61ff PCI 3000-4fff 5000-5fff 6000-6fff 7000-ffff PCI-MSI eth0 130 PCI-MSI eth1 138 pic1 0020-0021 pic2 00a0-00a1 pnp 0400-043f 0520-053f 0540-0547 rtc 8 0070-0077 serial 03f8-03ff timer 0 timer0 0040-0043 timer1 0050-0053 uhci_hcd 2200-221f 2600-261f 2a00-2a1f 2e00-2e1f uhci_hcd:usb4 98 vga+ 03c0-03df
查看pci设备 lspci
00:00.0 Host bridge: Intel Corporation 5000P Chipset Memory Controller Hub (rev b1) 00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 2 (rev b1) 00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev b1) 00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 4-5 (rev b1) 00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev b1) 00:06.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 6-7 (rev b1) 00:07.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 7 (rev b1) 00:08.0 System peripheral: Intel Corporation 5000 Series Chipset DMA Engine (rev b1) 00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1) 00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1) 00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1) 00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1) 00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1) 00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1) 00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1) 00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09) 00:1c.1 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 2 (rev 09) 00:1d.0 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09) 00:1d.1 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09) 00:1d.2 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09) 00:1d.3 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09) 00:1d.7 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9) 00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09) 00:1f.2 IDE interface: Intel Corporation 631xESB/632xESB/3100 Chipset SATA Storage Controller IDE (rev 09) 00:1f.3 SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus Controller (rev 09) 01:06.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02) 02:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c2) 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 11) 04:00.0 RAID bus controller: Adaptec AAC-RAID (Rocket) (rev 02) 05:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c2) 06:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 11) 07:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02) 07:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02) 1a:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01) 1a:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01) 1b:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01) 1b:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)
查看usb设备 lsusb
Bus 001 Device 001: ID 0000:0000 Bus 001 Device 004: ID 0624:0366 Avocent Corp. Bus 005 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000
查看scsi设备 lsscsi
[0:0:0:0] disk ServeRA Drive 1 V1.0 /dev/sda
查看所有磁盘 fdisk -l
Disk /dev/sda: 73.2 GB, 73284976640 bytes 255 heads, 63 sectors/track, 8909 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 6 48163+ 83 Linux /dev/sda2 7 8778 70461090 83 Linux /dev/sda3 8779 8909 1052257+ 82 Linux swap / Solaris
parted /dev/sda print #显示分区表
Model: ServeRA Drive 1 (scsi) Disk /dev/sda: 73.3GB Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags 1 32.3kB 49.4MB 49.3MB primary ext3 boot 2 49.4MB 72.2GB 72.2GB primary ext3 3 72.2GB 73.3GB 1078MB primary linux-swap
检测硬件
kudzu检测硬件 kudzu --probe --bus=BUS kudzu --probe --class=CLASS
ddcprobe检测声卡和显卡 ddcprobe
BIOS信息
biosdecode #查询BIOS信息
# biosdecode 2.7 BIOS32 Service Directory present. Revision: 0 Calling Interface Address: 0x000FD831 SMBIOS 2.4 present. Structure Table Length: 5060 bytes Structure Table Address: 0xBFFCEAC0 Number Of Structures: 112 Maximum Structure Size: 361 bytes PNP BIOS 1.0 present. Event Notification: Not Supported Real Mode 16-bit Code Address: F000:878F Real Mode 16-bit Data Address: F000:0000 16-bit Protected Mode Code Address: 0x000F8794 16-bit Protected Mode Data Address: 0x000F0000 ACPI 2.0 present. OEM Identifier: IBM RSD Table 32-bit Address: 0xBFFCEA40 XSD Table 64-bit Address: 0x00000000BFFCE9C0 SYSID present. Revision: 0 Structure Table Address: 0x000FFF81 Number Of Structures: 1 VPD present. BIOS Build ID: GGE129BUS Box Serial Number: 99M1566 Motherboard Serial Number: #A123456789 Machine Type/Model: 7979Q7Z BIOS Release Date: 04/04/07 Default Flash Image File Name: $0064000.FLS
dmidecode #查询管理BIOS信息,很长,省略
vpddecode #查询IBM机器的产品信息,保修时有用
# vpddecode 2.7 BIOS Build ID: GGE129BUS Product Name: Unknown, please report! Box Serial Number: 99M1566 Motherboard Serial Number: #A123456789 Machine Type/Model: 7979Q7Z BIOS Release Date: 04/04/07 Default Flash Image File Name: $0064000.FLS
HAL硬件抽象层
lshal查看所有硬件抽象信息
CPU信息
cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 1998.000 cache size : 4096 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm bogomips : 4658.31 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 1998.000 cache size : 4096 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm bogomips : 4654.99 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 1998.000 cache size : 4096 KB physical id : 0 siblings : 4 core id : 2 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm bogomips : 4655.00 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 1998.000 cache size : 4096 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm bogomips : 4655.00 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
上面是一个四核intel cpu的信息,processor是逻辑CPU ID,physical id是物理CPU ID,core id是多核CPU中核的ID,cpu cores是这个CPU上的核的数量。
|