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.0.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.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sosdiff-0.5.0.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.0.tar.gz
Algorithm Hash digest
SHA256 98cadc6353306d4503a491be0e04d93c24b7c2871430caa4d39823cb6c907eaa
MD5 bd0f68d60f32e56365aa4cca3913dccd
BLAKE2b-256 da9c974a5db54cfeb9ac35c92460260a95cce4213dbe10bf7221c382913093ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosdiff-0.5.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: sosdiff-0.5.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72e1115124c6ef9b27b3061c012ca776a683668a32aeb03c64489b33736a60ca
MD5 9d725d0420928bc77ecf02a3259dec29
BLAKE2b-256 7a28f2ca26cf81f5bc2a395f1ed0151bc879591edaddd342e6c07b9a2d6d9061

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosdiff-0.5.0-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