一)print_manifest

做为管理员,我们要非常熟悉了解系统。包括:系统的硬件、软件、系统的基本信息和一些配置。
我觉得print_manifest是一个很好的命令。
 


用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 infomation

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每次运行都会更新

和print_manifest相关的路径:/var/opt/ignite/local/manifest

二)getconf

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

getconf MACHINE_SERIAL
获取主机设备序列号,这个序列号可用于HP的800报障。

getconf PAGE_SIZE
每个内存页的大小。用kmeminfo或者ps -lfp 看内存显示的结果是多少个内存页,要乘以这个每个内存页的大小才得到每个进程的占用内存。

getconf KERNEL_BITS
查看操作系统是32位还是64位,在安装oracle前必须弄清楚os版本,安装对应版本的oracle。

getconf MACHINE_MODEL
查看主机的具体型号。如rp8440,N4000-55

getconf HW_CPU_SUPP_BITS
硬件cpu支持多少位。如64位的cpu支持64位的os和32位的os。


三)cstm

以root用户,在终端输入cstm,启动cstm这个工具

# 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>