3.2.2. devices/users count

This command will get the count of assets that a query would return for users or devices and could be used as part of a script to do something based on the number returned.

3.2.2.1. Common Options

  • Connection Options for examples of supplying the Axonius credentials and URL.
  • There are no export options for this command since it only returns a number.

3.2.2.3. Help Page

3.2.2.3.1. axonshell users/devices count

Get the count of assets from a query.

axonshell users/devices count [OPTIONS]

Options

-u, --url <URL>

Required URL of an Axonius instance

-k, --key <KEY>

Required API Key of user in an Axonius instance

-s, --secret <SECRET>

Required API Secret of user in an Axonius instance

-q, --query <QUERY>

Query built from the Query wizard in the GUI

-qf, --query-file <QUERY_FILE>

Path to a file to override –query

-hd, --history-date <YYYY-MM-DD>

Return results for a given date in history

--help-detailed <help_detailed>

Show detailed help and exit

Options:auth|query