Jump to content


  • 0
yakirLLC

SCOM 2012 Effective Configuration Manager

Question

Hi,

 

I want to be able and see the Effective Configuration per agent in SCOM 2012.

In SCOM 2007 I was able to use a tool called EffectiveConfigurationViewer.

 

I've found the PowerShell command Export-SCOMEffectiveMonitoringConfiguration.

In it's example they suggest to do the following:

PS C:\> $members = (Get-SCOMGroup -DisplayName "All Windows Computers").GetRelatedMonitoringObjects()

PS C:\> $members | foreach { Export-SCOMEffectiveMonitoringConfiguration -Instance $_ -Path "C:\temp\$($_.DisplayName).csv" -RecurseContainedObjects }

 

I've tried to run it as the following (because it takes too much time for all the agents):

PS C:\> $members = (Get-SCOMGroup -DisplayName "All Windows Computers").GetRelatedMonitoringObjects()

PS C:\> $member = $members | where {$_.DisplayName -like "*NodeName*"}

PS C:\> $member | foreach { Export-SCOMEffectiveMonitoringConfiguration -Instance $_ -Path "C:\temp\$($_.DisplayName).csv" -RecurseContainedObjects }

But I get the following error (after a few time processing):
Export-SCOMEffectiveMonitoringConfiguration : The client has been disconnected from the server. Please call
ManagementGroup.Reconnect() to reestablish the connection.
At line:1 char:18
+ $mem | foreach { Export-SCOMEffectiveMonitoringConfiguration -Instance $_ -Path ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Syste...igurationCmdlet:ExportSCEffecti...igurationCmdlet)
[Export-SCOMEffe...ngConfiguration], ServerDisconnectedException
+ FullyQualifiedErrorId : ExecutionError,Microsoft.SystemCenter.OperationsManagerV10.Commands.ExportSCEffectiveMon
itoringConfigurationCmdlet
How can I make it work?
I want to see all the Effective monitors and rules on a specific server.
Thanks.

 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

HI yakirLLC,

 

Since this tool is not something that is built into SCOM, I'd suggest checking with the developer for any update to support 2012.

 

But in searching, I came across this TechNet forum: https://social.technet.microsoft.com/Forums/systemcenter/en-US/23614387-9166-4372-b339-9694939e051d/scom-2012-effective-configuration-viewer?forum=operationsmanagergeneral.

 

It mentions that "In scom 2012, you can use powershell Export-SCOMEffectiveMonitoringConfiguration to export the rules, monitors, and overrides that apply to a specified monitoring object, calculates the effective configuration of the rules and monitors."

 

I believe that's what you were attempting to use though. Are you attempting this through an Admin Workstation connected to SCOM? If you are getting a connection issue, I would assume that since you are attempting to get a large amount of data (i.e. "All Windows Computers"), that this is too much for it. Maybe try running the command from one of the Management Servers themselves?

Share this post


Link to post
Share on other sites

  • 0

Hi,

 

Thanks for the reply.

 

I don't look for the tool. I know it wasn't developed by Microsoft.

But we do have a built-in Powershell command for SCOM that's not working properly(as it seems to me).

I'm getting the error just in the 3rd command(not when I try to get all windows servers[1st command]).

This error occurs only when I use the -RecurseContainedObjects flag (which is crucial to get the real amount of monitors/rules on the server).

If I'm not using this flag, I don't get any error but I do get less data.

 

Yakir.

Share this post


Link to post
Share on other sites

  • 0

Based on this TechNet article (https://technet.microsoft.com/library/hh527837.aspx) which is about using the Export-SCOMEffectiveMonitoringConfiguration PowerShell command, I only see 2 command lines, and not 3 (like you have), as follows:

 

PS C:\>$members = (Get-SCOMGroup –DisplayName “All Windows Computers”).GetRelatedMonitoringObjects()

PS C:\> $members | foreach { Export-SCOMEffectiveMonitoringConfiguration –Instance $_ -Path “C:\temp\$($_.DisplayName).csv” } -RecurseContainedObjects}

 

It does not mention your other comandline of: PS C:\> $member = $members | where {$_.DisplayName -like "*NodeName*"}

 

I'd suggest try running it not against the "All Windows Computers" group, and pick a small group, just to test/confirm it's not choking on too much data.

Share this post


Link to post
Share on other sites

  • 0

Their example also contains a Syntax error (it has "}" after the csv file while it shouldn't).

It should work to a single server too because in the example they run the Export command for each server (so basically, it's the same).

Anyway, I've tried to do it like the example(without the Syntax error of course) and got the exact same error:

PS C:\Users\scomadmin> $members | foreach { Export-SCOMEffectiveMonitoringConfiguration -Instance $_ -Path "D:\EffectiveConf\$($_.DisplayName).csv" -RecurseContainedObjects }
Export-SCOMEffectiveMonitoringConfiguration : The client has been disconnected from the server. Please call ManagementGroup.Reconnect() to reestablish the connection.
At line:1 char:22
+ $members | foreach { Export-SCOMEffectiveMonitoringConfiguration -Instance $_ -P ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Syste...igurationCmdlet:ExportSCEffecti...igurationCmdlet) [Export-SCOMEffe...ngConfiguration], ServerDisconnectedException
+ FullyQualifiedErrorId : ExecutionError,Microsoft.SystemCenter.OperationsManagerV10.Commands.ExportSCEffectiveMonitoringConfigurationCmdlet
Any idea why?
P.S:
In case I didn't mention, I ran this commands from the management server.
Thanks.

Share this post


Link to post
Share on other sites

  • 0

Take a look at this article, which I think mentions how they were able to fix the error (and why it occurred). Specifically read the comments.

 

http://www.systemcentercentral.com/scom-2012-cmdlet-export-scomeffectivemonitoringconfiguration/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.