yum update してたら気づいたパッケージ。
---> Package sos.noarch 0:1.7-9.2.el5_2.2 set to be updated
ん?何だ sos って。
[root@localhost ~]# rpm -q sos sos-1.7-9.2.el5_2.2 [root@localhost ~]# rpm -ql sos /usr/bin/rh-upload-core /usr/lib/python2.4/site-packages/sos /usr/lib/python2.4/site-packages/sos/__init__.py /usr/lib/python2.4/site-packages/sos/__init__.pyc /usr/lib/python2.4/site-packages/sos/__init__.pyo /usr/lib/python2.4/site-packages/sos/helpers.py /usr/lib/python2.4/site-packages/sos/helpers.pyc /usr/lib/python2.4/site-packages/sos/helpers.pyo /usr/lib/python2.4/site-packages/sos/plugins /usr/lib/python2.4/site-packages/sos/plugins/__init__.py /usr/lib/python2.4/site-packages/sos/plugins/__init__.pyc /usr/lib/python2.4/site-packages/sos/plugins/__init__.pyo /usr/lib/python2.4/site-packages/sos/plugins/amd.py /usr/lib/python2.4/site-packages/sos/plugins/amd.pyc /usr/lib/python2.4/site-packages/sos/plugins/amd.pyo /usr/lib/python2.4/site-packages/sos/plugins/apache.py /usr/lib/python2.4/site-packages/sos/plugins/apache.pyc /usr/lib/python2.4/site-packages/sos/plugins/apache.pyo /usr/lib/python2.4/site-packages/sos/plugins/autofs.py /usr/lib/python2.4/site-packages/sos/plugins/autofs.pyc /usr/lib/python2.4/site-packages/sos/plugins/autofs.pyo /usr/lib/python2.4/site-packages/sos/plugins/bootloader.py /usr/lib/python2.4/site-packages/sos/plugins/bootloader.pyc /usr/lib/python2.4/site-packages/sos/plugins/bootloader.pyo /usr/lib/python2.4/site-packages/sos/plugins/cluster.py /usr/lib/python2.4/site-packages/sos/plugins/cluster.pyc /usr/lib/python2.4/site-packages/sos/plugins/cluster.pyo /usr/lib/python2.4/site-packages/sos/plugins/devicemapper.py /usr/lib/python2.4/site-packages/sos/plugins/devicemapper.pyc /usr/lib/python2.4/site-packages/sos/plugins/devicemapper.pyo /usr/lib/python2.4/site-packages/sos/plugins/emc.py /usr/lib/python2.4/site-packages/sos/plugins/emc.pyc /usr/lib/python2.4/site-packages/sos/plugins/emc.pyo /usr/lib/python2.4/site-packages/sos/plugins/filesys.py /usr/lib/python2.4/site-packages/sos/plugins/filesys.pyc /usr/lib/python2.4/site-packages/sos/plugins/filesys.pyo /usr/lib/python2.4/site-packages/sos/plugins/ftp.py /usr/lib/python2.4/site-packages/sos/plugins/ftp.pyc /usr/lib/python2.4/site-packages/sos/plugins/ftp.pyo /usr/lib/python2.4/site-packages/sos/plugins/general.py /usr/lib/python2.4/site-packages/sos/plugins/general.pyc /usr/lib/python2.4/site-packages/sos/plugins/general.pyo /usr/lib/python2.4/site-packages/sos/plugins/hardware.py /usr/lib/python2.4/site-packages/sos/plugins/hardware.pyc /usr/lib/python2.4/site-packages/sos/plugins/hardware.pyo /usr/lib/python2.4/site-packages/sos/plugins/initrd.py /usr/lib/python2.4/site-packages/sos/plugins/initrd.pyc /usr/lib/python2.4/site-packages/sos/plugins/initrd.pyo /usr/lib/python2.4/site-packages/sos/plugins/kernel.py /usr/lib/python2.4/site-packages/sos/plugins/kernel.pyc /usr/lib/python2.4/site-packages/sos/plugins/kernel.pyo /usr/lib/python2.4/site-packages/sos/plugins/ldap.py /usr/lib/python2.4/site-packages/sos/plugins/ldap.pyc /usr/lib/python2.4/site-packages/sos/plugins/ldap.pyo /usr/lib/python2.4/site-packages/sos/plugins/libraries.py /usr/lib/python2.4/site-packages/sos/plugins/libraries.pyc /usr/lib/python2.4/site-packages/sos/plugins/libraries.pyo /usr/lib/python2.4/site-packages/sos/plugins/mail.py /usr/lib/python2.4/site-packages/sos/plugins/mail.pyc /usr/lib/python2.4/site-packages/sos/plugins/mail.pyo /usr/lib/python2.4/site-packages/sos/plugins/memory.py /usr/lib/python2.4/site-packages/sos/plugins/memory.pyc /usr/lib/python2.4/site-packages/sos/plugins/memory.pyo /usr/lib/python2.4/site-packages/sos/plugins/named.py /usr/lib/python2.4/site-packages/sos/plugins/named.pyc /usr/lib/python2.4/site-packages/sos/plugins/named.pyo /usr/lib/python2.4/site-packages/sos/plugins/networking.py /usr/lib/python2.4/site-packages/sos/plugins/networking.pyc /usr/lib/python2.4/site-packages/sos/plugins/networking.pyo /usr/lib/python2.4/site-packages/sos/plugins/nfsserver.py /usr/lib/python2.4/site-packages/sos/plugins/nfsserver.pyc /usr/lib/python2.4/site-packages/sos/plugins/nfsserver.pyo /usr/lib/python2.4/site-packages/sos/plugins/pam.py /usr/lib/python2.4/site-packages/sos/plugins/pam.pyc /usr/lib/python2.4/site-packages/sos/plugins/pam.pyo /usr/lib/python2.4/site-packages/sos/plugins/printing.py /usr/lib/python2.4/site-packages/sos/plugins/printing.pyc /usr/lib/python2.4/site-packages/sos/plugins/printing.pyo /usr/lib/python2.4/site-packages/sos/plugins/process.py /usr/lib/python2.4/site-packages/sos/plugins/process.pyc /usr/lib/python2.4/site-packages/sos/plugins/process.pyo /usr/lib/python2.4/site-packages/sos/plugins/radius.py /usr/lib/python2.4/site-packages/sos/plugins/radius.pyc /usr/lib/python2.4/site-packages/sos/plugins/radius.pyo /usr/lib/python2.4/site-packages/sos/plugins/rhn.py /usr/lib/python2.4/site-packages/sos/plugins/rhn.pyc /usr/lib/python2.4/site-packages/sos/plugins/rhn.pyo /usr/lib/python2.4/site-packages/sos/plugins/rpm.py /usr/lib/python2.4/site-packages/sos/plugins/rpm.pyc /usr/lib/python2.4/site-packages/sos/plugins/rpm.pyo /usr/lib/python2.4/site-packages/sos/plugins/samba.py /usr/lib/python2.4/site-packages/sos/plugins/samba.pyc /usr/lib/python2.4/site-packages/sos/plugins/samba.pyo /usr/lib/python2.4/site-packages/sos/plugins/selinux.py /usr/lib/python2.4/site-packages/sos/plugins/selinux.pyc /usr/lib/python2.4/site-packages/sos/plugins/selinux.pyo /usr/lib/python2.4/site-packages/sos/plugins/sendmail.py /usr/lib/python2.4/site-packages/sos/plugins/sendmail.pyc /usr/lib/python2.4/site-packages/sos/plugins/sendmail.pyo /usr/lib/python2.4/site-packages/sos/plugins/squid.py /usr/lib/python2.4/site-packages/sos/plugins/squid.pyc /usr/lib/python2.4/site-packages/sos/plugins/squid.pyo /usr/lib/python2.4/site-packages/sos/plugins/ssh.py /usr/lib/python2.4/site-packages/sos/plugins/ssh.pyc /usr/lib/python2.4/site-packages/sos/plugins/ssh.pyo /usr/lib/python2.4/site-packages/sos/plugins/startup.py /usr/lib/python2.4/site-packages/sos/plugins/startup.pyc /usr/lib/python2.4/site-packages/sos/plugins/startup.pyo /usr/lib/python2.4/site-packages/sos/plugins/system.py /usr/lib/python2.4/site-packages/sos/plugins/system.pyc /usr/lib/python2.4/site-packages/sos/plugins/system.pyo /usr/lib/python2.4/site-packages/sos/plugins/systemtap.py /usr/lib/python2.4/site-packages/sos/plugins/systemtap.pyc /usr/lib/python2.4/site-packages/sos/plugins/systemtap.pyo /usr/lib/python2.4/site-packages/sos/plugins/x11.py /usr/lib/python2.4/site-packages/sos/plugins/x11.pyc /usr/lib/python2.4/site-packages/sos/plugins/x11.pyo /usr/lib/python2.4/site-packages/sos/plugins/xen.py /usr/lib/python2.4/site-packages/sos/plugins/xen.pyc /usr/lib/python2.4/site-packages/sos/plugins/xen.pyo /usr/lib/python2.4/site-packages/sos/plugins/xinetd.py /usr/lib/python2.4/site-packages/sos/plugins/xinetd.pyc /usr/lib/python2.4/site-packages/sos/plugins/xinetd.pyo /usr/lib/python2.4/site-packages/sos/plugins/yum.py /usr/lib/python2.4/site-packages/sos/plugins/yum.pyc /usr/lib/python2.4/site-packages/sos/plugins/yum.pyo /usr/lib/python2.4/site-packages/sos/plugintools.py /usr/lib/python2.4/site-packages/sos/plugintools.pyc /usr/lib/python2.4/site-packages/sos/plugintools.pyo /usr/lib/python2.4/site-packages/sos/policyredhat.py /usr/lib/python2.4/site-packages/sos/policyredhat.pyc /usr/lib/python2.4/site-packages/sos/policyredhat.pyo /usr/sbin/sosreport /usr/sbin/sysreport /usr/sbin/sysreport.legacy /usr/share/doc/sos-1.7 /usr/share/doc/sos-1.7/ChangeLog /usr/share/doc/sos-1.7/LICENSE /usr/share/doc/sos-1.7/README /usr/share/doc/sos-1.7/README.rh-upload-core /usr/share/doc/sos-1.7/TODO /usr/share/locale/ar/LC_MESSAGES/sos.mo /usr/share/locale/en/LC_MESSAGES/sos.mo /usr/share/locale/fr/LC_MESSAGES/sos.mo /usr/share/locale/it/LC_MESSAGES/sos.mo /usr/share/man/man1/sosreport.1.gz /usr/share/sysreport /usr/share/sysreport/functions /usr/share/sysreport/sysreport-fdisk /usr/share/sysreport/text.xsl
コマンドは /usr/sbin/sosreport か。( pythonのスクリプト? )
man してみる。
sosreport – Generate debugging information for this system
ふむむ。
引数なしでコマンドを実行すると /tmp 以下に sosreport-localhost-921272-d5cb9e.tar.bz2 ってのができた。
解凍( tar jxvf )してみるといろいろなシステム情報が…。
[root@localhost localhost-921272]# ls -l | grep -v ^d 合計 164 lrwxrwxrwx 1 root root 37 11月 18 15:45 chkconfig -> sos_commands/startup/chkconfig_--list lrwxrwxrwx 1 root root 25 11月 18 15:45 date -> sos_commands/general/date lrwxrwxrwx 1 root root 27 11月 18 15:45 df -> sos_commands/filesys/df_-al lrwxrwxrwx 1 root root 31 11月 18 15:45 dmidecode -> sos_commands/hardware/dmidecode lrwxrwxrwx 1 root root 29 11月 18 15:45 fdisk-l -> sos_commands/filesys/fdisk_-l lrwxrwxrwx 1 root root 24 11月 18 15:45 free -> sos_commands/memory/free lrwxrwxrwx 1 root root 29 11月 18 15:45 hostname -> sos_commands/general/hostname lrwxrwxrwx 1 root root 35 11月 18 15:45 ifconfig -> sos_commands/networking/ifconfig_-a lrwxrwxrwx 1 root root 61 11月 18 15:45 installed-rpms -> sos_commands/rpm/rpm_-qa_--qf_NAME_-_VERSION_-_RELEASE_-_ARCH lrwxrwxrwx 1 root root 25 11月 18 15:45 lsmod -> sos_commands/kernel/lsmod lrwxrwxrwx 1 root root 36 11月 18 15:45 lsof -> sos_commands/filesys/lsof_-b_M_-n_-l lrwxrwxrwx 1 root root 27 11月 18 15:45 lspci -> sos_commands/hardware/lspci lrwxrwxrwx 1 root root 29 11月 18 15:45 mount -> sos_commands/filesys/mount_-l lrwxrwxrwx 1 root root 38 11月 18 15:45 netstat -> sos_commands/networking/netstat_-neopa lrwxrwxrwx 1 root root 30 11月 18 15:45 ps -> sos_commands/process/ps_auxwww lrwxrwxrwx 1 root root 27 11月 18 15:45 pstree -> sos_commands/process/pstree lrwxrwxrwx 1 root root 32 11月 18 15:45 route -> sos_commands/networking/route_-n lrwxrwxrwx 1 root root 24 11月 18 15:45 rpm-Va -> sos_commands/rpm/rpm_-Va lrwxrwxrwx 1 root root 29 11月 18 15:45 sestatus -> sos_commands/selinux/sestatus lrwxrwxrwx 1 root root 28 11月 18 15:45 uname -> sos_commands/kernel/uname_-a lrwxrwxrwx 1 root root 27 11月 18 15:45 uptime -> sos_commands/general/uptime lrwxrwxrwx 1 root root 39 11月 18 15:45 vgdisplay -> sos_commands/devicemapper/vgdisplay_-vv
SCM で保存されるやつもコレか…。