3.3.4. devices¶
This is a command group under the main root that has commands for getting
device assets using queries built by the Query Wizard in the GUI, saved queries, and
queries built for you by various get-by..
commands.
3.3.4.1. Sub Command Groups¶
devices saved_query has commands to add, delete, or get saved queries for device assets.
3.3.4.2. Commands¶
devices/users count to get the count of device assets that would be returned from a query built by the Query Wizard in the GUI.
devices/users count-by-saved-query to get the count of device assets that would be returned from a saved query.
devices/users get-fields to get the fields (columns) that are available for device assets from all adapters.
devices/users get to get device assets using a query built by the Query Wizard in the GUI.
devices/users get-by-saved-query to get device assets using a saved query.
devices get-by-hostname to build a query for you that gets device assets by hostname.
devices get-by-ip to build a query for you that gets device assets by IP address.
devices get-by-mac to build a query for you that gets device assets by MAC address.
devices get-by-subnet to build a query for you that gets device assets that are in a given subnet.
3.3.4.3. Help Page¶
3.3.4.3.1. axonshell devices¶
Group: Work with device assets.
axonshell devices [OPTIONS] COMMAND [ARGS]...
Commands
- count
Get the count of assets from a query.
- count-by-saved-query
Get the count of assets from a saved query.
- destroy
Delete ALL asset records of this type from…
- get
Get assets using a query and fields.
- get-by-hostname
Get assets where hostname equals value
- get-by-hostname-regex
Get assets where hostname matches regex value
- get-by-hostnames
Get assets where hostname equals multiple…
- get-by-id
Get ALL data for a single asset.
- get-by-ip
Get assets where ip equals value
- get-by-ip-regex
Get assets where ip matches regex value
- get-by-ips
Get assets where ip equals multiple values
- get-by-mac
Get assets where mac equals value
- get-by-mac-regex
Get assets where mac matches regex value
- get-by-macs
Get assets where mac equals multiple values
- get-by-saved-query
Get assets using a saved query.
- get-by-subnet
Get assets in subnet
- get-by-value
Get assets where a field equals value
- get-by-value-regex
Get assets where a field matches regex value
- get-by-values
Get assets where a field equals multiple…
- get-fields
Get the available fields (columns) for…
- get-fields-default
Get the default fields (columns) for assets.
- get-tags
Get all known tags.
- run-enforcement-from-csv
Grab Asset IDs from a CSV file and run an…
- run-enforcement-from-json
Grab Asset IDs from a JSON file and run an…
- run-enforcement-from-jsonl
Grab Asset IDs from a JSONL file and run…
- run-enforcement-from-text
Grab Asset IDs from any old text file and…
- saved-query
Group: Work with saved queries.