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/.*$',]- Refer to excluded_href
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
pipor the package at Latest Releasepip 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0295b9ed0aacc2b1101381b353a17891caf2dd59cad345640fd3d812e1c0552c
|
|
| MD5 |
ff57e6c46ee0e015335f99a00e980e38
|
|
| BLAKE2b-256 |
ded62e2ce3006e347ab4eac5e4b9e18f981fbc37ed926e128f8e4db5bb39943b
|
Provenance
The following attestation bundles were made for sosdiff-0.5.1.tar.gz:
Publisher:
publish-pypi.yml on pafernanr/sosdiff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sosdiff-0.5.1.tar.gz -
Subject digest:
0295b9ed0aacc2b1101381b353a17891caf2dd59cad345640fd3d812e1c0552c - Sigstore transparency entry: 1090471635
- Sigstore integration time:
-
Permalink:
pafernanr/sosdiff@1904441a8499c28c00df575148196854e28a3c87 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/pafernanr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1904441a8499c28c00df575148196854e28a3c87 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57438bcd5ee728b3d2940d0859cb25be840122a1a9bae2a0838ccc4094440818
|
|
| MD5 |
bcbd7dbe6856c2bb542cd5abfa5f0d7f
|
|
| BLAKE2b-256 |
92adb759d01f871a5b1f48c095fe124b034da66b47f83f27674a00b1b72505d3
|
Provenance
The following attestation bundles were made for sosdiff-0.5.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on pafernanr/sosdiff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sosdiff-0.5.1-py3-none-any.whl -
Subject digest:
57438bcd5ee728b3d2940d0859cb25be840122a1a9bae2a0838ccc4094440818 - Sigstore transparency entry: 1090471638
- Sigstore integration time:
-
Permalink:
pafernanr/sosdiff@1904441a8499c28c00df575148196854e28a3c87 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/pafernanr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1904441a8499c28c00df575148196854e28a3c87 -
Trigger Event:
release
-
Statement type: