Metadata-Version: 2.4
Name: sosdiff
Version: 0.2.2
Summary: Compare two sosreports and show the differences.
Home-page: https://github.com/pafernanr/sosdiff
Author: Pablo Fernández Rodríguez
License: GPLv3
Keywords: sos sosreport
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: summary

### sosdiff
Compare two [sosreport](https://github.com/sosreport/sos) and show the differences.

To compare them `sosdiff` reads the file `sos_reports/sos.json` and lists the differences:
- [-] Plugin is missing on sosreport2. 
- [--] Entity is missing on sosreport2. 
- [---] File is missing on sosreport2.
- [/] File content is different. Optionally show `diff` command output.
- [+] Plugin is present on sosreport2 but it isn't on sosreport1.
- [++] Entity is present on sosreport2 but it isn't on sosreport1.
- [+++] File is present on sosreport2 but it isn't on sosreport1.

Log files and some other are ingnored:
~~~
self.excluded_href = [
            r'^/var/log/.*$',
            r'^/sos_strings/.*var\.log.*\.tailed$',
            r'^/sys/class/.*$',
            r'^/sys/devices/.*$',]
~~~

#### Installation
There are multiple ways to to install `sosdiff`.

- Using `pip`.
  ~~~
  pip install sosdiff
  ~~~

- Using the prebuild packages at [Latest Release](https://github.com/pafernanr/sosdiff/releases/latest)

#### Usage
~~~
usage: sosdiff [-h] [-d] [-e PluginName] [-i PluginName] [-t] sospath1 sospath2

Compare two sosreports and show the differences.

positional arguments:
  sospath1              Path to first sosreport folder.
  sospath2              Path to second sosreport folder.

options:
  -h, --help            show this help message and exit
  -d, --diff            Show `diff` when file content don't match.
  -e PluginName, --exclude PluginName
                        Exclude this PluginName. Can be used multiple times.
  -i PluginName, --include PluginName
                        Include only this PluginName. Can be used multiple times.
  -t, --text            Print plain text without colors.
~~~
