概要

/usr/local/share/ScatterCmd/GatheSysInfo.conf に 登録した内容にしたがって全ノードから情報を収集するためのツールです。

設定ファイル

次の設定ファイルの例を示します。

[root@dcluster ~]# cat /usr/local/share/ScatterCmd/GatherSysInfo.conf
# Usage:
# [options]
#  this section for specified configuration of GatherSysInfo
#   you may set follows option.
#       ScatterCmd: command line for ScatterCmd
#       rshcmd: path to the trsh.
#       ignore: ignore host list
# [all]
#   this section define how to collect infomations and how to save.
#       filename:message:command line
#   if you set 'stdout' or 'stderr', write message only.
#       stdout:Hello world.
# [hostname]
#   semiler as 'all' but only one target host
#
[options]
ScatterCmd:/usr/local/bin/ScatterCmd -m -c '-----------------------------'
rshcmd:/usr/local/bin/trsh
# ignore: compute01,compute02

[all]
A00_stdout:Gathering system informations from all nodes.
A01_dmesg.out:Boot up messages...:cat /var/log/dmesg
A02_ifconfig.out:Network Interface:/sbin/ifconfig
A03_ps.out:process informations...:ps -efaw
A04_top.out:TOP Process informations...(SLOW): /usr/bin/top -b -n 1
A05_df.out:Disk space...:/bin/df -h
A06_rpm_qa.out:Package informations...:/bin/rpm -qa
A07_chkconfig.out:Service and Daemon infomations:/sbin/chkconfig --list
A08_stdout:System Activity...
A09_sar.out:...CPU activityusr:/usr/bin/sar
A10_sar_W.out:...Swap activityusr:/usr/bin/sar -W
A11_sar_b.out:...I/O activityusr:/usr/bin/sar -b
A12_sar_n.out:...Device activit:/usr/bin/sar -n FULL
A13_free_k.out:Free memory...:/usr/bin/free -k
A14_mount.out:Mount informations...:/bin/mount
A15_fdisk_l.out:Partition informations...:/sbin/fdisk -l
A16_stdout:Parsing /proc...
A17_proc_fs_nfs_exports.out:.../proc/fs/nfs/exports:cat /proc/fs/nfs/exports
A18_proc_modules.out:.../proc/modules:cat /proc/modules
# for hpasm on HP Server
# A20_proc_cpqfan.out::cat /proc/cpqfan
# A21_proc_cpqpci.out::cat /proc/cpqpci
# A22_proc_cpqpwr.out::cat /proc/cpqpwr
# A23_proc_cpqtemp.out::cat /proc/cpqtemp
# A24_proc_modules.out::cat /proc/modules

[localhost]
L00_stdout:Configuration of Frontend (localhost)
L01_hosts:/etc/hosts...:cat /etc/hosts
L02_hosts_equiv:/etc/hosts.quiv...:cat /etc/hosts.equiv
L03_hosts_allow:/etc/hosts.allow...:cat /etc/hosts.allow
L04_hosts_deny:/etc/hosts.deny...:cat /etc/hosts.deny
L05_hosts.conf:/etc/hosts.conf...:cat /etc/hosts.conf
L06_fstab:/etc/fstab...:cat /etc/fstab
L06_nsswich_conf:/etc/nsswitch.conf...:cat /etc/nsswitch.conf
L07_status_iptables:status of iptables...:/etc/ini.d/iptables status
# L10_stdout:Gathering infomations of TORQUE
# L11_pbsnodes:...pbsnodes:/opt/torque/bin/pbsnodes -a
# L20_stdout:Gathering infomations of LSF
# L21_bjobs:...bjobs:bjobs -u all -a
# L22_lshosts:...lshosts:lshosts -w
# L23_bhosts:b...bhosts:bhosts -w
L30_stdout:Gathering infomations of GridEngine
L31_qstat:...qstat:qstat -f
# L40_stdout:Gathering status of PVFS
# L41_pvfscheck:...pvfscheck:/usr/local/sbin/pvfscheck -v

コメントは#ではじまる行末までです。

記述フォーマット

設定ファイルの記述フォーマットを次に示します。

格納ファイル名の箇所を stdout とした場合は 単に文字列を出力するだけです。

実行例

[root@dcluster ~]# GatherSysInfo
Gathering system informations from all nodes.
Boot up messages...
Network Interface
process informations...
TOP Process informations...(SLOW)
Disk space...
Package informations...
Service and Daemon infomations
System Activity...
...CPU activity
...Swap activity
...I/O activity
...Device activit
Free memory...
Mount informations...
Partition informations...
Parsing /proc...
.../proc/fs/nfs/exports
.../proc/modules
Configuration of Frontend (localhost)
/etc/hosts...
/etc/hosts.quiv...
/etc/hosts.allow...
/etc/hosts.deny...
/etc/hosts.conf...
/etc/fstab...
/etc/nsswitch.conf...
status of iptables...
Gathering infomations of GridEngine
...qstat

If you have any questions,
Please send next file to support stuff.
/tmp/Gather.20070228190030.tgz