linux里面工具使用方法,linux中sosreport工具安装使用方法详解

[root@361way ~]# sosreport --help

Usage: sosreport [options]

Options:

-h, --help            show this help message and exit

-l, --list-plugins    list plugins and available plugin options

-n NOPLUGINS, --skip-plugins=NOPLUGINS

disable these plugins

-e ENABLEPLUGINS, --enable-plugins=ENABLEPLUGINS

enable these plugins

-o ONLYPLUGINS, --only-plugins=ONLYPLUGINS

enable these plugins only

-k PLUGOPTS, --plugin-option=PLUGOPTS

plugin options in plugname.option=value format (see

-l)

-a, --alloptions      enable all options for loaded plugins

--batch               batch mode - do not prompt interactively

--build               keep sos tree available and dont package results

-v, --verbose         increase verbosity

--quiet               only print fatal errors

--debug               enable interactive debugging using the python debugger

--ticket-number=TICKET_NUMBER

specify ticket number

--name=CUSTOMER_NAME  specify report name

--config-file=CONFIG_FILE

specify alternate configuration file

--tmp-dir=TMP_DIR     specify alternate temporary directory

--report              Enable HTML/XML reporting

--profile             turn on profiling

-z COMPRESSION_TYPE, --compression-type=COMPRESSION_TYPE

compression technology to use [auto, zip, gzip, bzip2,

xz] (default=auto)

Some examples:

enable cluster plugin only and collect dlm lockdumps:

# sosreport -o cluster -k cluster.lockdump

disable memory and samba plugins, turn off rpm -Va collection:

# sosreport -n memory,samba -k rpm.rpmva=off

上面也列出了具体操作的示例。其中-l 参数会列出当前enable和disable的所有服务插件及当前available的所有插件。

[root@361way log]# sosreport -a --report

sosreport (version 3.0)

This command will collect diagnostic and configuration information from

this CentOS Linux system and installed applications.

An archive containing the collected information will be generated in

/var/tmp and may be provided to a CentOS support representative.

Any information provided to CentOS will be treated in accordance with

the published support policies at:

https://www.centos.org/

The generated archive may contain data considered sensitive and its

content should be reviewed by the originating organization before being

passed to any third party.

No changes will be made to system configuration.

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

Please enter your first initial and last name [361way.com]:

Please enter the case number that you are generating this report for:

Running plugins. Please wait ...

Running 68/68: yum...

Creating compressed archive...

Your sosreport has been generated and saved in:

/var/tmp/sosreport-361way.com-20140912204339.tar.xz

The checksum is: eaf5b2cbb1e9be68d41be5e5a60a61b6

Please send this file to your support representative.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值