Compare two sosreports and show the differences.
Project description
sosdiff
Compare two sosreport and show the differences.
- To compare them
sosdiffreads the filesos_reports/sos.jsonand lists the differences:- ***[-] :: Plugin is missing on sosreport2.
- ***[--] :: Entity is missing on sosreport2.
- ***[---] :: File is missing on sosreport2.
- ***[/] :: File content is different. Optionally show
diffcommand 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/.*$',]- Refer to excluded_href
- 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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd2d2a8050489efc74c0333006b472f883d1739bf4760d41634ab1ac8a9c7bde
|
|
| MD5 |
10da369d7a84a2b408506c962b416858
|
|
| BLAKE2b-256 |
b5da2e07d1bb8c56238fbb1f822ecc6b59ac16d08e886d40ace95aeab85c3105
|
Provenance
The following attestation bundles were made for sosdiff-0.4.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.4.1.tar.gz -
Subject digest:
fd2d2a8050489efc74c0333006b472f883d1739bf4760d41634ab1ac8a9c7bde - Sigstore transparency entry: 1048809166
- Sigstore integration time:
-
Permalink:
pafernanr/sosdiff@6da24ee967cdbe6cf15c2f48169577cd5e999f77 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/pafernanr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6da24ee967cdbe6cf15c2f48169577cd5e999f77 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4512643946ca788622ef90603ff356579706219e82c3230a8dfd66af50ae923b
|
|
| MD5 |
9152d47d23a7eeb75cb8eeff658044c1
|
|
| BLAKE2b-256 |
168ba4e00d4382fd759e39ff3bcf3abe6c4f131bcf0f804622b75310aa2be4f2
|
Provenance
The following attestation bundles were made for sosdiff-0.4.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.4.1-py3-none-any.whl -
Subject digest:
4512643946ca788622ef90603ff356579706219e82c3230a8dfd66af50ae923b - Sigstore transparency entry: 1048809197
- Sigstore integration time:
-
Permalink:
pafernanr/sosdiff@6da24ee967cdbe6cf15c2f48169577cd5e999f77 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/pafernanr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6da24ee967cdbe6cf15c2f48169577cd5e999f77 -
Trigger Event:
release
-
Statement type: