Skip to main content
SnapCenter 5.0 cmdlets

New-SmAlert

Contributors

Create new alert.

Syntax

New-SmAlert [-Name]  <String>  [-Description]  <String>  [-Recommendation]  <String>  [-Severity]  <SmAlertSeverity>  [-Status]  <SmAlertStatus>  [-EntityType]  <SmEntityType>  [-EntityName]  <String>  [-JobId]  <String>  [-Source]  <SmAlertSource>

Detailed Description

To create new alert, Valid connection is required. You should provide alert severity like Informational, Warning or Critical and EntityType can be All, SnapCenterServer, Host or StorageSystem. The Source parameter should be ConfigurationChecker or SnapCenterServer.

Parameters

Name Description Required? Pipeline Input Default Value

Name

true

true (ByPropertyName)

Description

true

true (ByPropertyName)

Recommendation

true

true (ByPropertyName)

Severity

true

true (ByPropertyName)

Status

false

true (ByPropertyName)

EntityType

true

true (ByPropertyName)

EntityName

false

true (ByPropertyName)

JobId

true

true (ByPropertyName)

Source

true

true (ByPropertyName)

Examples

Example 1: Create new alert

 New-SmAlert -Name TestAlert -Description ForSnapCenter -Recommendation AnyRecom -Severity Informational -Status New -EntityType Host -EntityName WIN-SCServer.Domain1.com -JobId 162 -Source SnapCenterServer

This example syntax creates an alert.

Id :
			CreatedTime: 1/1/0001 12:00:00 AM
			ModifiedTime   : 1/1/0001 12:00:00 AM
			Name   : TestAlert
			Status : New
			Severity   : Informational
			Entity : SMCoreContracts.ConfigCheck.SmEntity
			Description: ForSnapCenter
			Recommendation : AnyRecom
			JobId  : 162
			Source : SnapCenterServer
			IsRulePassed   : False
			EntityType : Host
			EntityName : WIN-SCServer.Domain1.com
			EntityId   :
			Username   :
			Password   :
			Port   :