alarm mute
Mutes an active alarm for the specified amount of time.
Syntax
- CLI
-
maprcli alarm mute -alarm alarm[:entity][:aetype][:mute_duration] <comma seperated alarms> [ -cluster cluster_name ] [ -muteminutes <mute_period> ]
- REST API
-
Request Type POST Request URL http[s]://<host>:<port>/rest/alarm/mute?<parameters>
Parameters
Parameter |
Description |
---|---|
alarm |
(Required) The comma-separated list of the active alarms to mute. To
mute an active alarm associated with an entity (such as volume, node, etc.) or type
of accountable entity, you must also specify the name of the entity or the type of
accountable entity separated by a colon (: ). |
cluster |
(Optional) The cluster on which to run the command. The default is the cluster on which the command is run. |
muteminutes |
(Optional) The amount of time, in minutes, to mute the alarm. This
can be specified separately or specified after the colon
( Specifying this separately is optional if colon
( NOTE Either the
value for this parameter or colon (:<mute_period> ) is required
to specify the amount of time for which to mute the alarm. |
Examples
Mute an active alarm for 10 minutes using one of the following:- CLI
-
maprcli alarm mute -alarm CLUSTER_ALARM_LICENSE_NEAR_EXPIRATION:10 (or) maprcli alarm mute -alarm CLUSTER_ALARM_LICENSE_NEAR_EXPIRATION -muteminutes 10
- REST
-
curl -X POST -u <username> https://abc.sj.us:8443/rest/alarm/mute?alarm=CLUSTER_ALARM_LICENSE_NEAR_EXPIRATION:10 (or) curl -X POST -u <username> https://abc.sj.us:8443/rest/alarm/mute?alarm=CLUSTER_ALARM_LICENSE_NEAR_EXPIRATION&muteminutes=10
- CLI
-
maprcli alarm mute -alarm VOLUME_ALARM_DATA_UNDER_REPLICATED:volume1:10 (or) maprcli alarm mute -alarm VOLUME_ALARM_DATA_UNDER_REPLICATED:volume1 -muteminutes 10
- REST
-
curl -X POST -u <username> https://abc.sj.us:8443/rest/alarm/mute?alarm=VOLUME_ALARM_DATA_UNDER_REPLICATED:volume1:10 (or) curl -X POST -u <username> https://abc.sj.us:8443/rest/alarm/mute?alarm=VOLUME_ALARM_DATA_UNDER_REPLICATED:volume1&muteminutes=10
- CLI
-
maprcli alarm mute -alarm VOLUME_ALARM_DATA_UNDER_REPLICATED:volume1:10, CLUSTER_ALARM_LICENSE_NEAR_EXPIRATION:20, VOLUME_ALARM_DATA_UNDER_REPLICATED:volume2:30 (or) maprcli alarm mute -alarm VOLUME_ALARM_DATA_UNDER_REPLICATED:volume1:10, CLUSTER_ALARM_LICENSE_NEAR_EXPIRATION:20, VOLUME_ALARM_DATA_UNDER_REPLICATED:volume2 -muteminutes 30
- REST
-
curl -X POST -u <username> https://abc.sj.us:8443/rest/alarm/mute?alarm=VOLUME_ALARM_DATA_UNDER_REPLICATED:volume1:10, CLUSTER_ALARM_LICENSE_NEAR_EXPIRATION:20,VOLUME_ALARM_DATA_UNDER_REPLICATED:volume2:30 (or) curl -X POST -u <username> https://abc.sj.us:8443/rest/alarm/mute?alarm=VOLUME_ALARM_DATA_UNDER_REPLICATED:volume1:10, CLUSTER_ALARM_LICENSE_NEAR_EXPIRATION:20,VOLUME_ALARM_DATA_UNDER_REPLICATED:volume2&muteminutes=30