efa tenant execution

Syntax

efa tenant execution delete [--days int32 | --help]
efa tenant execution show [--help | --limit int32 | --status failed | succeeded | all ]
efa tenant execution show-event [--device | --execution-id | --help]

Parameters

--days int32
Deletes execution entries older than the specified days (default 30).
--device
Filters execution entries on IP address.
--help
Provides help for the selected command.
--limit int32
Limits the number of executions to be listed. Value "0" will list all the executions. Default is 10.
--status
Filters the executions based on the status (failed, succeeded, all). Default is all.
--execution-id
Filters execution entries on execution UUID.

The following example shows the executed commands with the user.

(efa:extreme)extreme@node-1:~$ efa tenant execution show
+--------------------+---------------+---------------+-----------+----------------------+----------------------+-----------+
|         ID         |    ENTITY     |    COMMAND    |  STATUS   |      START TIME      |       END TIME       | USER NAME |
+--------------------+---------------+---------------+-----------+----------------------+----------------------+-----------+
| c8e2a628-9633-4903 | EndpointGroup | Show          | succeeded | 2021-01-27T13:27:29Z | 2021-01-27T13:27:29Z | extreme   |
| a99df80f-b462-4cd0 | EndpointGroup | Show          | succeeded | 2021-01-27T13:27:22Z | 2021-01-27T13:27:22Z | extreme   |
| 9f612208-92dc-42c1 | EndpointGroup | DetachNetwork | succeeded | 2021-01-27T13:27:15Z | 2021-01-27T13:27:15Z | extreme   |
| ee25aa95-b99d-4231 | EndpointGroup | Show          | succeeded | 2021-01-27T13:25:55Z | 2021-01-27T13:25:56Z | extreme   |
| a0249657-b1fe-4d2b | EndpointGroup | ShowAll       | succeeded | 2021-01-27T13:25:27Z | 2021-01-27T13:25:27Z | extreme   |
| 55ec0bef-89a1-42ff | Tenant        | ShowAll       | succeeded | 2021-01-27T13:25:26Z | 2021-01-27T13:25:26Z | extreme   |
| c18ad360-826e-42c1 | EndpointGroup | ShowAll       | succeeded | 2021-01-27T13:25:26Z | 2021-01-27T13:25:26Z | extreme   |
| b0b94b89-bdaa-435f | EndpointGroup | ShowAll       | succeeded | 2021-01-27T13:25:26Z | 2021-01-27T13:25:26Z | extreme   |
| d9c88574-9dea-44a2 | EndpointGroup | Show          | failed    | 2021-01-27T13:20:32Z | 2021-01-27T13:20:32Z | extreme   |
| 0b9944d6-a8e4-42f8 | EndpointGroup | Show          | succeeded | 2021-01-27T13:20:21Z | 2021-01-27T13:20:21Z | extreme   |
+--------------------+---------------+---------------+-----------+----------------------+----------------------+-----------+

For more details of execution, run 'efa tenant execution show --id <ID>'
===============================================================================================================================================================

--- Time Elapsed: 156.392772ms ---
efa tenant execution show-event

The following example shows the list of event histories.

(efa:extreme)extreme@node-1:~$ efa tenant execution show-event
+--------------------+----------------------+---------+-----------+---------------------------+--------------+----------------+--------------------------------+--------------------------------+
|   EXECUTION UUID   |         DATE         | SERVICE |   EVENT   |          DEVICE           | MESSAGE-TYPE | MESSAGE-OBJECT |            MESSAGE             |             ERROR              |
+--------------------+----------------------+---------+-----------+---------------------------+--------------+----------------+--------------------------------+--------------------------------+
| 76b8e798-adb0-459f | 2021-01-27T13:08:03Z | tenant  | po-create | 10.20.216.15,10.20.216.16 | po           | po11           | Portchannel creation succeeded |                                |
|                    |                      |         |           |                           |              |                | for ports on device po11       |                                |
| 76b8e798-adb0-459f | 2021-01-27T13:08:04Z | tenant  | po-create | 10.20.216.15,10.20.216.16 | po           | po11           | Configuration on devices       |                                |
|                    |                      |         |           |                           |              |                | succeeded for Port Channel     |                                |
|                    |                      |         |           |                           |              |                | po11                           |                                |
| 76b8e798-adb0-459f | 2021-01-27T13:08:04Z | tenant  | po-create | 10.20.216.15,10.20.216.16 | po           | po11           | Updating Dev state on database |                                |
|                    |                      |         |           |                           |              |                | succeeded for Port Channel     |                                |
|                    |                      |         |           |                           |              |                | po11                           |                                |
+--------------------+----------------------+---------+-----------+---------------------------+--------------+----------------+--------------------------------+--------------------------------+

--- Time Elapsed: 189.538402ms ---
efa tenant execution delete[ --days value ]
--days
Delete execution entries older than the specified days.

The following example deletes execution entries older than the specified number of days.

(efa:extreme)extreme@node-1:~$ efa tenant execution delete --days 1

Execution entries deleted successfully.
--- Time Elapsed: 210.106127ms ---