alarm raise
Raises a specified alarm or alarms. Permissions
required: fc
or a
.
Syntax
- CLI
-
maprcli alarm raise -alarm <alarm> [ -cluster <cluster> ] [ -description <description> ] [ -entity <cluster, entity, host, node, or volume> ]
- REST
Request Type POST Request URL http[s]://<host>:<port>/rest/alarm/raise?<parameters>
Parameters
Parameter |
Description |
---|---|
alarm
|
The alarm type to raise. See Alarm Types. |
cluster |
The cluster on which to run the command. |
description |
A brief description. |
entity |
The entity on which to raise alarms. To be able to use this option, you must have your cluster configured to run commands remotely on other clusters. Refer to Configuring Secure Clusters for Running Commands Remotely for information on configuring clusters to run commands remotely on other clusters. |
Examples
Raise a specific alarm:
- CLI
-
maprcli alarm raise -alarm NODE_ALARM_DEBUG_LOGGING
- REST
-
NOTE Based on your SSL setup, use the appropriate SSL-related command line option in the curl command given below.
curl -X POST -u <username> 'https://r1n1.sj.us:8443/rest/alarm/raise?alarm=NODE_ALARM_DEBUG_LOGGING' {"timestamp":1666002682984,"timeofday":"2022-10-17 10:31:22.984 GMT+0000 AM","status":"OK","total":0,"data":[]}