Tuesday, November 20, 2012

SCOM 2012 - Issues with Pending Management Agents

I have run into issues where the Operational DB an the console get into an inconsistent state where new agents that have been deployed don't always show up in the Administration space under Pending Management. You can wait and wait and they will not show up. This can be very frustrating if you are in the middle of a new deployment. Fortunately there is a shell command you can run which will pull up all the agents that are currently sitting in a pending state.

Open the Operations Manager Shell and run the following command.
      Start > All Programs > Microsoft System Center 2012 > Operations Manager Shell
Additionally there are switches you can use if you know more about the agent you are looking for:
[-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
Once you have surfaced the missing agents you can approve all the pending with the following:
Parameter Set: FromAgentPendingAction
Approve-SCOMPendingManagement [-PendingAction] <AgentPendingAction[]> [[-ActionAccount] <PSCredential> ] [-PassThru] [ <CommonParameters>]
This can save you time and a lot of head scratching.

More to come!

No comments:

Post a Comment