Skip to main content
SnapCenter 6.0 cmdlets

Remove-SmAlert

Contributors

Removes the alert(s) from SnapCenter.

Syntax

Remove-SmAlert [-AlertIds]  <String>  [-EntityType]  <SmEntityType>  [-EntityName]  <String>  [-Severity]  <SmAlertSeverity>

Detailed Description

Removes the alert(s) from SnapCenter. Either Alert Id(s) or Entity Type and Entity Name or Severity must be provided!

Parameters

Name Description Required? Pipeline Input Default Value

AlertIds

Specify the list of alert ids to be deleted.

false

true (ByPropertyName)

EntityType

Specify the entity type of the alert(s) needs to be deleted. ("Server", "Host", "Storage")

false

true (ByPropertyName)

EntityName

Specify the entity name of the alert(s) needs to be deleted.

false

true (ByPropertyName)

Severity

Specify the severity of the alert(s) needs to be deleted. "Informational", "Warning", "Critical")

false

true (ByPropertyName)

Examples

Example 1: Remove one or more alerts by id(s)

 Remove-SmAlert -AlertIds 100,101

This example syntax removes the specified alerts from SnapCenter.

Remove-SmAlert
Are you sure you want to remove the alert(s) ?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y

Example 2: Remove one or more alerts by id(s) without confirmation dialogue

 Remove-SmAlert -AlertIds 100,101 -Confirm:$false

This example syntax removes the specified alerts from SnapCenter.

Example 1: Remove one or more alerts by EntityType and EntityName

 Remove-SmAlert -EntityType Host -EntityName mtme.englab.netapp.com

This example syntax removes all the alerts of the given Host.

Remove-SmAlert
Are you sure you want to remove the alert(s) ?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y

Example 1: Remove one or more alerts by Severity

 Remove-SmAlert -Severity Warning

This example syntax removes all the warning alerts.

Remove-SmAlert
Are you sure you want to remove the alert(s) ?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y