What is a "sosreport" and how do I create it in Red Hat Enterprise Linux 4.6 and later
来源:互联网 发布:java 数据字典设计 编辑:程序博客网 时间:2024/05/16 19:45
Issue
- What is a sosreport andhow do I create one?
- How do I generate a sosreport?
Environment
- Red Hat Enterprise Linux 4.6+
- Red Hat Enterprise Linux 5+
- Red Hat Enterprise Linux 6+
Resolution
The sosreport command is atool that collects
To run a sosreport, thesos package must be installed.The package should be installed by default, but if the package isnot installed, follow the steps below:
Red Hat Enterprise Linux 4 Update 6 orlater
If the system is registered with Red Hat Network (RHN),sos can be installed using theup2date command:
# up2date sos
Red Hat Enterprise Linux 5 and later
If the system is registered with RHN, use the yum command:
# yum install sos
If the system is not registered with RHN, the sos package can be downloaded from the RHNwebsite or found on the installation CDs. Therpm command can be used to install thepackage on any version of Red Hat Enterprise Linux:
# rpm -Uvh sos-<version>.<arch>.rpm
Once the package has been installed, issue the followingcommand:
Note: sosreport requires rootpermissions to run.
# sosreport
The sosreport will run for several minutes, according todifferent system, the running time maybe more longer.
Once completed, sosreportwill generate a compressed abz2 file under/tmp. Providethis file to the support representative.
Normally, the size of the bz2 file will be about 3MB, but if your system has alarge amount of log files, it maybe very big.
The sosreport has some plugins which can be turned on/off, thefollowing command lists the plugins:
# sosreport -l
For example, turning off the rpmva plugin will save time runningsosreport.
# sosreport -k rpm.rpmva=off
Note:
1. In Red Hat Enterprise Linux 4.5 and earlier, use sysreport instead: What is a sysreportand how do I run it ?
2. In the sos package,there is also a command calledsysreport, but it is just a soft link tothe sosreport command:
# ls -l /usr/sbin/sysreportlrwxrwxrwx 1 root root 19 Nov 3 2008 /usr/sbin/sysreport -> /usr/sbin/sosreport
If you do want to use the legacy version of sysreport, please use thesysreport.legacy commandin sos package.
https://access.redhat.com/kb/docs/DOC-3593
- What is a "sosreport" and how do I create it in Red Hat Enterprise Linux 4.6 and later
- What is a cronjob and how do I use it?
- What is a NullPointerException, and how do I fix it?
- How do I add raw device mapping in Red Hat Enterprise Linux 5?
- How do I configure vncserver to start GNOME or KDE by default in Red Hat Enterprise Linux ?
- What is invalid parameter noinfo and how do I get rid of it? (转)
- What is Logical Volume Management and How Do You Enable It in Ubuntu?
- What is junction object and how to create it?
- Learning Red Hat Enterprise Linux and Fedora
- Hadoop: What it is, how it works, and what it can do
- What is overfitting and how can I avoid it?
- Tuning and Optimizing Red Hat Enterprise Linux for Oracle 9i and 10g Databases
- What is invalid parameter noinfo and how do I get rid of it分(如何优化stl迭代器)
- What is reflection and how to use it in CSharp ?
- What is Index and how it works in SQL Server?
- What is virtual memory, how is it implemented, and why do operating systems use it?
- What is a GPU and how does it work?
- What Is UAT, And Why Do It?
- Solaris 使用ndd指令设置网卡速率
- 习题2-7 近似计算
- C/C++/JAVA/语法大PK——访问控制
- 从solaris explorer鉴别DISK 硬件故障识别方法
- ios 中生成随机数
- What is a "sosreport" and how do I create it in Red Hat Enterprise Linux 4.6 and later
- 基于移动终端(平板电脑、手机)的网络调查
- struct sizeof
- How to interpret the meanings of HDD LEDs
- 图像分割方法
- 如何快速方便的输出向量vector容器中不重复的内容
- SUN X4200 Server, All Leds of HDD0 is not lit
- weblogic 部署应用时一直停留在部署状态解决办法
- Oracle Licensing