免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4736 | 回复: 11
打印 上一主题 下一主题

求助,怎么通过命令行确认硬件设备的型号? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-14 10:44 |只看该作者 |倒序浏览
20可用积分
有一台IBM的PC Server,型号不明,有root,需要确定其型号,是X366还是别的什么型号?
dmesg里似乎看不出来,还有什么命令可以呢?
请各位帮忙啊。谢谢!

# dmesg
ait feature present.
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
CPU: Physical Processor ID: 4
CPU: After all inits, caps:        bfebf3ff 20000000 00000000 00000080
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#11.
CPU11: Intel P4/Xeon Extended MCE MSRs (24) available
CPU11: Thermal monitoring enabled
CPU11: Intel(R) Xeon(TM) CPU 3.33GHz stepping 08
Booting processor 12/52 eip 3000
CPU 12 irqstacks, hard=c03e4000 soft=c03c4000
Initializing CPU#12
Leaving ESR disabled.
Calibrating delay loop... 6651.90 BogoMIPS (lpj=3325952)
CPU: After generic identify, caps: bfebfbff 20000000 00000000 00000000
CPU: After vendor identify, caps:  bfebfbff 20000000 00000000 00000000
monitor/mwait feature present.
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
CPU: Physical Processor ID: 13
CPU: After all inits, caps:        bfebf3ff 20000000 00000000 00000080
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#12.
CPU12: Intel P4/Xeon Extended MCE MSRs (24) available
CPU12: Thermal monitoring enabled
CPU12: Intel(R) Xeon(TM) CPU 3.33GHz stepping 08
Booting processor 13/53 eip 3000
CPU 13 irqstacks, hard=c03e5000 soft=c03c5000
Initializing CPU#13
Leaving ESR disabled.
Calibrating delay loop... 6651.90 BogoMIPS (lpj=3325952)
CPU: After generic identify, caps: bfebfbff 20000000 00000000 00000000
CPU: After vendor identify, caps:  bfebfbff 20000000 00000000 00000000
monitor/mwait feature present.
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
CPU: Physical Processor ID: 13
CPU: After all inits, caps:        bfebf3ff 20000000 00000000 00000080
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#13.
CPU13: Intel P4/Xeon Extended MCE MSRs (24) available
CPU13: Thermal monitoring enabled
CPU13: Intel(R) Xeon(TM) CPU 3.33GHz stepping 08
Booting processor 14/54 eip 3000
CPU 14 irqstacks, hard=c03e6000 soft=c03c6000
Initializing CPU#14
Leaving ESR disabled.
Calibrating delay loop... 6651.90 BogoMIPS (lpj=3325952)
CPU: After generic identify, caps: bfebfbff 20000000 00000000 00000000
CPU: After vendor identify, caps:  bfebfbff 20000000 00000000 00000000
monitor/mwait feature present.
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
CPU: Physical Processor ID: 13
CPU: After all inits, caps:        bfebf3ff 20000000 00000000 00000080
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#14.
CPU14: Intel P4/Xeon Extended MCE MSRs (24) available
CPU14: Thermal monitoring enabled
CPU14: Intel(R) Xeon(TM) CPU 3.33GHz stepping 08
Booting processor 15/55 eip 3000
CPU 15 irqstacks, hard=c03e7000 soft=c03c7000
Initializing CPU#15
Leaving ESR disabled.
Calibrating delay loop... 6651.90 BogoMIPS (lpj=3325952)
CPU: After generic identify, caps: bfebfbff 20000000 00000000 00000000
CPU: After vendor identify, caps:  bfebfbff 20000000 00000000 00000000
monitor/mwait feature present.
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
CPU: Physical Processor ID: 13
CPU: After all inits, caps:        bfebf3ff 20000000 00000000 00000080
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#15.
CPU15: Intel P4/Xeon Extended MCE MSRs (24) available
CPU15: Thermal monitoring enabled
CPU15: Intel(R) Xeon(TM) CPU 3.33GHz stepping 08
Total of 16 processors activated (106364.92 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 pin1=2 pin2=-1
..MP-BIOS bug: 8254 timer not connected to IO-APIC
...trying to set up timer (IRQ0) through the 8259A ...  failed.
...trying to set up timer as Virtual Wire IRQ... works.
checking TSC synchronization across 16 CPUs: passed.
Brought up 16 CPUs
zapping low mappings.
checking if image is initramfs... it is
Freeing initrd memory: 465k freed
NET: Registered protocol family 16
PCI: PCI BIOS revision 3.00 entry at 0xfd41d, last bus=29
PCI: Using MMCONFIG
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040816
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [VP00] (00:00)
PCI: Probing PCI hardware (bus 00)
PCI: Ignoring BAR0-3 of IDE controller 0000:00:0f.1
ACPI: PCI Interrupt Routing Table [\_SB_.VP00._PRT]
ACPI: PCI Root Bridge [VP01] (00:01)
PCI: Probing PCI hardware (bus 01)
ACPI: PCI Interrupt Routing Table [\_SB_.VP01._PRT]
ACPI: PCI Root Bridge [VP02] (00:02)
PCI: Probing PCI hardware (bus 02)
ACPI: PCI Interrupt Routing Table [\_SB_.VP02._PRT]
ACPI: PCI Root Bridge [VP03] (00:06)
PCI: Probing PCI hardware (bus 06)
ACPI: PCI Interrupt Routing Table [\_SB_.VP03._PRT]
ACPI: PCI Root Bridge [VP04] (00:0a)
PCI: Probing PCI hardware (bus 0a)
PCI: Transparent bridge - 0000:0a:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.VP04._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.VP04.CALG._PRT]
ACPI: PCI Root Bridge [VP05] (00:0f)
PCI: Probing PCI hardware (bus 0f)
PCI: Transparent bridge - 0000:0f:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.VP05._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.VP05.CALG._PRT]
ACPI: PCI Root Bridge [VP06] (00:14)
PCI: Probing PCI hardware (bus 14)
PCI: Transparent bridge - 0000:14:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.VP06._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.VP06.CALG._PRT]
ACPI: PCI Root Bridge [VP07] (00:19)
PCI: Probing PCI hardware (bus 19)
PCI: Transparent bridge - 0000:19:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.VP07._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.VP07.CALG._PRT]
Linux Plug and Play Support v0.97 (c) Adam Belay
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
ACPI: PCI interrupt 0000:00:01.0[A] -> GSI 19 (level, low) -> IRQ 145
ACPI: PCI interrupt 0000:00:03.0[A] -> GSI 23 (level, low) -> IRQ 153
ACPI: PCI interrupt 0000:00:03.1[B] -> GSI 23 (level, low) -> IRQ 153
ACPI: PCI interrupt 0000:00:03.2[C] -> GSI 23 (level, low) -> IRQ 153
ACPI: PCI interrupt 0000:01:01.0[A] -> GSI 27 (level, low) -> IRQ 161
ACPI: PCI interrupt 0000:01:01.1[B] -> GSI 31 (level, low) -> IRQ 169
ACPI: PCI interrupt 0000:01:02.0[A] -> GSI 28 (level, low) -> IRQ 177
IBM machine detected. Enabling interrupts during APM calls.
apm: BIOS not found.
audit: initializing netlink socket (disabled)
audit(1200482238.150:0): initialized
highmem bounce pool size: 64 pages
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux:  Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key E07BC3E85BE30CFD
- User ID: Red Hat, Inc. (Kernel Module GPG key)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
vesafb: probe of vesafb0 failed with error -6
ACPI: Processor [CP00] (supports C1)
ACPI: Processor [CP01] (supports C1)
ACPI: Processor [CP02] (supports C1)
ACPI: Processor [CP03] (supports C1)
ACPI: Processor [CP04] (supports C1)
ACPI: Processor [CP05] (supports C1)
ACPI: Processor [CP06] (supports C1)
ACPI: Processor [CP07] (supports C1)
ACPI: Processor [CP08] (supports C1)
ACPI: Processor [CP09] (supports C1)
ACPI: Processor [CP0A] (supports C1)
ACPI: Processor [CP0B] (supports C1)
ACPI: Processor [CP0C] (supports C1)
ACPI: Processor [CP0D] (supports C1)
ACPI: Processor [CP0E] (supports C1)
ACPI: Processor [CP0F] (supports C1)
Real Time Clock Driver v1.12
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected a Serverworks chipset but could not find the secondary device.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
divert: not allocating divert_blk for non-ethernet device lo
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SvrWks CSB6: IDE controller at PCI slot 0000:00:0f.1
SvrWks CSB6: chipset revision 160
SvrWks CSB6: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x0700-0x0707, BIOS settings: hdaMA, hdbMA
SvrWks CSB6: simplex device: DMA disabled
ide1: SvrWks CSB6 Bus-Master DMA disabled (BIOS)
Probing IDE interface ide0...
hda: UJDA770 DVD/CDRW, ATAPI CD/DVD-ROM drive
Using cfq io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
ide1: Wait for ready failed before probe !
Probing IDE interface ide1...
ide1: Wait for ready failed before probe !
Probing IDE interface ide2...
ide2: Wait for ready failed before probe !
Probing IDE interface ide3...
ide3: Wait for ready failed before probe !
Probing IDE interface ide4...
ide4: Wait for ready failed before probe !
Probing IDE interface ide5...
ide5: Wait for ready failed before probe !
hda: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 131072 buckets, 2048Kbytes
TCP: Hash tables configured (established 262144 bind 43690)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S5)
ACPI wakeup devices:

Freeing unused kernel memory: 172k freed
SCSI subsystem initialized
aacraid: falsely claims to have parameter commit
Red Hat/Adaptec aacraid driver (1.1.2-lk2 Jan  5 2005)
ACPI: PCI interrupt 0000:01:02.0[A] -> GSI 28 (level, low) -> IRQ 177
AAC0: kernel 5.2.4 build 15411
AAC0: monitor 5.2.4 build 15411
AAC0: bios 5.2.4 build 15411
AAC0: serial 1383d6fafaf001
AAC0: 64bit support enabled.
AAC0: 64 Bit DAC enabled
scsi0 : aacraid
  Vendor: ADAPTEC   Model: RAID RAID10       Rev: V1.0
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 286310400 512-byte hdwr sectors (146591 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
SCSI device sda: drive cache: write through
sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
inserting floppy driver for 2.6.9-5.ELsmp
floppy0: no floppy controllers found
tg3.c:v3.76b (May 7, 2007)
ACPI: PCI interrupt 0000:01:01.0[A] -> GSI 27 (level, low) -> IRQ 161
divert: allocating divert_blk for eth0
eth0: Tigon3 [partno(BCM95704A6) rev 2100 PHY(5704)] (PCIX:66MHz:64-bit) 10/100/1000Base-T Ethernet 00:1a:64:52:01:36
eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] WireSpeed[1] TSOcap[0]
eth0: dma_rwctrl[769f0000] dma_mask[64-bit]
ACPI: PCI interrupt 0000:01:01.1[B] -> GSI 31 (level, low) -> IRQ 169
divert: allocating divert_blk for eth1
eth1: Tigon3 [partno(BCM95704A6) rev 2100 PHY(5704)] (PCIX:66MHz:64-bit) 10/100/1000Base-T Ethernet 00:1a:64:52:01:37
eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[1] TSOcap[1]
eth1: dma_rwctrl[769f0000] dma_mask[64-bit]
ACPI: PCI interrupt 0000:00:03.2[C] -> GSI 23 (level, low) -> IRQ 153
ehci_hcd 0000:00:03.2: EHCI Host Controller
ehci_hcd 0000:00:03.2: irq 153, pci mem f885a000
ehci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:03.2: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ACPI: PCI interrupt 0000:00:03.0[A] -> GSI 23 (level, low) -> IRQ 153
ohci_hcd 0000:00:03.0: OHCI Host Controller
ohci_hcd 0000:00:03.0: irq 153, pci mem f8866000
ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:03.1[B] -> GSI 23 (level, low) -> IRQ 153
ohci_hcd 0000:00:03.1: OHCI Host Controller
ohci_hcd 0000:00:03.1: irq 153, pci mem f8868000
ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
usb 3-1: new full speed USB device using address 2
input: USB HID v1.10 Keyboard [IBM IBM RSA2] on usb-0000:00:03.1-1
input: USB HID v1.10 Mouse [IBM IBM RSA2] on usb-0000:00:03.1-1
hiddev96: USB HID v1.10 Device [IBM IBM RSA2] on usb-0000:00:03.1-1
NET: Registered protocol family 10
Disabled Privacy Extensions on device c0332e60(lo)
IPv6 over IPv4 tunneling driver
divert: not allocating divert_blk for non-ethernet device sit0
drivers/usb/input/hid-input.c: event field not found
ACPI: Power Button (FF) [PWRF]
EXT3 FS on sda1, internal journal
device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm@uk.sistina.com
cdrom: open failed.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 8185076k swap on /dev/sda5.  Priority:-1 extents:1
ip_tables: (C) 2000-2002 Netfilter core team
ip_tables: (C) 2000-2002 Netfilter core team
i2c /dev entries driver
tg3: eth0: Link is up at 1000 Mbps, full duplex.
tg3: eth0: Flow control is off for TX and off for RX.
lp: driver loaded but no devices found
eth0: no IPv6 routers present
input: AT Translated Set 2 keyboard on isa0060/serio0
ohci_hcd 0000:00:03.0: wakeup
usb 2-1: new low speed USB device using address 2
input: USB HID v1.11 Mouse [USB Optical Mouse] on usb-0000:00:03.0-1
ip_tables: (C) 2000-2002 Netfilter core team
tg3: eth0: Link is up at 1000 Mbps, full duplex.
tg3: eth0: Flow control is off for TX and off for RX.
eth0: no IPv6 routers present
ip_tables: (C) 2000-2002 Netfilter core team
tg3: eth0: Link is up at 1000 Mbps, full duplex.
tg3: eth0: Flow control is off for TX and off for RX.
eth0: no IPv6 routers present
usb 2-1: USB disconnect, address 2
tg3: eth0: Link is down.
tg3: eth0: Link is up at 1000 Mbps, full duplex.
tg3: eth0: Flow control is off for TX and off for RX.
tg3: eth0: Link is down.
tg3: eth0: Link is up at 1000 Mbps, full duplex.
tg3: eth0: Flow control is off for TX and off for RX.
usb 3-1: USB disconnect, address 2
usb 1-2: new high speed USB device using address 4
usb 1-2: device not accepting address 4, error -71
usb 3-1: new full speed USB device using address 3
input: USB HID v1.10 Keyboard [IBM IBM RSA2] on usb-0000:00:03.1-1
input: USB HID v1.10 Mouse [IBM IBM RSA2] on usb-0000:00:03.1-1
hiddev96: USB HID v1.10 Device [IBM IBM RSA2] on usb-0000:00:03.1-1
tg3: eth0: Link is down.
tg3: eth0: Link is up at 1000 Mbps, full duplex.
tg3: eth0: Flow control is off for TX and off for RX.
drivers/usb/input/hid-input.c: event field not found
tg3: eth0: Link is down.
tg3: eth0: Link is up at 100 Mbps, full duplex.
tg3: eth0: Flow control is off for TX and off for RX.
[root@AIBAM ~]# dmidecode
# dmidecode 2.2
SMBIOS 2.4 present.
75 structures occupying 4984 bytes.
Table at 0xBFF76380.
Segmentation fault
You have new mail in /var/spool/mail/root

最佳答案

查看完整内容

通过dmesg当然看不到整机型号了,只能看到个别设备大概是什么。通过dmidecode可以看到具体的硬件设备信息,但是也无法确认整机型号。所以最终结论,系统上不没有任何一个命令可以看到整机型号。LZ还是通过其他手段去获取这方面信息吧。

论坛徽章:
0
2 [报告]
发表于 2009-04-14 10:44 |只看该作者
通过dmesg当然看不到整机型号了,只能看到个别设备大概是什么。通过dmidecode可以看到具体的硬件设备信息,但是也无法确认整机型号。
所以最终结论,系统上不没有任何一个命令可以看到整机型号。LZ还是通过其他手段去获取这方面信息吧。

论坛徽章:
0
3 [报告]
发表于 2009-04-14 10:53 |只看该作者

论坛徽章:
0
4 [报告]
发表于 2009-04-14 10:54 |只看该作者
没有任何日志信息可以看到整机类型。

论坛徽章:
0
5 [报告]
发表于 2009-04-14 11:00 |只看该作者

回复 #1 ncjh 的帖子

dimicode

论坛徽章:
0
6 [报告]
发表于 2009-04-14 11:13 |只看该作者
dmidecode | grep "Product"

论坛徽章:
0
7 [报告]
发表于 2009-04-14 11:18 |只看该作者
原帖由 ppiqq 于 2009-4-14 11:13 发表
dmidecode | grep "Product"


有些可以,但不是任何整机服务器都行。

论坛徽章:
0
8 [报告]
发表于 2009-04-14 11:55 |只看该作者
原帖由 jerrywjl 于 2009-4-14 11:18 发表


有些可以,但不是任何整机服务器都行。



哦 学习了

我平时就用这个统计服务器的型号,一些老服务器的信息貌似就不准确

论坛徽章:
0
9 [报告]
发表于 2009-04-14 15:47 |只看该作者
多谢大家指点。
dmidecode在这台机器上不行啊。 OS是 RedHat AS4

[root@BAM ~]# dmidecode
# dmidecode 2.2
SMBIOS 2.4 present.
75 structures occupying 4984 bytes.
Table at 0xBFF76380.
Segmentation fault

准备放弃命令行了,直接到遥远的机房去

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
10 [报告]
发表于 2009-04-14 16:15 |只看该作者

  1. [root@localhost liuqi]# dmidecode | grep "Product"
  2.         Product Name: 74574AC
  3.         Product Name: 74574AC
  4. [root@localhost liuqi]#

复制代码


在我机器上奏效,呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP