SCOM 2012 Get Gray Management Servers With PowerShell

Hi,
I have SCOM 2012 R2.
I want to get all the Management Servers that are in Gray state using powershell. How can I do that?
I couldn't find anything good in the internet.
The best I got was Get-SCOMManagementServer but when I tested it out - it still showed that my gateway's HealthState was "Success" even though it was gray.
Thanks,
Yakir.

Hi,
Check if this one helps
Get-SCOMClass-name"Microsoft.SystemCenter.ManagementServer"|get-scomclassinstance|selectdisplayname,healthstate
I dont what is your final objective, but check this link
http://blogs.technet.com/b/jasonrydstrand/archive/2013/03/27/daily-scom-health-check-with-powershell.aspx

Similar Messages

  • SCOM 2012 SP1 UR4 management servers grey state

    Hi,
    My SCOM environment is made up of the below :-
    SCOM 2012 SP1 UR4.
    3 SCOM Management Servers all on Windows 2008 R2 SP1.
    Shared SQL 2008 cluster with 2 Windows nodes also on same OS.
    Just recently all our SCOM management servers have been flipping in and out from grey to green state.  Gateways/agents all look ok as showing green.  Alerting from agents appears normal as can see lots of them in console.
    Have flushed the health state cache folder on all 3 SCOM MS's and still the same issue.
    Appreciate any help on this one.

    Event id: 7011 - Was your server recently patched (Installed by any automatic updates) ?
    IS SCCM Configured in your MS? If Yes disable and check?
    Is Windows update service running ? Stop if for one or two days and check if this issue still appears
    Reference threads:
    http://social.technet.microsoft.com/Forums/en-US/b86e5a3d-0c2e-4d5e-9d3d-905da91fc982/scom-2012-event-id-7011-service-control-manager-error-when-fep-definition-updates-apply?forum=configmanagersecurity
    http://stefanroth.net/2012/09/26/scom-2012-event-id-7011-service-control-manager-error/
    Solution also available in: http://technet.microsoft.com/en-us/library/cc756319(v=ws.10).aspx
    ===========================================
    For Event id 20026 - 
    1. Does your Operationsmanager database have enough space ? Check that first.
    What is you DB size ?
    How much is the free space left ?
    2. Was there any resent change in the SCOM Action accoutn password ? Or has the password expired. Try re entering the SCOM Action password by re directing your self to Administration tab --> Run as Config -- > Accounts --> SCOM Action account.
    The description would be - This is the user account under which all rules run by default on the agent.
    Right click and go to properties and re enter the account name and password there and check.
    Refer the below screen shot
    Check this article as well:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/102d443c-db0e-4bf2-b0d6-31d7f9328537/all-agents-greyed-out-multiple-event-errors-with-ids-20026-20028?forum=operationsmanagergeneral
    ============================================
    Event id : 11904 - As per my knowledge appears due to incorrect Alrting string display name selected in any Rule or monitor.
    Also the description what you pasted in Event id : 11904 says Microsoft.SystemCenter.HealthService.ActionAccountConfigured.Error as highlighted below.
    Suggest to re enter the action account password and tell the results.
    Also is the Healthservice on the MS running using System account or Domain account ?
    =================================================================
    Description : The Microsoft Operations Manager Expression filter Module failed to query the delivered item, item was dropped.
    Property Expression: Reachability/State
    Error : 0XC00EE22
    One or more workflows were affected by this. Workflow
    name: Microsoft.SystemCenter.HealthService.ActionAccountConfigured.Error
    Gautam.75801

  • SCOM 2012 unable to monitor servers

    I have build a SCOM 2012 POC, post sql & SCOM installation am not able to monitor any servers.
    I have added servers for agent monitoring. I had tried importing few management packs also. but i dont servers in the any monitoring alerts views. i have waited for 2 or 3 days too but unable to see any servers.
    Please suggest me what are the must have management packs for SCOM 2012 for windows 2008 and 2012 monitoring.
    Do we need to patch or install any hotfix for this to work am not sure..
    Any help would be appreciated.
    Thank you,
    ndraj

    1) check whether those server is under scom monitoring: operations console --> administration worksace --> Device Management --> Agent Managed --> whether you see your server is under this view and its health state is healthy(Green check mark)
    2) monitoring Windows Server 2008 and 2012: you should download
    System Center Managment pack for Windows Server Operatng System, its current version is 6.0.7061.0.
    3) Run as account:  specify credentials for specific computers
    4) Run as profile: When a workflow requires rights and privileges that the default action account cannot provide, the workflow can be written to use a Run As profile. A Run As profile can have multiple Run As accounts associated with it.
    http://technet.microsoft.com/en-us/library/hh212714.aspx
    Roger

  • How to configure windows services alerts in SCOM 2012 for all agent servers. For eg, Terminal Services, Netlogon, RPC etc..

    Hi,
    I need to configure different windows services alerts in SCOM 2012. Below are some of the windows services I need to monitor through SCOM.
    Serivce: Windows Management Instrumentation
    Service: Netlogon
    Service: Remote Procedure Call (RPC)
    Service: Server Service
    Service: Terminal Services
    Service: Windows Time
    Service: Workstation
    Service : WWW Publishing Service
    Could some one please assist or share me the details, how to configure these services for windows agent servers.
    Thanks..
    Regards, Rajeev Parambil

    Hi,
    A certain set of services are monitored by default on all agents:
    DNS Client
    DHCP Client
    RPC
    Workstation
    Server
    For all the other services you could create a service monitor.
    A nice blog series outlining this process can be found here: http://www.bictt.com/blogs/bictt.php/2011/03/16/scom-monitoring-a-service-part1
    It's doing common things uncommonly well that brings succes. Check out my SCOM link blog:
    SCOM link blog

  • SCCM 2012 license for managing Servers

    Hi,
    We want to manage windows servers with SCCM 2012. Can someone explain what are the licensing options available and how much it cost per server. 
    Regards,
    Madhan

    This came up on this forum recently. Here you go
    http://social.technet.microsoft.com/Forums/en-US/db10f78f-3c44-40fd-92a8-1264ee06dccb/configmgr-2012-licensing?forum=configmanagergeneral
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • SCOM 2012 - Getting List of Objects in Maintenance Mode

    Hi,
    I want to create a group of all the objects that are in Maintenance / Unmonitored Mode at that particular moment. Whether it is possible to have it?
    Regards,
    Sajid

    Hi,
    Creating Groups in SCOM 2012 with PowerShell
    http://blogs.msdn.com/b/rslaten/archive/2013/06/06/creating-groups-in-scom-2012-with-powershell.aspx
    Modifying Explicit Group Membership in SCOM 2012 with PowerShell
    http://blogs.msdn.com/b/rslaten/archive/2013/06/27/modifying-explicit-group-membership-in-scom-2012-with-powershell.aspx
    With the second link, we use instancestoadd parameter to specify those objects that are in maintenancemode:
    InstancesToAdd
    Optional: GUIDs of the instances you want to add to the group. You can pass multiple by separating each with a  comma
    Regards,
    Yan Li
    Regards, Yan Li

  • SCOM 2012 Disabling Sealed Management Packs

    Hi, I need to disable some default MP in scom 2012 as part of testing and its a sealed MP. Could someone pls help me out to share a powershell script for executing the same.
    Also I want to know, if I disable this MP, will it allow me to enable in future.
    Pls advise..
    Regards, Rajeev Parambil

    There is no easy way of disabling all alerts, but this script could be used:
    http://www.systemcentercentral.com/disabling-all-the-rulesmonitors-of-a-management-pack-in-scom-2012/
    I don't know your situation, but I would recommend implementing the management pack in a demo environment, tune the alerts to a new management pack, and then import that custom mp into a production environment.

  • Scom 2012 r2 DFS management packs mp windows 2008 r2 servers

    Hello,
    I'm having an issue in getting the 2008 r2 DFS namespaces  servers to show up after installing the "Windows Server File & iSCSI Services 2012" and "Windows Server File & iSCSI Services 2012 R2".  The attached mp
    documentation says to "Remove all existing DFS namespaces packs prior to installing the new dfs namespaces pack". However, the 2012 mp doesn't seem to include 2008 mp. 
    Does anyone have a guide or can clarify the install/upgrade instructions? 
    Thanks.

    Regarding to
    DFS MP Guide, this management pack contain both for windows 2008\2012
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Managed Servers with Duplicate GUIDs

    I have two SLES10 SP4 / OES2SP3 vm servers that had the same GUID in the ZCC. They were removed via the /opt/novell/zenworks/bin/novell-zenworks-xplat-uninstall. The zenworks directories were removed and the associated novell-zenworks-xplat packages and java packages were removed with YaST.
    Both servers were re-started. The PreAgentPkg_AgentLinuxComplete.bin was run on the first and it registered in the ZCC. Twelve hours later I ran the PreAgent on the second and it completed successfully but did not show up in the ZCC. On a hunch I ran zac fsg on the second server and it came back with the same GUID the first server registered with.
    Does anyone know how GUIDs are determined and more importantly, how to resolve this?
    Thanks for any enlightenment.

    (I was afraid of that :>)
    What are the Reconciliation Settings in your Zone?
    On 10/2/2012 4:26 PM, pwhitham wrote:
    >
    > The first attempt failed using plain http. Switched to https: and it was
    > successfull. However, it registered with this info:
    > Serial Number 4b36e5767765416bb620abd9f8e095dc
    > GUID: 3449e3dd28d240aca090270511449a9f
    >
    > The GUID was the same GUID that the first server was using and that
    > server promptly disappeared from the ZCC as soon as the second one
    > registered.
    >
    > The second server had entries in the message log pointing back to the
    > first server.
    > "The managed device xxxx-srvr01 with guid
    > 3449e3dd28d240aca090270511449a9f and IP address(es) 10.47.144.18 failed
    > to register due to invalid authentication info."
    >
    > So what do these servers have in commom that would cause the same GUID
    > to be generated on both of them. The first server was a vm built a year
    > ago. The second server was migrated from Netware 6.5 to OES over three
    > years back.
    >
    >
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

  • SCOM 2012 SP1 "Task invocation failed with error code -2146232576"

    Hi,
    I`m trying to discover a Linux RHEL 5.9 Server which is in another untrusted domain and from the Discovery wizard I receive the following error:
    Task invocation failed with error code -2146232576. Error message was 0x80131700.
    Any ideas ?
    Greetings.

    Hi,
    @Simon, I restart the SCOM services and I also verify the UAC and it's disabled.
    @Mai Ali, thank you for you reply. I don't have a "&" symbol in my password, but only a "$" ..I hope it's fine.
    If the SCOM discovery doesn't work, I installed the agent manually on the Linux server.
    BTW I also use a "monuser" account configured using this procedure:
    http://social.technet.microsoft.com/wiki/contents/articles/7375.configuring-sudo-elevation-for-unix-and-linux-monitoring-with-system-center-2012-operations-manager.aspx
    I also verify the ports 22 and 5723 and are opened, but I also noticed that if you restart the scxadmin, is listening on HTTPS on port 1207.
    Now..if I try to re-discover the Linux server from SCOM, I receive the following error:
    "The pool managing the instance is not available or the location monitoring object cannot be found"
    Regards.

  • SCOM 2012 SP1 Web Transaction Monitoring with Login test.

    Hi, 
    we setup a web transaction monitor test and did the full recording.  The web site is one that accepts an active directory account for login.  We also setup a runas account that is a valid account for the site and configured NTLM in the settings
    for authetication and set this runas account.
    The test does not fail.    However when we change the runas account password to force a failure, we dont get a failure on the website login test but instead a runas account verfication failure from SCOM.
    How can we configure the web transaction monitor to properly login during the test?   Any guidance would be appreciated.
    Thanks Lance

    So back to the original topic of the thread.
    We setup another test on a site that uses basic authentication.  We setup the web transaction test to use a  login on a initial site that transfers to a second site.  We recorded this entire test and saved.  It seems to work as it gives
    no errors.
    However when we change the Runas account's credentials, which means it CANT login to the site, it still runs fine with no errors.  
    This tells me it is not really logging in but just seeing the http status code is less than 400.
    What am I doing wrong.
    Thanks Lance

  • SCOM 2012 SP1 - Automating alert ownsership with command channel notification: the command keeps executing

    Hello everyone,
    here is the context: one of my client wants that, when a SCOM operator changes the resolution state of an alert to a specific resolution state "XYZ", the alert's ownership is automatically set to this user's AD Account.
    What I did:
    a PoSh script that takes the alert ID as a parameter, extracts the user ID from the alert's history - get-scomalerthistory - and sets the alert's owner field with this ID - set-scomalert -owner.
    a command channel running the script
    a subscription that triggers for alert with the specific resolution state "XYZ"
    It works great the first time - when the user sets the alert to XYZ state. Problems come right after this as it seems that modifying the alert in anyway - via GUI or script - will trigger the subscription once again.
    So, in fact, I need the subscription to trigger only when the alert CHANGES its resolution state to XYZ.
    Does anyone have an idea about this ?
    Reagrds,
    P. Augras

    Hi, it's predictable behavior as your script updates the alert property but alert property matches criteria specified. So one of methods is to change the resolution state in script to another state, something like XYZProcessed.

  • SCOM 2012 -Monitor successful log on with SQL User id

    Hi Guys, 
    i have been ask to create a Monitor that can monitor successfully /fail login for a specific user id listed under "Logins", can some one please help me with this task , i can create a Monitor for Windows Event ID , but not sure if for SQL Login
    this is even possible or not?
    Thanks

    Please refer to the following post:
    http://contoso.se/blog/?p=236
    Roger

  • SCOM 2012 client movement between Management servers

    Hi all,
    I know In SCOM 2012 sp1 all management servers are peers , if I have five management servers ( A, B, C, D,E ) and 2 gateway servers ( F, G ) . One client is assigned to A management server , in case if that management server down , to which management servers
    or Gateway server that particular client will move any rule.
    Thanks,
    Sengottuvel M

    By default, "the first available management server". There is a black-box algorithm that works behind the scenes in terms of agent failover selection. The only way to control this is to set agent failover lists, and this is only possible via the command
    shell (powershell) - but it's relatively easy to do.
    Here are a couple interesting articles about the topic:
    http://blog.scomskills.com/agent-managementlist-primary-and-failover-configuration/
    http://blogs.technet.com/b/jonathanalmquist/archive/2009/11/11/set-failover-management-server-for-gateway-role.aspx
    ...and there are probably 100 other blog posts talking about the same thing.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • SCOM 2012 R2 # Windows Server agents remain in pending management

    Hi,
    First I installed one SCOM 2012 R2 Ops Manager. On same SCOM ops manager I added 3 windows server agents to monitor as below..
    one 2008 R2 AD server
    one Lync 2013 FE server
    one Exchange server 2013
    Now due to some technical issues later I had to completely remove/uninstall SCOM 2012 R2 setup. But I forgot to uninstall/remove 3 agents first before uninstalling SCOM 2012 R2 ops manager :( However I did manual uninstall of Microsoft monitoring agent setup
    from all 3 monitored agent servers.
    Now I setup new SCOM 2012 R2 ops manager once again. FQDN of new SCOM has been changed now, though server is in same domain as old one. Problem I am facing here is " I cannot able to add those 3 agents back into new SCOM ops manager. When I install
    agent back onto those 3 servers (by agent discovery or manual setup) , servers remains in pending management. I used power shell command to approve all 3 but even after approval servers are not being monitored. Health status always showing not monitored. A
    blank green circle.
    I think I didn't properly removed old agent setup, & somehow those 3 agents still bound to old SCOM ops manager.
    Could you please help me how I can remove remaining components of old agent setup from windows agent servers and monitor them with new SCOM?
    BR,
    Ajit

    Ensure that the following registry keys are deleted:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Operations Manager
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HealthService
    Reboot the agent machine (if possible)
    Delete the agent from Agent Managed in the OpsMgr console.
    Then try to discovery and push agent from console if failed. Try to install it manual and then from pending management click approved.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

Maybe you are looking for

  • Questions on OID and E-Business

    Hi all, What is the best way to migrate all the user accounts from instance said "A", and " B" that's using Oracle E-Busines, and 2 other instance said "C", "D" that's using older version of Oracle Internet Directory into the fresh Oracle Internet Di

  • Data Populated in a single row??

    Hi, I have a requirement as follows: Suppose there is a column "A". There many be "n" no. of records for that column "A" I want the code logic for this to sum up all the "n"  no. of records,which is of  type amount and to be populated in a single row

  • BAPI to update a single characteristic in IE02

    Hi,       I am trying to update a single characteristic in IE02.I am able to do that with the BAPI "BAPI_OBJCL_CHANGE",but this BAPI is updating only 1 characteristic and is initializing all the remaining characteristcs.       Any pointers on this is

  • How do I view reminders in order of due date on iPad?

    I need to view my Reminders in due-date order on the iPad, as they appear on my OSX laptop.  Does anyone know how to do this?  How could Apple have screwed this up?  What use is a to-do list you can't see in order of due dates?

  • Creating a BW system in EP 7.0

    Hi all I need to put up a BW report in portal..what option should i use in the system creation template..will that be a BI (JDBC/ODBO/SAP QUERY) system or an SAP system (dedicated app server / load balancing server)... my BW is on WAS ABAP n my porta