This command lists alarms.
Usage
alarm list [--start-time START-TIME]
[--end-time END-TIME]
[--object-type TYPE]
[--object-id OBJECT_ID]
[--message TEXT]
[--severity CRITICAL|MAJOR|MINOR]
[--page PAGE_NUMBER]
[--page-size NUMBER_ON_PAGE] Options
| Starts listing from a specified alarm time. Specify START-TIME in the format YYYY-MM-DD HH:MM:SS. For example: 2017-10-19 10:31:47 |
| Ends listing by a specified alarm time. Specify END-TIME in the format YYYY-MM-DD HH:MM:SS. For example: 2017-10-19 10:31:47 |
| Filters the list by object type. For example: Valid types include: |
| Filters the list by object ID. For example: |
| Filters the list by alarm message text. Specify any text to search for as TEXT. The search is case sensitive. For example: |
| Filters the list by alarm severity. |
| Displays a specified page if Defaults to the first page. |
| Sets the maximum number of alarms to display on a page. |
Example
vcli: admin> alarm list --severity CRITICAL
+----+---------------------+-------------+-----------+-----------+----------+----------------------------------------------------------------------------------+
| ID | Timestamp | Object-type | Object-id | Cluster | Severity | Alarm-message |
+----+---------------------+-------------+-----------+-----------+----------+----------------------------------------------------------------------------------+
| 4 | 2020-08-19 12:09:27 | CNode | 3 | vast2 | CRITICAL | CNode cnode-3 (203.0.113.7) [ac1n3] file server access changed from True to False |
| 3 | 2020-08-19 12:09:27 | CNode | 2 | vast2 | CRITICAL | CNode cnode-2 (203.0.113.6) [ac1n2] file server access changed from True to False |
| 2 | 2020-08-19 12:09:27 | CNode | 1 | vast2 | CRITICAL | CNode cnode-1 (203.0.113.5) [ac1n1] file server access changed from True to False |
+----+---------------------+-------------+-----------+-----------+----------+----------------------------------------------------------------------------------+