linux导出硬件信息,Linux 上生成硬件信息与配置报告: Sysreport

当需要 Linux 主机详细完整的描述给另一个人的时候,这个工具非常适合。用 root 用户之行,但要注意最好不要抓取 currently installed packages 信息,这一步非常慢。(用 -norpm 参数)

存储厂商 EMC 也有个 EMCgrab 工具,工作原理类似,额外抓取了存储相关的信息而已。估计各家存储厂商都有,要不远程支持也太费劲了。

Sysreport

Sysreport is a system utility created to collect important system data, in order to assist the Red Hat Technical Support and Development Teams in solving customer problems. Sysreport gathers as much system information as is possible, while avoiding certain actions: the creation of a very large file; the invasion of the user's privacy; and the collection of information that could be detrimental to the integrity of the system.

To start Sysreport, you must be logged in as root. As root, at a shell prompt type the command sysreport.

You will then see the following message: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 awhile 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.

Press ENTER to continue, or CTRL-C to quit.

As the message says, ignore any failed messages. Sysreport checks for all possible Red Hat Linux system packages. If you do not have every Red Hat Linux package installed, you will see failed messages.

After pressing [Enter], Sysreport will gather information about your system's configuration. When it is finished, you will see the following message:

Enter your first initial and last name with no spaces (example: jsmith):

Enter the information requested, and press [Enter]. Sysreport will place a compressed TAR file in the /tmp directory beginning with the initial and last name you just entered. You will see a message telling you to email this file to the Red Hat support team. However, even if you do not need support, you can use this information to back up most of your system's configuration.

Use the command tar ztvf filename with the name of the compressed TAR file that you created to display a list of its contents.

*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值