OperationsManager (SCOM) Load Balance Agents via Powershell

 I've found SCOM agent load balancing to be tedious and lacking from the Operations Console. I've created this script that uses an input parameter of a resource pool and management server, along with a batch limit to automatically load balance the agents associated with that re

 
 
 
 
 
(0)
20 times
Add to favorites
System Center
2/17/2018
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Load Balancing in HA
    2 Posts | Last post March 05, 2018
    • Hi Demcher,
      
      Thanks for the great script and post. I have a question for you. We currently have 5 MS in 1 site and 5 MS in another site which is our HA site. We have 2 agent pool defined. The first one is for our primary site and the 2nd one if for our HA site. We only want to move our SCOM agent to the HA site pool if our Primary pool is down. How would you accomplish this?
      
      I believe in your script we can only specify  pool?
      
      Thanks
    • Hi George,
      
      The module I wrote is designed to load balance agents against a single resource pool. What you can do is get all of the agents in your primary pool, move them to one of the management servers in your failover pool and then run the load balancing module against the failover pool. It would look something like this:
      
      $PrimaryPool = Get-SCOMResourcePool 'Primary Pool'
      $Agents = $PrimaryPool | Get-SCOMAgent
      $HAManagementServer = Get-SCOMManagementServer 'HA Server'
      Set-SCOMParentManagementServer -PrimaryServer $HAManagementServer -FailoverServer $Null -Agent $Agents
      
      Once this finishes, you can proceed to run the SCOM-LoadBalancing module against the HA pool.
      
      Hope this helps!
      
      Josh