Skip to main content

Compare two sosreport by parsing `sos_reports/sos.json` to show the collected files differences and optionally the diff for those files.

Project description

sosdiff

Compare two sosreport by parsing sos_reports/sos.json to show the collected files differences and optionally the diff for those files.

  • The configuration file is ~/.sosdiff/configuration.ini.
  • Alternative configuration can be used. E.g: sosdiff -c ~/.sosdiff/troubleshoot_netwoking.ini.
  • Some paths are exluded to avoid "Too many levels of symbolic links" errors. [r'^/sys/class/.*$', r'^/sys/devices/.*$',]

Output

Output Description
[- ] 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 and missing on sosreport1.
[++ ] Entity is present on sosreport2 and missing on sosreport1.
[+++] File is present on sosreport2 and missing on sosreport1.

Installation

  • Install using pip or the package at Latest Release
    pip install sosdiff
    

Usage

usage: sosdiff [-h] [-c <config_file>] [-d] [-f] [-e EXCLUDE_FILES] [-i INCLUDE_FILES] [-n SKIP_PLUGINS] [-o ONLY_PLUGINS] [-s] [-t]
               sospath1 sospath2

Compare two sosreport by parsing `sos_reports/sos.json` and show the collected files differences.

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

options:
  -h, --help            show this help message and exit
  -c <config_file>, --configuration <config_file>
                        Configuration file. Defaults to `~/.sosdiff/configuration.ini`
  -d, --diff            Show `diff` when files content doesn't match.
  -f, --no-diff         Hide `diff` when files content doesn't match.
  -e EXCLUDE_FILES, --exclude-files EXCLUDE_FILES
                        Exclude files matching this regexp. Can be used multiple times.
  -i INCLUDE_FILES, --include-files INCLUDE_FILES
                        Include files matching this regexp. Can be used multiple times.
  -n SKIP_PLUGINS, --skip-plugins SKIP_PLUGINS
                        Disable these plugins. Can be used multiple times.
  -o ONLY_PLUGINS, --only-plugins ONLY_PLUGINS
                        Enable these plugins only. Can be used multiple times.
  -s, --no-text         Show colors in the output.
  -t, --text            Hide colors in the outuput.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sosdiff-0.5.1.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sosdiff-0.5.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file sosdiff-0.5.1.tar.gz.

File metadata

  • Download URL: sosdiff-0.5.1.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sosdiff-0.5.1.tar.gz
Algorithm Hash digest
SHA256 0295b9ed0aacc2b1101381b353a17891caf2dd59cad345640fd3d812e1c0552c
MD5 ff57e6c46ee0e015335f99a00e980e38
BLAKE2b-256 ded62e2ce3006e347ab4eac5e4b9e18f981fbc37ed926e128f8e4db5bb39943b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosdiff-0.5.1.tar.gz:

Publisher: publish-pypi.yml on pafernanr/sosdiff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosdiff-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: sosdiff-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sosdiff-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57438bcd5ee728b3d2940d0859cb25be840122a1a9bae2a0838ccc4094440818
MD5 bcbd7dbe6856c2bb542cd5abfa5f0d7f
BLAKE2b-256 92adb759d01f871a5b1f48c095fe124b034da66b47f83f27674a00b1b72505d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosdiff-0.5.1-py3-none-any.whl:

Publisher: publish-pypi.yml on pafernanr/sosdiff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page