1sos(1)                      General Commands Manual                     sos(1)
2
3
4

NAME

6       sos  - A unified tool for collecting system logs and other debug infor‐
7       mation
8

SYNOPSIS

10       sos component [options]
11
12

DESCRIPTION

14       sos is a diagnostic data collection utility, used by system administra‐
15       tors,  support representatives, and the like to assist in troubleshoot‐
16       ing issues with a system or group of systems.
17
18       The most well known function is  sos report or sosreport as it was pre‐
19       viously known.
20
21       An  sos archive is typically requested by support organizations to col‐
22       lect baseline configuration and system data from  which  to  begin  the
23       troubleshooting process.
24
25
26

COMPONENTS

28       sos supports several subcommands or components. Each provides a differ‐
29       ent set of information for the user. Supported components are  as  fol‐
30       lows
31
32
33       report Report generates an archive of system information including con‐
34              figuration files and command output. Information included in the
35              report  is  based  upon plugins that are activated automatically
36              when certain criteria, such as installed packages,  files,  ser‐
37              vices, or system architecture is detected.
38
39              See sos report --help and man sos-report for more information.
40
41              May  also be invoked via the alias rep or the deprecated command
42              sosreport.
43
44
45       collect
46              Collect is used to capture reports on multiple systems  simulta‐
47              neously.  These systems can either be defined by the user at the
48              command line and/or defined by clustering software  that  exists
49              either on the local system or on a "primary" system that is able
50              to inform about other nodes in the cluster.
51
52              When running collect, sos report  will  be  run  on  the  remote
53              nodes, and then the resulting archives will be copied from those
54              nodes to the local system running sos collect. Archives are then
55              removed from the remote systems.
56
57              See sos collect --help and man sos-collect for more information.
58
59              May  also  be  invoked via the alias sos collector or the depre‐
60              cated command sos-collector.
61
62
63       clean|cleaner|mask
64              This subcommand takes input of either 1) an  sosreport  tarball,
65              2)  a  collection of sosreport tarballs such as from collect, or
66              3) the unpackaged directory of an sosreport and  obfuscates  po‐
67              tentially  sensitive  system  information that is not covered by
68              the standard postprocessing of sos report.
69
70              Such data includes IP addresses, networks,  MAC  addresses,  and
71              more.  Data  obfuscated  by  this command will remain consistent
72              throughout the report and across reports provided  in  the  same
73              invocation.  Additionally,  care  is  taken  to maintain network
74              topology relationships between matched data items.
75
76              See  sos clean --help and man sos-clean for more information.
77
78              May be invoked via either sos clean, sos cleaner, sos  mask,  or
79              via  the  --clean,  --cleaner  or  --mask options for report and
80              collect.
81
82
83       help   This subcommand is used to retrieve more detailed information on
84              the  various SoS commands and components than is directly avail‐
85              able in either other manpages or --help output.
86
87              See  sos help --help and  man sos-help for more information.
88
89

GLOBAL OPTIONS

91       sos components provide their own set of options, however the  following
92       are available to be set across all components.
93
94       --batch  Do not prompt interactively, user will not be prompted for any
95       data
96
97       --encrypt-key KEY
98              Encrypts the resulting archive  that  sosreport  produces  using
99              GPG.  KEY  must  be an existing key in the user's keyring as GPG
100              does not allow for keyfiles.  KEY can be any value  accepted  by
101              gpg's 'recipient' option.
102
103              Note  that the user running sosreport must match the user owning
104              the keyring from which keys will be obtained. In particular this
105              means  that  if  sudo is used to run sosreport, the keyring must
106              also be set up using sudo (or direct shell  access  to  the  ac‐
107              count).
108
109              Users should be aware that encrypting the final archive will re‐
110              sult in sos using double the amount of temporary  disk  space  -
111              the encrypted archive must be written as a separate, rather than
112              replacement, file within the temp directory that sos writes  the
113              archive  to.  However,  since  the encrypted archive will be the
114              same size as the original archive, there is no additional  space
115              consumption  once  the temporary directory is removed at the end
116              of execution.
117
118              This means that only the encrypted archive is  present  on  disk
119              after sos finishes running.
120
121              If encryption fails for any reason, the original unencrypted ar‐
122              chive is preserved instead.
123
124       --encrypt-pass PASS
125              The same as --encrypt-key, but use the provided PASS for symmet‐
126              ric encryption rather than key-pair encryption.
127
128       --config-file CONFIG
129              Specify alternate configuration file.
130
131       -s, --sysroot SYSROOT
132              Specify an alternate root file system path.
133
134       --tmp-dir DIRECTORY
135              Specify alternate temporary directory to copy data during execu‐
136              tion.
137
138       --threads THREADS
139              Specify the number of threads sosreport  will  use  for  concur‐
140              rency. Defaults to 4.
141
142       -v, --verbose
143              Increase  logging  verbosity. May be specified multiple times to
144              enable additional debugging messages.
145
146              The following table summarizes the  effects  of  different  ver‐
147              bosity levels:
148
149                  1 (-v)   :  Enable debug messages for sos.log. Show individ‐
150              ual plugins starting.
151                  2 (-vv)  :  Also print debug messages to console.
152                  3 (-vvv) :  Enable debug messages for  archive  file  opera‐
153              tions. Note this will dramatically
154                              increase the amount of logging.
155
156
157       -q, --quiet
158              Only log fatal errors to stderr.
159
160       -z, --compression-type {auto|xz|gzip}
161              Compression  type to use when compression the final archive out‐
162              put
163
164       --help Display usage message.
165

SEE ALSO

167       sos.conf(5)
168

MAINTAINER

170       Jake Hunsaker <jhunsake@redhat.com>
171

AUTHORS & CONTRIBUTORS

173       See AUTHORS file in the package documentation.
174
175
176
177                                  April 2020                            sos(1)
Impressum