fixsh
Fix Shell
Table of contents
Overview
fixsh starts the fix shell. It is used to interact with fixcore. It allows you to explore the graph, find resources of interest, mark them for cleanup, fix their tagging, aggregate over their metadata to create metrics and format the output for use in a 3rd party script or system.
More information can be found below and in the docs.
Usage
fixsh uses the following commandline arguments:
--fixcore-uri fixCORE_URI
fixcore URI (default: https://localhost:8900)
--fixcore-section fixCORE_SECTION
All queries are interpreted with this section name. If not set, the server default is used.
--fixcore-graph fixCORE_GRAPH
The name of the graph to use by default. If not set, the server default is used.
--download-directory DOWNLOAD_DIRECTORY
If files are received, they are written to this directory.
--no-color Output should be rendered plain without any color escape sequences.
--stdin Read from STDIN instead of opening a shell
--verbose, -v Verbose logging
--quiet Only log errors
--psk PSK Pre-shared key
--ca-cert CA_CERT Path to custom CA certificate file
--no-verify-certs Turn off certificate verification
ENV Prefix: fixSHELL_
Every CLI arg can also be specified using ENV variables.
For instance --fixcore-uri http://foobar.tld:8900 would become fixSHELL_fixCORE_URI=http://foobar.tld:8900.
Examples
Basics
Enter help into fixsh to get an overview of all available commands
Using help followed by a command will provide more information about that command.
Intermediate
Show all storage volumes that are in use
> search is(volume) and volume_status = in-use
Show all storage volumes in use and format the output as CSV
> search is(volume) and volume_status = in-use | format {kind},{id},{name},{ctime}
Show all storage volumes not in use with a size of more than 10 GB
> search is(volume) and volume_status = available and volume_size > 10
Advanced
Find volumes in cloud AWS that are in use
search is(volume) and volume_status = in-use and /ancestors.cloud.reported.name = aws
Alternatively instead of filtering for storage volumes of the generic volume kind we can also be more specific
search is(aws_ec2_volume) and volume_status = in-use
Find unused AWS volumes older than 30 days with no I/O in the past 7 days
search is(aws_ec2_volume) and volume_status = available and ctime < -30d and atime < -7d and mtime < -7d
Contact
If you have any questions feel free to join our Discord or open a GitHub issue.
License
See LICENSE for details.
Metadata
Release files for fixinventoryshell 4.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fixinventoryshell-4.2.0.tar.gz | 25.5 kB | Without provenance | Details for fixinventoryshell-4.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fixinventoryshell-4.2.0-py3-none-any.whl | Python 3 | none | any | Details for fixinventoryshell-4.2.0-py3-none-any.whl |
Total release size: 48.3 kB
Release files / fixinventoryshell-4.2.0.tar.gz
| Download URL | fixinventoryshell-4.2.0.tar.gz |
|---|---|
| Size | 25.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42f97db92f2ae084298a83ae7881f9f7d227da01d18a22024936fd60b9d13b5f
|
|
BLAKE2b-256 checksum How to use checksums |
101fce9ba5d17d7df67421062f8174ca13be03322f82fd03a457fb6da4777afc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / fixinventoryshell-4.2.0-py3-none-any.whl
| Download URL | fixinventoryshell-4.2.0-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48f6df0c1a8a8f250bbde96006334f84e77e631d347f7fa0ab092c36858245d1
|
|
BLAKE2b-256 checksum How to use checksums |
0c8b642ff7b28f2dab3e375f4e8e17087954f757cd9e7076b95c296077d397c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for fixinventoryshell 4.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.