一)print_manifestphp
作爲管理員,咱們要很是熟悉瞭解系統。包括:系統的硬件、軟件、系統的基本信息和一些配置。
我以爲print_manifest是一個很好的命令。
oracle
用print_manifest產生的文件是:/var/opt/ignite/local/manifest
manifest文件包括12部分:
1. system infomation
2.system hardware
3.storage devices
4.i/o interfaces
5.installed software
6.LVM file system configuration
7.JFS file system configuration
8.disk layout
9.file system layout
10.swap info
11.kernel configuration
12.system infomationide
system infomation:操做系統安裝的時間、系列號、訂單號
system hardware:機器的型號、內存大小、處理器個數、操做系統位數等
storage devices:存儲設備的信息
i/o interface:I/O接口信息,如:接口類型,H/W路徑等
installed software:已經安裝的軟件
LVM file system configuration:系統用lvm file system
JFS file system configuration:系統用JFS
disk layout:磁盤配置
file system layout:文件系統分佈
swap info:交換區信息
kernel configuration:kernel配置
system infomation:包括hostname,ip,time zone工具
print_manifest [-s][-t][-f][-i]
-s:略過軟件和硬件掃描,輸出基於上次的掃描。
-f: manifest file:輸出文件
我認爲作好是不帶選項,由於print_manifest每次運行都會更新ui
和print_manifest相關的路徑:/var/opt/ignite/local/manifestthis
二)getconfspa
getconf 在系統運用中游時候起到了很大的做用。
下面是它的一些參數 具體參數經過man getconf 看幫助
ARG_MAX
_BC_BASE_MAX
BC_DIM_MAX
BS_SCALE_MAX
BC_STRING_MAX
CHARCLASS_NAME_MAX
CHAR_BIT
CHAR_MAX
CHAR_MIN
CHILD_MAX
CLK_TCK
COLL_WEIGHTS_MAX
CPU_CHIP_TYPE
CS_MACHINE_IDENT
CS_PARTITION_IDENT
CS_PATH
CS_MACHINE_SERIAL
EXPR_NEST_MAX
HW_CPU_SUPP_BITS
HW_32_64_CAPABLE
INT_MAX
INT_MIN
KERNEL_BITS
LINE_MAX
LONG_BIT
LONG_MAX
LONG_MIN
MACHINE_IDENT
MACHINE_MODEL
MACHINE_SERIAL
MB_LEN_MAX
NGROUPS_MAX
NL_ARGMAX
NL_LANGMAX
NL_MSGMAX
NL_NMAX
NL_SETMAX
NL_TEXTMAX
NZERO
OPEN_MAX
PARTITION_IDENT
PATH
_POSIX_ARG_MAX
_POSIX_JOB_CONTROL
_POSIX_NGROUPS_MAX
_POSIX_OPEN_MAX
_POSIX_SAVED_IDS
_POSIX_SSIZE_MAX
_POSIX_STREAM_MAX
_POSIX_TZNAME_MAX
_POSIX_VERSION
POSIX_ARG_MAX
POSIX_CHILD_MAX
POSIX_JOB_CONTROL
POSIX_LINK_MAX
POSIX_MAX_CANON
POSIX_MAX_INPUT
POSIX_NAME_MAX
POSIX_NGROUPS_MAX
POSIX_OPEN_MAX
POSIX_PATH_MAX
POSIX_PIPE_BUF
POSIX_SAVED_IDS
POSIX_SSIZE_MAX
POSIX_STREAM_MAX
POSIX_TZNAME_MAX
POSIX_VERSION
POSIX2_BC_BASE_MAX
POSIX2_BC_DIM_MAX
POSIX2_BC_SCALE_MAX
POSIX2_BC_STRING_MAX
POSIX2_C_BIND
POSIX2_C_DEV
POSIX2_C_VERSION
POSIX2_CHAR_TERM
POSIX_CHILD_MAX
POSIX2_COLL_WEIGHTS_MAX
POSIX2_EXPR_NEST_MAX
POSIX2_FORT_DEV
POSIX2_FORT_RUN
POSIX2_LINE_MAX
POSIX2_LOCALEDEF
POSIX2_RE_DUP_MAX
POSIX2_SW_DEV
POSIX2_UPE
POSIX2_VERSION
SC_PASS_MAX
SC_XOPEN_VERSION
SCHAR_MAX
SCHAR_MIN
SHRT_MAX
SHRT_MIN
STREAM_MAX
RE_DUP_MAX
TMP_MAX
TZNAME_MAX
UCHAR_MAX
UINT_MAX
ULONG_MAX
USHRT_MAX
WORD_BIT
XOPEN_VERSION
XOPEN_XCU_VERSION
XOPEN_XPG2
XOPEN_XPG3
XOPEN_XPG4
XBS5_ILP32_OFF32_CFLAGS
XBS5_ILP32_OFF32_LDFLAGS
XBS5_ILP32_OFF32_LIBS
XBS5_ILP32_OFF32_LINTFLAGS
XBS5_ILP32_OFFBIG_CFLAGS
XBS5_ILP32_OFFBIG_LDFLAGS
XBS5_ILP32_OFFBIG_LIBS
XBS5_ILP32_OFFBIG_LINTFLAGS
XBS5_LP64_OFF64_CFLAGS
XBS5_LP64_OFF64_LDFLAGS
XBS5_LP64_OFF64_LIBS
XBS5_LP64_OFF64_LINTFLAGS
SSIZE_MAX操作系統
三)cstmrest
以root用戶,在終端輸入cstm,啓動cstm這個工具orm
# cstm Running Command File (/usr/sbin/stm/ui/config/.stmrc). -- Information -- Support Tools Manager Version C.48.05 Product Number B4708AA (C) Copyright Hewlett Packard Co. 1995-2004 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>
輸入map,列出主機全部的硬件信息
cstm>map PAYDB Dev Last Last Op Num Path Product Active Tool Status === ==================== ========================= =========== ============= * 1 system system (1016) Information Successful * 2 memory IPF_MEMORY (1016) Information Successful * 3 0 Cell (ffffffff) Information Successful * 4 0/0 Bus Adapter (103c12eb) Information Successful * 5 0/0/0 PCI Bus Adapter (103c122e Information Successful * 6 0/0/0/1/0 PCI-X 1000Base-T Interfac Information Successful * 7 0/0/0/2/0 MPT SCSI Adapter (MPT SCS Information Successful * 8 0/0/0/2/0.6.0 SCSI Disk (HP300) Information Successful * 9 0/0/0/2/1 MPT SCSI Adapter (MPT SCS Information Successful * 10 0/0/0/3/0 MPT SCSI Adapter (MPT SCS Information Successful * 11 0/0/0/3/0.6.0 SCSI Disk (HP300) Information Successful * 12 0/0/0/3/1 MPT SCSI Adapter (MPT SCS Information Successful * 13 0/0/1 PCI Bus Adapter (103c12ee Information Successful * 14 0/0/2 PCI Bus Adapter (103c12ee Information Successful * 15 0/0/4 PCI Bus Adapter (103c12ee Information Successful * 16 0/0/6 PCI Bus Adapter (103c12ee Information Successful * 17 0/0/8 PCI Bus Adapter (103c12ee Information Successful * 18 0/0/8/1/0 PCI 1000Base-T LAN Adapte Information Successful * 19 0/0/8/1/1 PCI 1000Base-T LAN Adapte Information Successful * 20 0/0/10 PCI Bus Adapter (103c12ee Information Successful * 21 0/0/10/1/0 PCI 1000Base-T LAN Adapte Information Successful * 22 0/0/10/1/1 PCI 1000Base-T LAN Adapte Information Successful * 23 0/0/12 PCI Bus Adapter (103c12ee Information Successful * 24 0/0/12/1/0 FC Interface (HPAB378B_QL Information Successful * 25 0/0/12/1/0.11 Fibre Channel Driver (Mas * 26 0/0/12/1/0.11.3.0.0. EMC Array (EMCSYMMETRIX) * 27 0/0/12/1/0.11.3.0.0. EMC Array (EMCSYMMETRIX) * 28 0/0/12/1/0.11.3.0.0. EMC Array (EMCSYMMETRIX) * 29 0/0/12/1/0.11.3.0.0. EMC Array (EMCSYMMETRIX) * 30 0/0/12/1/0.11.3.0.0. EMC Array (EMCSYMMETRIX) * 31 0/0/12/1/0.11.3.255. EMC Array (EMCSYMMETRIX) * 32 0/0/14 PCI Bus Adapter (103c12ee Information Successful * 33 0/0/14/1/0 FC Interface (HPAB378B_QL Information Successful * 34 0/0/14/1/0.21 Fibre Channel Driver (Mas * 35 0/0/14/1/0.21.3.0.0. EMC Array (EMCSYMMETRIX) * 36 0/0/14/1/0.21.3.0.0. EMC Array (EMCSYMMETRIX) * 37 0/0/14/1/0.21.3.0.0. EMC Array (EMCSYMMETRIX) * 38 0/0/14/1/0.21.3.0.0. EMC Array (EMCSYMMETRIX) * 39 0/0/14/1/0.21.3.0.0. EMC Array (EMCSYMMETRIX) * 40 0/0/14/1/0.21.3.255. EMC Array (EMCSYMMETRIX) * 41 0/120 CPU (1016) * 42 0/121 CPU (1016) * 43 0/122 CPU (1016) * 44 0/123 CPU (1016) * 45 0/124 CPU (1016) * 46 0/125 CPU (1016) * 47 0/126 CPU (1016) * 48 0/127 CPU (1016) * 49 0/250 Core I/O Adapter (fffffff * 50 0/250/0 ACPI Device (41435049) Information Successful * 51 0/250/1 IPMI Controller (49504930 Information Successful * 52 0/250/2 RS-232 Interface (504e503 Information Successful
選中所須要查看的設備的num 輸入命令 之內存爲例 輸入sel dev 2
而後在提示符下鍵入info 從系統kernel裏面收集設備的信息
在提示符下鍵入il 列出設備的信息
cstm>sel dev 2 cstm>info -- Updating Map -- Updating Map... cstm>il -- Converting multiple raw log files to text. -- Preparing the Information Tool Log for each selected device... .... PAYDB : 10.127.8.181 .... -- Information Tool Log for system on path system -- Log creation time: Wed Aug 17 16:30:35 2011 Hardware path: system Product ID : ia64 hp server rx8640 Current Product Number : AB297A Original Product Number : AB297A System Firmware Revision : 9.022 BMC Revision : v03.01 System Serial Number: : xxxxxxxxxxxx System Software ID : xxxxxxxxxx For additional information about the system and the CPUs, please run the following command: /usr/contrib/bin/machinfo Field Replaceable Unit Identification (FRUID): =-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-= -- Information Tool Log for IPF_MEMORY on path memory -- Log creation time: Wed Aug 17 16:30:35 2011 Hardware path: memory Basic Memory Description Module Type: MEMORY Page Size: 4096 Bytes Total Physical Memory: 65536 MB #一共64G內存 Total Configured Memory: 65536 MB Total Deconfigured Memory: 0 MB Memory Board Inventory DIMM Location Size(MB) State Serial Num Part Num -------------------- -------- ------- ---------------- ------------------ Cab 0 Cell 0 DIMM 0A 4096 Config PRY081636Y A9849-60301 Cab 0 Cell 0 DIMM 0B 4096 Config PRY090561K A9849-60301 Cab 0 Cell 0 DIMM 1A 4096 Config PRY0905288 A9849-60301 Cab 0 Cell 0 DIMM 1B 4096 Config PRY08163D7 A9849-60301 Cab 0 Cell 0 DIMM 2A 4096 Config PRY08161EP A9849-60301 Cab 0 Cell 0 DIMM 2B 4096 Config PRY08166SL A9849-60301 Cab 0 Cell 0 DIMM 3A 4096 Config PRY0816114 A9849-60301 Cab 0 Cell 0 DIMM 3B 4096 Config PRY0816111 A9849-60301 Cab 0 Cell 0 DIMM 4A 4096 Config PRY08163D3 A9849-60301 Cab 0 Cell 0 DIMM 4B 4096 Config PRY08161ES A9849-60301 Cab 0 Cell 0 DIMM 5A 4096 Config PRY081619T A9849-60301 Cab 0 Cell 0 DIMM 5B 4096 Config PRY08163X5 A9849-60301 Cab 0 Cell 0 DIMM 6A 4096 Config PRY081619U A9849-60301 Cab 0 Cell 0 DIMM 6B 4096 Config PRY081630Z A9849-60301 Cab 0 Cell 0 DIMM 7A 4096 Config PRY0816183 A9849-60301 Cab 0 Cell 0 DIMM 7B 4096 Config PRY0816371 A9849-60301 Cab 0 Cell 0 Total: 65536 (MB) =========================================================================== Memory Error Log Summary #這個是系統內存的運行信息,若是有error信息的話內存就有可能存在問題,我這邊是DIMM 6A slot 上的內存在報 Single-Bit 的錯誤。 DIMM Location Error Address Error Type Page Count ---------------------- ---------------- ---------- ------------- ----- Cab 0 Cell 0 DIMM 6A 0xa34077f80 Single-Bit 0xa34077 1 Cab 0 Cell 0 DIMM 6A 0xb4a727f80 Single-Bit 0xb4a727 1 Cab 0 Cell 0 DIMM 6A 0xc88f27f80 Single-Bit 0xc88f27 1 Cab 0 Cell 0 DIMM 6A 0xa324a7f80 Single-Bit 0xa324a7 1 Cab 0 Cell 0 DIMM 6A 0xc112d7f80 Single-Bit 0xc112d7 1 =========================================================================== -- Information Tool Log for each selected device -- View - To View the file. Print - To Print the file. SaveAs - To Save the file. Enter Done, Help, Print, SaveAs, or View: [Done] cstm>