| 1 |
$ anta nrfu --help |
| 2 |
Usage: anta nrfu [OPTIONS] [COMMAND] [ARGS]... |
| 3 |
|
| 4 |
Run ANTA tests on selected inventory devices. |
| 5 |
|
| 6 |
Options: |
| 7 |
-u, --username TEXT Username to connect to EOS [env var: |
| 8 |
ANTA_USERNAME; required] |
| 9 |
-p, --password TEXT Password to connect to EOS that must be |
| 10 |
provided. It can be prompted using '-- |
| 11 |
prompt' option. [env var: ANTA_PASSWORD] |
| 12 |
--enable-password TEXT Password to access EOS Privileged EXEC mode. |
| 13 |
It can be prompted using '--prompt' option. |
| 14 |
Requires '--enable' option. [env var: |
| 15 |
ANTA_ENABLE_PASSWORD] |
| 16 |
--enable Some commands may require EOS Privileged |
| 17 |
EXEC mode. This option tries to access this |
| 18 |
mode before sending a command to the device. |
| 19 |
[env var: ANTA_ENABLE] |
| 20 |
-P, --prompt Prompt for passwords if they are not |
| 21 |
provided. [env var: ANTA_PROMPT] |
| 22 |
--timeout FLOAT Global API timeout. This value will be used |
| 23 |
for all devices. [env var: ANTA_TIMEOUT; |
| 24 |
default: 30.0] |
| 25 |
--insecure Disable SSH Host Key validation. [env var: |
| 26 |
ANTA_INSECURE] |
| 27 |
--disable-cache Disable cache globally. [env var: |
| 28 |
ANTA_DISABLE_CACHE] |
| 29 |
--use-session-auth / --no-session-auth |
| 30 |
Enable or explicitly disable eAPI session |
| 31 |
authentication globally. When unset, per- |
| 32 |
device inventory values apply. [env var: |
| 33 |
ANTA_USE_SESSION_AUTH] |
| 34 |
-i, --inventory FILE Path to the inventory YAML file. [env var: |
| 35 |
ANTA_INVENTORY; required] |
| 36 |
--inventory-format [yaml|json] Format of the inventory file, either 'yaml' |
| 37 |
or 'json' [env var: ANTA_INVENTORY_FORMAT] |
| 38 |
--tags TEXT List of tags using comma as separator: |
| 39 |
tag1,tag2,tag3. [env var: ANTA_TAGS] |
| 40 |
-c, --catalog FILE Path to the test catalog file [env var: |
| 41 |
ANTA_CATALOG; required] |
| 42 |
--catalog-format [yaml|json] Format of the catalog file, either 'yaml' or |
| 43 |
'json' [env var: ANTA_CATALOG_FORMAT] |
| 44 |
-d, --device TEXT Run tests on a specific device. Can be |
| 45 |
provided multiple times. |
| 46 |
-t, --test TEXT Run a specific test. Can be provided |
| 47 |
multiple times. |
| 48 |
--ignore-status Exit code will always be 0. [env var: |
| 49 |
ANTA_NRFU_IGNORE_STATUS] |
| 50 |
--ignore-error Exit code will be 0 if all tests succeeded |
| 51 |
or 1 if any test failed. [env var: |
| 52 |
ANTA_NRFU_IGNORE_ERROR] |
| 53 |
--hide [success|failure|error|skipped] |
| 54 |
Hide results by type: success / failure / |
| 55 |
error / skipped'. |
| 56 |
--dry-run Run anta nrfu command but stop before |
| 57 |
starting to execute the tests. Considers all |
| 58 |
devices as connected. [env var: |
| 59 |
ANTA_NRFU_DRY_RUN] |
| 60 |
--disconnect / --no-disconnect Disconnect inventory devices once the test |
| 61 |
run is complete. [env var: |
| 62 |
ANTA_DISCONNECT_INVENTORY; default: |
| 63 |
disconnect] |
| 64 |
--help Show this message and exit. |
| 65 |
|
| 66 |
Commands: |
| 67 |
csv ANTA command to check network state with CSV report. |
| 68 |
json ANTA command to check network state with JSON results. |
| 69 |
md-report ANTA command to check network state with Markdown report. |
| 70 |
table ANTA command to check network state with table results. |
| 71 |
text ANTA command to check network state with text results. |
| 72 |
tpl-report ANTA command to check network state with templated report. |