Get-SmAlert
Get details of the alert(s).
Syntax
Get-SmAlert [-AlertId] <String> [-Severity] <SmAlertSeverity> [-Status] <SmAlertStatus> [-EntityType] <SmEntityType> [-SearchText] <String>
Detailed Description
Get details of the alerts. This information includes the alert name, description, recommendation, severity, status, entity, etc.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
AlertId |
Specify the Id of the alert. |
false |
true (ByPropertyName) |
|
Severity |
Specify the severity of the alert(s) needs to be filtered. ("Informational", "Warning", "Critical") |
false |
true (ByPropertyName) |
|
Status |
Specify the status of the alert(s) needs to be filtered. ("New", "Resolved") |
false |
true (ByPropertyName) |
|
EntityType |
Specify the entity type of the alert(s) needs to be filtered. ("SnapCenterServer", "Host", "StorageSystem") |
false |
true (ByPropertyName) |
|
SearchText |
Specify the Alert Name or Entity Name needs to be filtered. |
false |
true (ByPropertyName) |
Examples
Example 1: Get alert by Id
Get-SmAlert -AlertId 100
This example syntax retrieves the information of an alert.
Id : 100 CreatedTime: 12/5/2018 2:47:05 AM ModifiedTime : 12/5/2018 2:47:05 AM Name : Aggregate assignment check Status : New Severity : Warning Entity : SMCoreContracts.ConfigCheck.SmEntity Description: Aggr-list field is not set for the storage virtual machine Recommendation : To rectify this issue, see https://kb.netapp.com/app/answers/answer_view/a_id/1070989/loc/en_US JobId : 2345 Source : Server EntityType : Host EntityName : mtme.englab.netapp.com
Example 2: Get all alerts
Get-SmAlert
This example syntax retrieves the information about all alerts.
Id : 100 CreatedTime: 12/5/2018 2:47:05 AM ModifiedTime : 12/5/2018 2:47:05 AM Name : Aggregate assignment check Status : New Severity : Warning Entity : SMCoreContracts.ConfigCheck.SmEntity Description: Aggr-list field is not set for the storage virtual machine Recommendation : To rectify this issue, see https://kb.netapp.com/app/answers/answer_view/a_id/1070989/loc/en_US JobId : 2345 Source : Server EntityType : Host EntityName : mtme.englab.netapp.com EntityId : 1 Id : 101 CreatedTime: 12/5/2018 2:48:15 AM ModifiedTime : 12/5/2018 2:48:15 AM Name : IMT check - OS platform, version and patches for SCSQL Server Status : New Severity : Critical Entity : SMCoreContracts.ConfigCheck.SmEntity Description: Unsupported version of SQL server instance is detected for the host Recommendation : Please refer to NetApp Interoperability Matrix Tool for supported versions JobId : 3456 Source : Server EntityType : Host EntityName : mtme.englab.netapp.com EntityId : 1 Id : 102 CreatedTime: 12/5/2018 2:57:23 AM ModifiedTime : 12/5/2018 2:57:23 AM Name : SVM duplicate Data LIF check Status : New Severity : Warning Entity : SMCoreContracts.ConfigCheck.SmEntity Description: Cluster Storage Virtual Machines have duplicate IP address Recommendation : You should ensure that ONTAP Cluster storage virtual machine network interfaces have unique IP addresses assigned to them JobId : 3678 Source : Server EntityType : SVM EntityName : mtme-win2k8r2x64-20.gdl.englab.netapp.com EntityId : 1
Example 3: Get all the alerts based on severity
Get-SmAlert -Severity "Critical"
This example syntax retrieves all the critical alerts.
Id : 101 CreatedTime: 12/5/2018 2:48:15 AM ModifiedTime : 12/5/2018 2:48:15 AM Name : IMT check - OS platform, version and patches for SCSQL Server Status : New Severity : Critical Entity : SMCoreContracts.ConfigCheck.SmEntity Description: Unsupported version of SQL server instance is detected for the host Recommendation : Please refer to NetApp Interoperability Matrix Tool for supported versions JobId : 3456 Source : Server EntityType : Host EntityName : mtme.englab.netapp.com EntityId : 1
Example 4: Get all the alerts based on status
Get-SmAlert -Status "New"
This example syntax retrieves all the new alerts.
Id : 101 CreatedTime: 12/5/2018 2:48:15 AM ModifiedTime : 12/5/2018 2:48:15 AM Name : IMT check - OS platform, version and patches for SCSQL Server Status : New Severity : Critical Entity : SMCoreContracts.ConfigCheck.SmEntity Description: Unsupported version of SQL server instance is detected for the host Recommendation : Please refer to NetApp Interoperability Matrix Tool for supported versions JobId : 3456 Source : Server EntityType : Host EntityName : mtme.englab.netapp.com EntityId : 1
Example 5: Get all the alerts based on entity
Get-SmAlert -EntityType "Host"
This example syntax retrieves all the Host related alerts.
Id : 101 CreatedTime: 12/5/2018 2:48:15 AM ModifiedTime : 12/5/2018 2:48:15 AM Name : IMT check - OS platform, version and patches for SCSQL Server Status : New Severity : Critical Entity : SMCoreContracts.ConfigCheck.SmEntity Description: Unsupported version of SQL server instance is detected for the host Recommendation : Please refer to NetApp Interoperability Matrix Tool for supported versions JobId : 3456 Source : Server EntityType : Host EntityName : mtme.englab.netapp.com EntityId : 1
Example 6: Get all the alerts based on entity name
Get-SmAlert -SearchText "mtme.englab"
This example syntax retrieves all the alerts whose entity name contains the text 'mtme.englab'.
Id : 101 CreatedTime: 12/5/2018 2:48:15 AM ModifiedTime : 12/5/2018 2:48:15 AM Name : IMT check - OS platform, version and patches for SCSQL Server Status : New Severity : Critical Entity : SMCoreContracts.ConfigCheck.SmEntity Description: Unsupported version of SQL server instance is detected for the host Recommendation : Please refer to NetApp Interoperability Matrix Tool for supported versions JobId : 3456 Source : Server EntityType : Host EntityName : mtme.englab.netapp.com EntityId : 1