SCOM 2012: Identify rule or monitor from workflow name with powershell.

Sometimes identifying a rule or a monitor related to a alert can be challenging. PowerShell can be a great tool. I’m sharing the syntax for future reference.

Example:

  • For a rule

Get-SCOMRule | where {$_.Name -eq “Microsoft.SystemCenter.DiscoveryWriteActionModule.AgentProxyingNotEnabled.Alert”}

  • For a monitor

Get-SCOMmonitor | where {$_.Name -eq “Microsoft.SystemCenter.DiscoveryWriteActionModule.AgentProxyingNotEnabled.Alert”}

  • For a NotificationSubscription

Get-NotificationSubscription | ? {$_.name -eq “Subscription911173b6_cd1f_3aff_9a6c_d536e2a3f152”}

 

Leave a Reply

Your email address will not be published.