Operations manager shell command to get the greyed out servers list
Hi, Get me the Operations manager shell command to get the greyed out servers list. as i am seeing the many systems in Grayed out in all state of servers (Healthy, Warning & Critical). And i am unable to differentiate the state of the status in generated the list using the Get-Agent & Get-State Also need in excel file as output. ThanksVishu
September 1st, 2012 4:05pm

Hi Use Import-Module OperationsManager $file="C:\Temp\GreyAgents.txt" $agent = Get-SCClass -name "Microsoft.SystemCenter.Agent" $objects = Get-SCOMMonitoringObject -class:$agent | where {$_.IsAvailable -eq $false} ForEach ($object in $objects){ $object.DisplayName+ ","+ $object.Healthstate | Out-File $file -Append } It will create a comma separated file in the Directory which you specify at $file variable. Regards, StefanBlog: http://blog.scomfaq.ch
Free Windows Admin Tool Kit Click here and download it now
September 1st, 2012 8:07pm

Notes: The code is for SCOM 2012 if you Need SCOM 2007 R2 see here http://www.systemcentercentral.com/BlogDetails/tabid/143/IndexId/49552/Default.aspxBlog: http://blog.scomfaq.ch
September 1st, 2012 8:29pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics