Display the command tree (svc_mgmt_operations command_tree)
This service script displays the command tree for single or multiple commands, depending upon the option that you enter.
Usage
Function | Diagnostic |
Mode | Normal or Service |
Usage | General use |
Requires service user password? | No |
Requires root privileges? | No |
May cause data unavailability? | No |
May cause data loss? | No |
Scope | Cluster |
Prerequisites | None |
Format
svc_mgmt_operations command_tree [-h] [--all_commands] [--failed_commands]
[--command_id <value>] [--command_type [command_type
value]] [--command_state [{INITIAL,QUEUED,RUNNING,COMPLETED}]]
[--start_after <value>]
[--end_after <value>] [--processing_longer_than <value>]
[--processing_shorter_than <value>] [--top_level_commands]
[--response_status [{OK,VALIDATION_ERROR,NOT_FOUND_ERROR,ERROR,INTERNAL_ERROR,
UNKNOWN,RUNNING,CANCELLED,UNRECOVERABLE_ERROR,BUSY} [{OK,VALIDATION_ERROR,
NOT_FOUND_ERROR,ERROR,INTERNAL_ERROR,UNKNOWN,RUNNING,CANCELLED,UNRECOVERABLE_ERROR,
BUSY} ...]]] [--response_state {CREATED,ACKNOWLEDGED}]
Optional arguments
Qualifier | Description |
---|
-h,
--help | Show the help message and exit. |
--all_commands | Show top-level commands with the response status OK.
|
--failed_commands | Show top-level commands with the response status ERROR. |
--command_id | Show the command by ID. |
--command_type | Show commands that match the specified command type. |
--command_state | Show commands that match the specified command state. You can filter the records to only show commands in the following states:
- INITIAL
- QUEUED
- RUNNING
- COMPLETED
|
--start_before | Show commands that started before the specified time. |
--end_before | Show commands that ended before the specified time. |
--start_after | Show commands that started after the specified time. |
--end_after | Show commands that ended after the specified time. |
--processing_longer_than | Show commands with a processing time longer than the specified interval. |
--processing_shorter_than | Show commands with a processing time shorter than the specified interval. |
--top_level_commands | Filter nontop-level commands. |
--response_status | Show commands that match the specified response status. You can filter the records to only show commands in the following states:
- OK
- VALIDATION_ERROR
- NOT_FOUND_ERROR
- ERROR
- INTERNAL_ERROR
- UNKNOWN
- RUNNING
- CANCELLED
- UNRECOVERABLE_ERROR
- BUSY
|
--response_state | Show commands that match the specified response state. You can filter the records to only show commands in the following states:
|
Example
The following example shows the output for the command
svc_mgmt_operations command_tree when searching for error responses within a one-day period:
svc_mgmt_operations command_tree --response_status ERROR --end_before "1 day ago"
Query command tree using filter (end_time < (current_timestamp - interval '1 day')) AND (response_status = 'ERROR')
====================================================================================================
+ LicenseRetrieveCommand: 9a1cee95-6854-4e1b-84c1-d87d8ece660c - 0:00:39.854691, 2021-10-13 08:06:45.762335+00:00 / 2021-10-13 08:07:25.617026+00:00
====================================================================================================
+ SupportMetricsCaptureCommand: 2ba04890-33a2-460a-9486-95f35851bea0 - 0:00:12.819054, 2021-10-13 08:54:52.413837+00:00 / 2021-10-13 08:55:05.232891+00:00
+---FiremanCommand: 57d9a1ba-005c-4d1b-aaee-7e4b96d985e9 - 0:00:12.151396, 2021-10-13 08:54:52.765127+00:00 / 2021-10-13 08:55:04.916523+00:00
====================================================================================================
+ SupportMetricsCaptureCommand: 2e2766ca-02f7-43ff-b236-5b45709a396b - 0:00:10.893175, 2021-10-13 09:44:52.418265+00:00 / 2021-10-13 09:45:03.311440+00:00
+---FiremanCommand: f135af21-5a11-462e-a96d-7388a6ae2cad - 0:00:10.520132, 2021-10-13 09:44:52.761297+00:00 / 2021-10-13 09:45:03.281429+00:00
====================================================================================================
+ EventsAlertsAgingCommand: bc14dfdf-5d06-499d-a0e1-9808e82d1d03 - 0:00:00.082732, 2021-10-13 08:09:34.234645+00:00 / 2021-10-13 08:09:34.317377+00:00
Completed Query command tree using filter (end_time < (current_timestamp - interval '1 day')) AND (response_status = 'ERROR')