Skip to main content

Compare two sosreports and show the differences.

Project description

sosdiff

Compare two sosreport 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

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.

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.2.2.tar.gz (18.8 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.2.2-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sosdiff-0.2.2.tar.gz
Algorithm Hash digest
SHA256 27db2b87fea18d9ea2f962cdbc2c15508a526a89bcba007ab5b27a6753688476
MD5 9c8e8fb8810aae470acbf29e1d4a29b0
BLAKE2b-256 ae7a03c0bdf3fc0e420861b34e59cabaafb367220aba8c6c38d46c425d9c5b0f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: sosdiff-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 19.7 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6b70e14f95446e1076d0163ec15c78b5567febda0e8097c7779a3e038092684d
MD5 66e521a9cf4a643af173495f5c591c5b
BLAKE2b-256 7177ceb5218772dc98fb7c8b2386106ddfd06fbe4cf7cabc36c155b16b4d70a8

See more details on using hashes here.

Provenance

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