- 积分
- 16844
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
sosreport命令linux系统收集系统信息9 \' L; }; I5 O- l
[root@localhost os]# sosreport --help: z: }3 S2 ~+ s( W7 ]) W, k
usage: sosreport [options]
$ S& F. x9 e& x4 |Some examples:, L, s+ ?# z3 i. z) m
enable dlm plugin only and collect dlm lockdumps:; [3 o; I; Q5 D. p
# sosreport -o dlm -k dlm.lockdump
4 P8 A ]. v7 d$ ldisable memory and samba plugins, turn off rpm -Va collection:
, Q: |/ e. O: q; y1 ^ # sosreport -n memory,samba -k rpm.rpmva=off/ q$ B% [: k9 Q
optional arguments:
+ H* B5 E! p5 k2 ? -h, --help show this help message and exit
: ?) n6 G- }! G z -a, --alloptions enable all options for loaded plugins% S, N9 l1 q0 `( [3 F: Q
--all-logs collect all available logs regardless of size
* C# y1 g2 B/ j1 ~9 N# @8 F. t: I --batch batch mode - do not prompt interactively
$ b1 y) A. f( G --build preserve the temporary directory and do not package4 V S6 y: v! I, F
results% o- f3 F/ n" ?2 v' p
--case-id CASE_ID specify case identifier
4 Z1 O5 b) B6 r& i1 G% R0 @& L -c CHROOT, --chroot CHROOT
9 t- c- L8 q7 G chroot executed commands to SYSROOT [auto, always," b4 m0 L7 A( c. x
never] (default=auto)
8 `5 S0 \- H6 h9 o --config-file CONFIG_FILE% R$ y( f9 `1 K, m+ H
specify alternate configuration file
5 J! k6 f. f- C2 V% {' Y; b --debug enable interactive debugging using the python debugger3 Q( m, D# f$ I! L% p
--desc DESC, --description DESC
+ Y) _% D9 C O4 A$ |6 D Description for a new preset2 {/ {8 z7 L. Q5 `) n) O2 L0 s0 X
--experimental enable experimental plugins* T N a8 }6 P S: }
-e ENABLEPLUGINS, --enable-plugins ENABLEPLUGINS) H: Y0 S: a! S2 V
enable these plugins( d9 Y- E; ]7 Z& f& }
-k PLUGOPTS, --plugin-option PLUGOPTS9 T1 t6 t' C3 D! ?! C" Q8 D# j& z
plugin options in plugname.option=value format (see
' Z' j: t# ~+ U0 ^, T! m% O" [ -l)
$ l; u0 E! i6 T1 B# v+ Q+ X- ` --label LABEL, --name LABEL7 \2 {( M+ S) V7 B- X
specify an additional report label4 t8 L; V/ K2 Q
-l, --list-plugins list plugins and available plugin options
2 v' \! q2 S, q --list-presets display a list of available presets
* V5 A4 C S/ P2 c- H. u --list-profiles display a list of available profiles and plugins that- O3 G' s$ M" J( S
they include. m" H( d# }8 a; [$ J% ~
--log-size LOG_SIZE limit the size of collected logs (in MiB)
* H% D1 F7 ~" T! N -n NOPLUGINS, --skip-plugins NOPLUGINS
b9 F; z: b3 ~: z" g disable these plugins
' l/ @7 l: _% O$ ?+ C9 a8 R6 Z0 f --no-report disable HTML/XML reporting( R2 |/ d- |6 Q
--note NOTE Behaviour notes for new preset
/ `; [) S7 M. i' m -o ONLYPLUGINS, --only-plugins ONLYPLUGINS# v: ^/ V9 Q9 q" E4 s
enable these plugins only0 H0 F" c9 R) t9 Y) u) E2 u
--preset PRESET A preset identifier+ \1 ? Q s. M1 l, c g" \( k' Y
-p PROFILES, --profile PROFILES# s) k% Z" ]8 W* s
enable plugins used by the given profiles
7 `0 t- |* E% X5 ^' c* E6 ] --quiet only print fatal errors. j" {; n* H4 n5 A' [8 B7 y
-s SYSROOT, --sysroot SYSROOT- \3 I: D/ m- A n% ]1 M, a
system root directory path (default='/')" `+ y" X) ?/ |) V1 v
--ticket-number CASE_ID
/ e( U0 y7 |3 l/ Z- v0 T specify ticket number
2 S2 q) y4 q9 B0 _ --tmp-dir TMP_DIR specify alternate temporary directory) K# q( L) X2 y w# [$ N+ F
-v, --verbose increase verbosity( a' ?3 Q- L# H! O) q' ]
--verify perform data verification during collection
" k2 T# \5 c$ N j# [5 H/ l -z COMPRESSION_TYPE, --compression-type COMPRESSION_TYPE& o) d0 q1 P+ ^' k9 x& M
compression technology to use [auto, gzip, bzip2, xz]
% v+ A) N- [; S- m( i (default=auto)7 Q8 n' f r8 R2 S9 L
-t THREADS, --threads THREADS
; ~9 h, A' s* G3 m+ S. l specify number of concurrent plugins to run# S1 v9 I* _' q) H
(default=4)
4 Y0 E8 }5 J5 P; i" @. b+ r3 E7 l --add-preset ADD_PRESET7 t! G2 y$ z( U
Add a new named command line preset
3 ]8 s; d. w7 a2 g: v --del-preset DEL_PRESET
9 o. }# {, I# ?! A Delete the named command line preset) P u8 w. ?; i( y
--encrypt-key ENCRYPT_KEY4 L0 o7 U, I" U- ?
Encrypt the final archive using a GPG key-pair2 P$ b# ?# \0 A
--encrypt-pass ENCRYPT_PASS% U! q; v7 X2 z9 ]. e8 T- g
Encrypt the final archive using a password
4 | p5 T( ^+ \( T2 Y- b1 |# `/ h$ [( |3 a
k1 k9 v3 i. T5 A+ a h[root@localhost ~]# sosreport -a
?; M" u% V- K. [" usosreport (version 3.6)
( i; T6 _$ n0 CThis command will collect diagnostic and configuration information from
0 }. _+ z4 U, t; U* c1 Xthis Red Hat Enterprise Linux system and installed applications.- V& c2 ^% b1 H
An archive containing the collected information will be generated in
: T! S. y `4 M, g/ g/ a) v e* Q/var/tmp/sos.TZJHtD and may be provided to a Red Hat support
# |5 n: x" U! f1 D9 I0 w' Drepresentative.
3 G) c0 g; a6 t. k4 rAny information provided to Red Hat will be treated in accordance with
) S4 }2 S% I6 a& W7 Ythe published support policies at:) V, R' ]; q% H5 D& M
https://access.redhat.com/support/
) s& o1 B7 L; u$ E2 E& qThe generated archive may contain data considered sensitive and its
# V+ a2 w1 f! ?1 n. ^& Ocontent should be reviewed by the originating organization before being
0 h, _+ s7 Z+ E( Y) I. b' Ypassed to any third party.
7 ^6 x8 L) }0 c6 r+ NNo changes will be made to system configuration.
- s9 H# c8 l" y" y0 n, z; B% {! NPress ENTER to continue, or CTRL-C to quit.
- i% L7 m5 F9 `3 D' p0 nPlease enter the case id that you are generating this report for []: + [/ F6 y: A5 ]0 d) s8 [
Setting up archive ...: S+ N9 _6 G8 s+ Z
Setting up plugins ...
& |9 `8 ~; m+ O n. b- [$ y# |1 F4 b) w8 A7 \
Running plugins. Please wait ...
1 A) Y: _. P( [4 _ Starting 90/106 systemd [Running: postfix rpm selinux systemd]
, c0 F: ]: M% o s' E
4 N4 C& q _* A9 c- n/ q
0 c7 K& G: e" a; E0 X+ RYour sosreport has been generated and saved in:
9 M+ ?4 }/ A) @( C K /var/tmp/sosreport-localhost-2021-11-15-wihnsdi.tar.xz
- {, c" R5 r: @0 V: k; z" w. ^The checksum is: 7327254563dc3bd72626772f4754a0f6% |, _0 Z: ? ?& g% V
Please send this file to your support representative.
% e& T5 ?1 \3 C. w, Z# z7 E) U% Q( n( A- }
8 T' O' I" T2 g+ R$ J0 l
5 q4 D0 P; z% S/ w1 c1 o3 \6 h; L
+ ]$ I% v. X' W @- }+ j7 z$ Q( `' W9 B9 H n* d& v% P1 T* j0 P
, @7 Z# q3 g' f/ x. F. v0 |
5 `- S" A/ S) r0 o* g9 j: q& ~[root@localhost ~]# cat /etc/sos.conf! G* D; b# H4 {# ^
[plugins]' y+ `% C9 |9 k3 f% F
#disable = rpm, selinux, dovecot" {6 i0 j8 }+ a
[tunables]; `) ?4 b5 `" E) B, _. M
#rpm.rpmva = off
% W8 k5 K4 P/ @# u#general.syslogsize = 15
3 g" m, {: m4 K# h2 e: A. V4 y5 h2 \. a# o- m' {8 G
$ a( ]* A# ?, ]( g
|
|