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 and missing on sosreport1.
    • ***[++] :: Entity is present on sosreport2 and missing on sosreport1.
    • ***[+++] :: File is present on sosreport2 and missing on sosreport1.
  • Some files are exluded to avoid "Too many levels of symbolic links" errors. [r'^/sys/class/.*$', r'^/sys/devices/.*$',]
  • The configuration file is ~/.sosdiff/configuration.ini. Alternative configuration can be used. E.g:
    sosdiff -c ~/.sosdiff/troubleshoot_netwoking.ini
    

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] [-c <config_file>] [-d] [-f] [-e EXCLUDE_FILES] [-i INCLUDE_FILES] [-n SKIP_PLUGINS] [-o ONLY_PLUGINS] [-s] [-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
  -c <config_file>, --configuration <config_file>
                        Configuration file. Defaults to `/home/pablofr/.sosdiff/configuration.ini`
  -d, --diff            Show `diff` when files content don't match.
  -f, --no-diff         Hide `diff` when files content don'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.4.1.tar.gz (19.9 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.4.1-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sosdiff-0.4.1.tar.gz
Algorithm Hash digest
SHA256 fd2d2a8050489efc74c0333006b472f883d1739bf4760d41634ab1ac8a9c7bde
MD5 10da369d7a84a2b408506c962b416858
BLAKE2b-256 b5da2e07d1bb8c56238fbb1f822ecc6b59ac16d08e886d40ace95aeab85c3105

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: sosdiff-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 20.9 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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4512643946ca788622ef90603ff356579706219e82c3230a8dfd66af50ae923b
MD5 9152d47d23a7eeb75cb8eeff658044c1
BLAKE2b-256 168ba4e00d4382fd759e39ff3bcf3abe6c4f131bcf0f804622b75310aa2be4f2

See more details on using hashes here.

Provenance

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