Home > OpsMgr > OpsMgr – How to set a primary MS for a Gateway server

OpsMgr – How to set a primary MS for a Gateway server

Several days ago I was asked by one of my customers to changed the primary server for a gateway server for load balancing.

 

Until now there was only one management server (RMS) and now after deploying a second MS we needed to move the gateway from RMS to MS.

 

To accomplish this I used the following Powershell commands:

 

First we need to set the primary MS and failover MS :

$primaryMS = Get-ManagementServer | where {$_.Name -eq ‘MS.mydom.corp’}

 

$failoverMS = Get-ManagementServer | where {$_.Name -eq ‘RMS.mydom.corp’}

 

Set the Gateway server name:

$gatewayMS = Get-GatewayManagementServer | where {$_.Name -eq ‘GW.DMZ.corp’}

 

The following commnad set a primary and failover MS for a gateway:

Set-ManagementServer -GatewayManagementServer: $gatewayMS -primarymanagementserver: $primaryMS -FailoverServer: $failoverMS

 

To verify the change I used the following command:

Get-GatewayManagementServer | where {$_.Name -eq ‘GW.DMZ.corp’| Get-FailoverManagementServer

 

 

Advertisements
Categories: OpsMgr Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: