Operations Manager cmdlet: Get-Alert mini reports

Pete Zerger has a good example of a mini-report http://www.systemcenterforum.org/powershell-tip-operations-manager-2007-top-alerts-report-part-1/ . From his report I got the idea for these other mini-reports

To get a report of Top closed alerts.

>get-alert -criteria `ResolutionState = "255"' | Group-Object Name |Sort -desc Count | select-Object -first 5 Count, Name |Format-Table -auto

Count  Name
-----      ----
  105   Microsoft Windows Internet Information Services 2003 SMTP Virtual Server...
   91    Monitor Health Service Heartbeat
   80    WMI Probe Module Failed Execution
   71    Service Check Data Source Module Failed Execution
   52    MAPI Logon Monitor reported a problem


Top 5 computers with new alerts.

>get-alert -criteria 'ResolutionState = ''0''' | Group-Object PrincipalName |Sort -desc Count | select-Object -first 5 Count, Name | Format-table -auto

Count  Name
-----      ----
   14    SOTM.My.Company.Com
   12    BIODTL.My.Company.Com
   11    NONAMI.My.Company.Com
   11    BLOWEDUPSRV.My.Company.Com
   11    BIGSERVER.My.Company.Com

Top 5 computers with resolved alerts.

>get-alert -criteria 'ResolutionState = ''255''' | Group-Object PrincipalName |Sort -desc Count | select-Object -first 5 Count, Name | Format-table -auto

Count  Name
-----      ----
 4933   BLOWEDUPSRV.My.Company.Com
  152    NONAMI.My.Company.Com
  140    BIODTL.My.Company.Com
  130    SOTM.My.Company.Com
  105    BIGSERVER.My.Company.Com

 

Comments

No Comments