Jump to content


yakirLLC

Established Members
  • Posts

    3
  • Joined

  • Last visited

yakirLLC's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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.
  2. 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.
  3. 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.
×
×
  • 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.