sysreport是一个脚本程序,用来收集系统信息,比如运行的是什么核心?加载了什么驱动?还有各种服务的配置文件。
要能够运行sysreport,必需要先安装sysreport软件包。如果该系统已经在红帽网络中注册,则可以通过up2date命令安装。
up2date sysreport
如果系统没有在红帽网络(RHN)中注册,则可以使用RPM命令安装光盘上sysreport软件包。
rpm -Uvh sysreport-.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bd sysreport.spec
cd /usr/src/redhat/BUILD
cd sysreport-1.3.13-1/
./sysreport
This utility will go through and collect some detailed information
about the hardware and setup of your Red Hat Linux system.
This information will be used to diagnose problems with your system
and will be considered confidential information. Red Hat will use
this information for diagnostic purposes ONLY.
Please wait while we collect information about your system.
This process may take a while to complete....
No changes will be made to your system during this process.
NOTE: You can safely ignore a failed message. This only means a file
we were checking for did not exist.
If your system hangs while gathering rpm information, please abort
the script with CTRL-C and run it again after adding -norpm to the
sysreport command line
Press ENTER to continue, or CTRL-C to quit.
Getting system configuration information.
Determining Red Hat Linux version: [ OK ]
Determinding your current hostname: [ OK ]
Getting the date: [ OK ]
Checking your systems current uptime and load average: [ OK ]
Checking available memory: [ OK ]
Checking free disk space: [ OK ]
Checking currently running processes: [ OK ]
Checking current process tree: [ OK ]
Collecting information about ld.so: [ OK ]
Collecting information about currently installed packages:
This may take several minutes....
运行结束之后,sysreport会在/tmp目录下生成一个压缩的tar格式的文件。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/188692/viewspace-901129/ ,如需转载,请注明出处,否则将追究法律责任。