alarm group listGroup
Lists the alarm groups.
NOTE
The three dots in the output indicate multiple alarms in the group. Use
-json
to format the output.Syntax
- CLI
-
maprcli alarm group listGroup [ -cluster cluster_name ] [ -start start. default: 0 ] [ -limit limit. default: 2147483647 ] [ -output output. default: verbose ]
- REST API
-
Request Type GET Request URL http[s]://<host>:<port>/rest/alarm/group/listGroup?<parameters>
Parameters
Parameter | Description |
---|---|
cluster |
(Optional) The cluster on which to run the command. The default is the cluster on which the command is run. |
start |
(Optional) The list offset at which to start. Default: 0 |
limit |
(Optional) The number of records to retrieve. Default value is 2147483647. |
output |
(Optional) The output format:
|
Example
Return the list of alarms and associated email addresses.
- CLI
-
# maprcli alarm group listGroup alarm name emails group name ... abc@mapr.com cldb.alarm.group.error ... cldb.alarm.group.info ... cldb.alarm.group.warn In JSON Format: maprcli alarm group listGroup -json { "timestamp":1495018857252, "timeofday":"2017-05-17 11:00:57.252 GMT+0000", "status":"OK", "total":3, "data":[ { "group name":"cldb.alarm.group.error", "emails":"abc@mapr.com", "alarm name":[ "NODE_ALARM_DISK_FAILURE", "CLUSTER_ALARM_LICENSE_EXPIRED", "CLUSTER_ALARM_CLUSTER_FULL", "NODE_ALARM_NO_DISK_ATTACHED", "VOLUME_ALARM_SNAPSHOT_FAILURE", "VOLUME_ALARM_MIRROR_FAILURE", "NODE_ALARM_CORE_PRESENT", "NODE_ALARM_HIGH_MFS_MEMORY", "VOLUME_ALARM_DATA_UNAVAILABLE", "NODE_ALARM_MAPRUSER_MISMATCH", "VOLUME_ALARM_NO_NODES_IN_TOPOLOGY", "VOLUME_ALARM_TABLE_REPL_ERROR", "NODE_ALARM_NO_HEARTBEAT", "VOLUME_ALARM_QUOTA_EXCEEDED", "VOLUME_ALARM_TOPOLOGY_FULL", "NODE_ALARM_PAM_MISCONFIGURED", "NODE_ALARM_MEMORY_ALLOCATION_EXCEEDED", "NODE_ALARM_TOO_MANY_CONTAINERS", "NODE_ALARM_NUM_INSTANCES_MISMATCH", "AE_ALARM_AEQUOTA_EXCEEDED" ] }
- REST
-
curl -X GET -u <username> https://abc.sj.us:8443/rest/alarm/group/listGroup