- 论坛徽章:
- 0
|
26、一个有用的诊断工具mstm
用它可以收集到所有的硬件信息,比如一共有哪些内存插口,
每块现有的内存条有多大,还可以查几个内存条等等信息。
使用举例:
#mstm
选择system(),并且在菜单上选中Tools/information/information log
便可以看到很多关于硬件的消息,如:
System Information for (scp1)
HPUX Model Number......: L2000 //机器型号是HP L2000
HPUX Model String......: 9000/800/L2000-44
Original Product Number: A5191A
Current Product Number.:
System Serial Number...: (Unknown)
Hversion...............: 0x5c40
Sversion...............: 0x491
Software Capabilities..: 0x100000f0
PD CPU Information:
Number of CPUs in the current Protection Domain = 2 //两个cpu
Cabinet 0; Cell 0; CPU Map
cpu -------------------------------------------------
slot |00|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|
-------------------------------------------------
state| a| | | | | | | | | | | | | | | |
-------------------------------------------------
c - Configured (CPU powered on)
d - De-configured (CPU powered off)
a - Active (configured and processes running)
选择memory,并且在菜单上选中Tools/information/information log
便可以看到关于内存的信息,如:
-- Information Tool Log for MEMORY on path 8 --
Log creation time: Wed Jul 3 17:05:47 2002
Hardware path: 8
Basic Memory Description
Module Type: MEMORY
Total Configured Memory : 1024 MB //可以看到总的内存有多少,是1G
Page Size: 4096 Bytes
Memory interleaving is supported on this machine and is ON.
Memory Board Inventory
DIMM Slot Size (MB)
--------- ---------
0a 256 //可以看到每个内存槽里面是不是已经插了内存条,还有
该内存条是多少的内存,比如这里0a槽上插的是256M
1a 256
0b 256
1b 256
--------- --------- //可以看出该台小型机的4个内存槽都已经插满了
System Total (MB): 1024
Memory Error Log Summary
The memory error log is empty.
Page Deallocation Table (PDT)
PDT Entries Used: 0
PDT Entries Free: 50
PDT Total Size: 50
在使用mstm的时候可以打开另外一个终端窗口,执行命令#/usr/sbin/ioscan -fn ,这样可以知道每个设备
的硬件地址信息。
这样可以得到如下结果:
lan 2 0/7/0/0 btlan6 CLAIMED INTERFACE HP A3738A PCI 10/100Base-TX Ultimate Combo
/dev/diag/lan2 /dev/ether2 /dev/lan2
memory 0 8 memory CLAIMED MEMORY Memory
processor 0 160 processor CLAIMED PROCESSOR Processor
processor 1 166 processor CLAIMED PROCESSOR Processor
这样可以知道0/7/0/0地址对应的是一个100M的网卡,然后再到mstm窗口中去查看它的information log
信息,这样可以很清楚硬件信息了。
该收集结果文件中还可以找到磁盘的使用信息,如:
I H/W Path Driver S/W State Description ==================================================================== 0 0/0/1/1.2.0 sdisk CLAIMED SEAGATE ST39204LC 1 0/0/2/1.2.0 sdisk CLAIMED HP DVD-ROM 304 2 0/3/0/0.0.0 sdisk CLAIMED HP C5447A 4 0/3/0/0.0.1 sdisk CLAIMED HP C5447A 6 0/3/0/0.0.2 sdisk CLAIMED HP C5447A 8 0/3/0/0.0.3 sdisk CLAIMED HP C5447A 10 0/3/0/0.0.4 sdisk CLAIMED HP C5447A 12 0/3/0/0.0.5 sdisk CLAIMED HP C5447A 3 0/6/0/0.1.0 sdisk CLAIMED HP C5447A 5 0/6/0/0.1.1 sdisk CLAIMED HP C5447A 7 0/6/0/0.1.2 sdisk CLAIMED HP C5447A 9 0/6/0/0.1.3 sdisk CLAIMED HP C5447A 11 0/6/0/0.1.4 sdisk CLAIMED HP C5447A 13 0/6/0/0.1.5 sdisk CLAIMED HP C5447A Device H/W Path Product id Size Physical Alternate (Mbytes) Volume Link ==================================================================== c1t2d0 0/0/1/1.2.0 ST39204LC 8683 yes bootable no c3t2d0 0/0/2/1.2.0 DVD-ROM 0 no n/a c4t0d0 0/3/0/0.0.0 C5447A 1024 yes no c4t0d1 0/3/0/0.0.1 C5447A 2052 yes no c4t0d2 0/3/0/0.0.2 C5447A 10252 yes no c4t0d3 0/3/0/0.0.3 C5447A 1024 no n/a c4t0d4 0/3/0/0.0.4 C5447A 2052 no n/a c4t0d5 0/3/0/0.0.5 C5447A 10252 no n/a c5t1d0 0/6/0/0.1.0 C5447A 1024 yes yes c5t1d1 0/6/0/0.1.1 C5447A 2052 yes yes c5t1d2 0/6/0/0.1.2 C5447A 10252 yes yes c5t1d3 0/6/0/0.1.3 C5447A 1024 no n/a c5t1d4 0/6/0/0.1.4 C5447A 2052 no n/a c5t1d5 0/6/0/0.1.5 C5447A 10252 no n/a Note: All disk devices are listed here, not only hard disks.LVM mirroring software********************** LVM mirroring software MirrorDisk/UX (B2491A) is NOT installed................................................................................**********************Part 2: VOLUME GROUPS**********************Volume Group: /dev/vg00************* Physical Volumes: /dev/dsk/c1t2d0 Volume group disk space usage: Total : 8676 Mbytes 2169 PE Allocated: 8404 Mbytes 2101 PE Free : 272 Mbytes 68 PE PE size : 4 MbytesVolume Group: /dev/vg10************* Physical Volumes: /dev/dsk/c4t0d0 /dev/dsk/c5t1d0 Alternate Link Volume group disk space usage: Total : 1020 Mbytes 255 PE Allocated: 0 Mbytes 0 PE Free : 1020 Mbytes 255 PE PE size : 4 MbytesVolume Group: /dev/vg12************* Physical Volumes: /dev/dsk/c4t0d2 /dev/dsk/c5t1d2 Alternate Link Volume group disk space usage: Total : 10248 Mbytes 2562 PE Allocated: 10076 Mbytes 2519 PE Free : 172 Mbytes 43 PE PE size : 4 Mbytes
备注:其实用该收集工具就是在shell中执行不通的程序得到,如执行:
ioscan -fn;
mstm;
cstm;
sam;
等等。 |
|