转载请注明出处:http://blog.csdn.net/xiaofan23z
在日常的系统维护升级中,往往需要查看内存的配置信息。比如当前我有台HP RX2660,内存是16G,但是我想知道是这16G是 4G*4还是2G*8 还是什么其他的配置,
以便我在扩展内存找厂商报价时能够提供详细的信息。下面说下如何查看。
ps:请查看我的另外一篇博客 里面有介绍如何在LINUX,HPUX,AIX系统查询主机配置信息
http://blog.csdn.net/xiaofan23z/article/details/7031134
1.HP-UX系统查看内存配置
sfc12rc2:/home/oracle$ machinfo ##查看机器的基本配置信息
CPU info:
2 Intel(R) Itanium 2 9100 series processors (1.67 GHz, 18 MB)
666 MT/s bus, CPU version A1
4 logical processors (2 per socket)
Memory: 16360 MB (15.98 GB) ##看到物理内存为16GB
Firmware info:
Firmware revision: 03.01
FP SWA driver revision: 1.18
IPMI is supported on this system.
BMC firmware revision: 5.21
Platform info:
Model: "ia64 hp server rx2660"
Machine ID number: 9d8c2fd1-e6ae-11dd-9971-343bc60a7636
Machine serial number: SGH48500XK
OS info:
Nodename: sfc12rc2
Release: HP-UX B.11.31
Version: U (unlimited-user license)
Machine: ia64
ID Number: 2643210193
vmunix _release_version:
@(#) $Revision: vmunix: B.11.31_LR FLAVOR=perf
sfc12rc2:/home/oracle$
sfc12rc2:/home/oracle$ cstm ##利用cstm命令查看
Running Command File (/usr/sbin/stm/ui/config/.stmrc).
-- Information --
Support Tools Manager
Version D.04.00
Product Number B4708AA
(C) Copyright Hewlett Packard Co. 1995-2008
All Rights Reserved
Use of this program is subject to the licensing restrictions described
in "Help-->On Version". HP shall not be liable for any damages resulting
from misuse or unauthorized use of this program.
cstm>help ##help 可以列出所有的命令
Format: COMMAND_NAME (ACCELERATOR_NAME)
File: System: Device:
saveconfig (scfg) connectsys (cs) currdevstatus (cds)
restoreconfig (rcfg) selcurrentsys (scs) cleartoolstatus (cts)
recordcmdfile (rcf) disconnectsys (ds) select (sel)
stoprecordcmd (srcf) savemap (smap) selall (sall)
runcmdfile (rncf) printmap (pmap) slclass (sc)
recordoutput (ro) remapsystem (rs) seldev (sd)
stoprecordout (sro) maplog (ml) selprod (sp)
uiactlog (uial) displaylic (dl) seldevabove (sda)
readuutconfigfile (ruc) license (lic) seldevbelow (sdb)
updatetoolinfo (uti) hplicense (hlic) unselall (usal)
stmstartup (ssu) deinstalllic (dlic) uslclass (usc)
stmshutdown (ssd) sysactlog (sal) setfilter (sf)
resetsysactlog (rsa) daemonstartup (dsu) clearfilter (cf)
localmaplog (lml) daemonshutdown (dsd)
localsysactlog (lsal) daemonkill (dk) To save time, enter
syslog (sl) daemonactlog (dacl) the accelerator for
os (os) map (map) a command.
quit (q) ViewAgilemap (amap) example: "cstm> fal"
exit (ex) UPPER or lower case.
Tools: Tools (Continued) Options:
information (info) fwupdatefaillog (ffl) infooptions (iop)
infolog (il) fwupdateinfo (finf) veroptions (vop)
infoactlog (ial) experttool (xt) diagoptions (dop)
infofaillog (ifl) expactlog (xal) exeroptions (eop)
infoinfo (iinf) expfaillog (xfl) fwupdateoptions(fop)
verify (ver) expinfo (xinf) expoptions (xop)
veractlog (val) runutil (ru) utiloptions (uop)
verfaillog (vfl) utilactlog (ual) launchoptions (lop)
verinfo (vinf) utilfaillog (ufl) mapoptions (mop)
diagnose (dgn) utilinfo (uinf) generaloptions (gop)
diagactlog (dal) lateactlog (lal)
diagfaillog (dfl) latefaillog (lfl) Help:
diaginfo (dinf) aborttool (abt) help
exercise (exc) suspendtool (st) help more
exeractlog (eal) resumetool (ret) help syntax
exerfaillog (efl) abortutil (abu) help all
exerinfo (einf) displayquery(dq) help COMMAND (ACCEL)
firmwareupdate (fwu) attach (at) help help
fwupdateactlog (fal) wait (wait) version (vers)
killtool (klt)
killutil (klu)
Online help for cstm is now on the Web at:
http://docs.hp.com/hpux/onlinedocs/diag/stm/sth_cstm.htm
and on the local disk at:
file:/usr/sbin/stm/catalog/C/HP-UX_B.11.31/ui/stmc.htm
cstm>map ##map show all device
sfc12rc2
Dev Last Last Op
Num Path Product Active Tool Status
=== ==================== ========================= =========== =============
1 system system (1022) Information Successful
2 memory IPF_MEMORY (1022) Information Successful ##dev 2 is memory
3 0 Bus Adapter (103c4030) Information Successful
4 0/0 PCI Bus Adapter (103c122e Information Successful
5 0/0/1/0 PCI class (103c1303)
6 0/0/1/1 PCI SimpleComm (103c1302) Information Successful
7 0/0/1/2 RS-232 Interface (103c104 Information Successful
8 0/0/2/0 USB Open Host Controller
9 0/0/2/0.0 Generic USB Interface (70
10 0/0/2/1 USB Open Host Controller
11 0/0/2/1.0 Generic USB Interface (71
12 0/0/2/1.0.0 USB Mass Storage (USBBulk
13 0/0/2/1.0.16 USB to SCSI Bus Adaptor (
14 0/0/2/2 USB Enhanced Host Control
15 0/1 PCI Bus Adapter (103c122e Information Successful
16 0/1/1/0 SAS Adapter (SAS Adapter) Information Successful
17 0/1/1/0.0.0.0.0 SCSI Disk (HPIR) Information Incomplete
18 0/1/2/0 PCI Gigabit Ethernet Link Information Successful
19 0/1/2/1 PCI Gigabit Ethernet Link Information Successful
20 0/2 PCI Bus Adapter (103c12ee Information Successful
21 0/2/1/0 FC Interface (HPAB378B_QL Information Successful
22 0/2/1/0.1 FCP Domain (Mass_Storage)
23 0/2/1/***5.255.0.0.0 SCSI Tape (HPUltrium) Information Successful
24 0/2/1/***5.255.0.0.1 SCSI Tape (HPUltrium) Information Incomplete
25 0/2/1/***5.255.0.0.2 SCSI Media Changer (HPMSL
26 0/2/1/***5.255.0.0.3 SCSI Device (HPN1200-320)
27 0/2/1/0.21 FCP Domain (Mass_Storage)
28 0/2/1/0.21.0.255.0.0 HP EVA XL Lite (HPHSV200)
29 0/2/1/0.21.1.255.0.0 HP EVA XL Lite (HPHSV200)
30 0/3 PCI Bus Adapter (103c12ee Information Successful
31 0/3/1/0 PCI Bus Adapter (101401a7 Information Successful
32 0/3/1/0/4/0 MPT SCSI Adapter (HP_AB29 Information Successful
33 0/3/1/0/4/0.3.0 SCSI Tape (HPC7438A)
34 0/3/1/0/4/1 MPT SCSI Adapter (HP_AB29 Information Successful
35 0/3/1/0/6/0 1000B-T 2port/U320 Combo Information Successful
36 0/3/1/0/6/1 1000B-T 2port/U320 Combo Information Successful
37 0/4 PCI Bus Adapter (103c12ee Information Successful
38 0/4/1/0 FC Interface (HPAB378B_QL Information Successful
39 0/4/1/0.11 FCP Domain (Mass_Storage)
40 0/4/1/0.11.0.255.0.0 HP EVA XL Lite (HPHSV200)
41 0/4/1/0.11.1.255.0.0 HP EVA XL Lite (HPHSV200)
42 120 CPU (1022)
43 121 CPU (1022)
44 122 CPU (1022)
45 123 CPU (1022)
46 250 Core I/O Adapter (fffffff
47 250/0 IPMI Controller (49504930 Information Successful
48 250/1 RS-232 Interface (504e503 Information Successful
49 250/2 ACPI Device (41435049) Information Successful
cstm>sel dev 2 ##select dev 2 ,this is memory
cstm>info ##information
-- Updating Map --
Updating Map...
cstm>il ## infolog
-- Converting a (2456) byte raw log file to text. --
Preparing the Information Tool Log for IPF_MEMORY on path memory File ...
.... sfc12rc2 : 172.16.50.32 ....
-- Information Tool Log for IPF_MEMORY on path memory --
Log creation time: Tue Mar 6 10:14:49 2012
Hardware path: memory
Basic Memory Description
Module Type: MEMORY
Page Size: 4096 Bytes
Total Physical Memory: N/A
Total Configured Memory: 16384 MB
Total Deconfigured Memory: N/A
Memory Board Inventory
DIMM Location Size(MB) DIMM Location Size(MB)
-------------------- -------- -------------------- --------
Ext 0 DIMM 0A 4096 Ext 0 DIMM 0B 4096
Ext 0 DIMM 1A 4096 Ext 0 DIMM 1B 4096
Ext 0 DIMM 2A ---- Ext 0 DIMM 2B ----
Ext 0 DIMM 3A ---- Ext 0 DIMM 3B ---- ##show memory detail information
Ext 0 Total: 16384 (MB)
===========================================================================
Memory Error Log Summary
The memory error log is empty.
Page Deallocation Table (PDT)
The Page Deallocation Table is empty.
PDT Entries Used: 0
PDT Entries Free: 100
PDT Total Size: 100
-- Information Tool Log for IPF_MEMORY on path memory --
View - To View the file.
Print - To Print the file.
SaveAs - To Save the file.
Enter Done, Help, Print, SaveAs, or View: [Done] done
2. AIX查询内存详细配置信息
可以用很多命令查询到AIX的物理内存
sfc3rac2:/home/oracle$ lsconf|more
System Model: IBM,8203-E4A
Machine Serial Number: 068B972
Processor Type: PowerPC_POWER6
Processor Implementation Mode: POWER 6
Processor Version: PV_6
Number Of Processors: 2
Processor Clock Speed: 4204 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 06-8B972
Memory Size: 15680 MB
Good Memory Size: 15680 MB ##physical memory
Platform Firmware level: Not Available
Firmware Version: IBM,EL340_075
Console Login: enable
Auto Restart: true
Full Core: false
Network Information
Host Name: sfc3rac2
IP Address: 172.16.51.142
Sub Netmask: 255.255.255.128
Gateway: 172.16.51.254
Name Server:
Domain Name:
Paging Space Information
Total Paging Space: 16384MB
Percent Used: 17%
Volume Groups Information
==============================================================================
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk1 active 546 206 00..00..00..97..109
hdisk0 active 546 154 00..00..00..45..109
==============================================================================
INSTALLED RESOURCE LIST
The following resources are installed on the machine.
+/- = Added or deleted from Resource List.
* = Diagnostic support not available.
Model Architecture: chrp
Model Implementation: Multiple Processor, PCI bus
+ sys0 System Object
+ sysplanar0 System Planar
* vio0 Virtual I/O Bus
* vsa1 U789C.001.6C012C3-P1-T4 LPAR Virtual Serial Adapter
* vty1 U789C.001.6C012C3-P1-T4-L0 Asynchronous Terminal
* vsa0 U789C.001.6C012C3-P1-T3 LPAR Virtual Serial Adapter
* vty0 U789C.001.6C012C3-P1-T3-L0 Asynchronous Terminal
* pci7 U789C.001.6C012C3-P1 PCI Express Bus
+ fcs1 U789C.001.6C012C3-P1-C3-T1 4Gb FC PCI Express Adapter (df1000fe)
+ fscsi1 U789C.001.6C012C3-P1-C3-T1 FC SCSI I/O Controller Protocol Device
* rmt0 U789C.001.6C012C3-P1-C3-T1-W100000E00224084F-L1000000000000 Other FC SCSI Tape Drive
* rmt1 U789C.001.6C012C3-P1-C3-T1-W100000E00224084F-L0 Other FC SCSI Tape Drive
* fcnet1 U789C.001.6C012C3-P1-C3-T1 Fibre Channel Network Protocol Device
* pci6 U789C.001.6C012C3-P1 PCI Express Bus
* pci5 U789C.001.6C012C3-P1 PCI Express Bus
+ ent0 U789C.001.6C012C3-P1-C2-T1 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
+ ent1 U789C.001.6C012C3-P1-C2-T2 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
* pci4 U789C.001.6C012C3-P1 PCI Express Bus
+ fcs0 U789C.001.6C012C3-P1-C1-T1 4Gb FC PCI Express Adapter (df1000fe)
+ fscsi0 U789C.001.6C012C3-P1-C1-T1 FC SCSI I/O Controller Protocol Device
* hdisk2 U789C.001.6C012C3-P1-C1-T1-W50001FE1500E561C-L1000000000000 HP HSV200 Enterprise Virtual Array
* hdisk3 U789C.001.6C012C3-P1-C1-T1-W50001FE1500E561C-L2000000000000 HP HSV200 Enterprise Virtual Array
* hdisk4 U789C.001.6C012C3-P1-C1-T1-W50001FE1500E561C-L3000000000000 HP HSV200 Enterprise Virtual Array
* hdisk5 U789C.001.6C012C3-P1-C1-T1-W50001FE1500E561C-L4000000000000 HP HSV200 Enterprise Virtual Array
* hdisk6 U789C.001.6C012C3-P1-C1-T1-W50001FE1500E561C-L5000000000000 HP HSV200 Enterprise Virtual Array
* hdisk7 U789C.001.6C012C3-P1-C1-T1-W50001FE1500E561C-L6000000000000 HP HSV200 Enterprise Virtual Array
* hdisk8 U789C.001.6C012C3-P1-C1-T1-W50001FE1500E561C-L7000000000000 HP HSV200 Enterprise Virtual Array
* hdisk9 U789C.001.6C012C3-P1-C1-T1-W50001FE1500E561C-L8000000000000 HP HSV200 Enterprise Virtual Array
* hdisk10 U789C.001.6C012C3-P1-C1-T1-W50001FE1500E561C-L9000000000000 HP HSV200 Enterprise Virtual Array
* fcnet0 U789C.001.6C012C3-P1-C1-T1 Fibre Channel Network Protocol Device
* pci3 U789C.001.6C012C3-P1 PCI Bus
* pci8 U789C.001.6C012C3-P1-C5 PCI Bus
+ lai0 U789C.001.6C012C3-P1-C5-T1 GXT135P Graphics Adapter
* pci2 U789C.001.6C012C3-P1 PCI Bus
+ sa0 U789C.001.6C012C3-P1-C4-T1 2-Port Asynchronous EIA-232 PCI Adapter
+ tty0 U789C.001.6C012C3-P1-C4-T1-L0 Asynchronous Terminal
+ tty1 U789C.001.6C012C3-P1-C4-T1-L1 Asynchronous Terminal
* pci1 U789C.001.6C012C3-P1 PCI Bus
+ usbhc0 U789C.001.6C012C3-P1 USB Host Controller (33103500)
+ usbhc1 U789C.001.6C012C3-P1 USB Host Controller (33103500)
* usbhc2 U789C.001.6C012C3-P1 USB Enhanced Host Controller (3310e000)
* pci0 U789C.001.6C012C3-P1 PCI Bus
+ sissas0 U789C.001.6C012C3-P1-T9 PCI-X266 Planar 3Gb SAS Adapter
* sas0 U789C.001.6C012C3-P1-T9 Controller SAS Protocol
+ ses0 U789C.001.6C012C3-P2-Y1 SAS Enclosure Services Device
+ hdisk0 U789C.001.6C012C3-P2-D6 SAS Disk Drive (146800 MB)
+ hdisk1 U789C.001.6C012C3-P2-D3 SAS Disk Drive (146800 MB)
* sata0 U789C.001.6C012C3-P1-T9 Controller SATA Protocol
+ cd0 U789C.001.6C012C3-P2-D2 SATA DVD-RAM Drive
* lhea0 U789C.001.6C012C3-P1 Logical Host Ethernet Adapter (l-hea)
+ ent3 U789C.001.6C012C3-P1-C7-T2 Logical Host Ethernet Port (lp-hea)
+ ent2 U789C.001.6C012C3-P1-C7-T1 Logical Host Ethernet Port (lp-hea)
+ L2cache0 L2 Cache
+ mem0 Memory
+ proc0 Processor
+ proc2 Processor
sfc3rac2:/home/oracle$
sfc3rac2:/home/oracle$ lscfg -vp
...
...
Memory DIMM: ##可以看到有四个memory DIMM 每个4G
Record Name.................VINI
Flag Field..................XXMS
Hardware Location Code......U789C.001.6C012C3-P1-C14
Customer Card ID Number.....31A6
Serial Number...............YLD001410945
CCIN Extender...............1
Product Specific.(VZ).......01
FRU Number..................77P6500
Part Number.................77P6500
Power.......................4400000000000000
Size........................4096
Version.....................ipzSeries
Physical Location: U789C.001.6C012C3-P1-C14
Memory DIMM:
Record Name.................VINI
Flag Field..................XXMS
Hardware Location Code......U789C.001.6C012C3-P1-C15
Customer Card ID Number.....31A6
Serial Number...............YLD0034109AD
CCIN Extender...............1
Product Specific.(VZ).......01
FRU Number..................77P6500
Part Number.................77P6500
Power.......................4400000000000000
Size........................4096
Version.....................ipzSeries
Physical Location: U789C.001.6C012C3-P1-C15
Memory DIMM:
Record Name.................VINI
Flag Field..................XXMS
Hardware Location Code......U789C.001.6C012C3-P1-C16
Customer Card ID Number.....31A6
Serial Number...............YLD000410953
CCIN Extender...............1
Product Specific.(VZ).......01
FRU Number..................77P6500
Part Number.................77P6500
Power.......................4400000000000000
Size........................4096
Version.....................ipzSeries
Physical Location: U789C.001.6C012C3-P1-C16
Memory DIMM:
Record Name.................VINI
Flag Field..................XXMS
Hardware Location Code......U789C.001.6C012C3-P1-C17
Customer Card ID Number.....31A6
Serial Number...............YLD00241098D
CCIN Extender...............1
Product Specific.(VZ).......01
FRU Number..................77P6500
Part Number.................77P6500
Power.......................4400000000000000
Size........................4096
Version.....................ipzSeries
Physical Location: U789C.001.6C012C3-P1-C17
应该还有其他的方法 请大家帮忙补充。
转载请注明出处:http://blog.csdn.net/xiaofan23z