| 1 |
$ anta debug run-template --help |
| 2 |
Usage: anta debug run-template [OPTIONS] PARAMS... |
| 3 |
|
| 4 |
Run arbitrary templated command to an ANTA device. |
| 5 |
|
| 6 |
Takes a list of arguments (keys followed by a value) to build a dictionary |
| 7 |
used as template parameters. |
| 8 |
|
| 9 |
Example |
| 10 |
------- |
| 11 |
anta debug run-template -d leaf1a -t 'show vlan {vlan_id}' vlan_id 1 |
| 12 |
|
| 13 |
Options: |
| 14 |
-u, --username TEXT Username to connect to EOS [env var: |
| 15 |
ANTA_USERNAME; required] |
| 16 |
-p, --password TEXT Password to connect to EOS that must be |
| 17 |
provided. It can be prompted using '-- |
| 18 |
prompt' option. [env var: ANTA_PASSWORD] |
| 19 |
--enable-password TEXT Password to access EOS Privileged EXEC mode. |
| 20 |
It can be prompted using '--prompt' option. |
| 21 |
Requires '--enable' option. [env var: |
| 22 |
ANTA_ENABLE_PASSWORD] |
| 23 |
--enable Some commands may require EOS Privileged |
| 24 |
EXEC mode. This option tries to access this |
| 25 |
mode before sending a command to the device. |
| 26 |
[env var: ANTA_ENABLE] |
| 27 |
-P, --prompt Prompt for passwords if they are not |
| 28 |
provided. [env var: ANTA_PROMPT] |
| 29 |
--timeout FLOAT Global API timeout. This value will be used |
| 30 |
for all devices. [env var: ANTA_TIMEOUT; |
| 31 |
default: 30.0] |
| 32 |
--insecure Disable SSH Host Key validation. [env var: |
| 33 |
ANTA_INSECURE] |
| 34 |
--disable-cache Disable cache globally. [env var: |
| 35 |
ANTA_DISABLE_CACHE] |
| 36 |
--use-session-auth / --no-session-auth |
| 37 |
Enable or explicitly disable eAPI session |
| 38 |
authentication globally. When unset, per- |
| 39 |
device inventory values apply. [env var: |
| 40 |
ANTA_USE_SESSION_AUTH] |
| 41 |
-i, --inventory FILE Path to the inventory YAML file. [env var: |
| 42 |
ANTA_INVENTORY; required] |
| 43 |
--inventory-format [yaml|json] Format of the inventory file, either 'yaml' |
| 44 |
or 'json' [env var: ANTA_INVENTORY_FORMAT] |
| 45 |
--ofmt [json|text] EOS eAPI format to use. can be text or json |
| 46 |
-v, --version [1|latest] EOS eAPI version |
| 47 |
-r, --revision INTEGER eAPI command revision |
| 48 |
-d, --device TEXT Device from inventory to use [required] |
| 49 |
-t, --template TEXT Command template to run. E.g. 'show vlan |
| 50 |
{vlan_id}' [required] |
| 51 |
--help Show this message and exit. |