How to Configure SCOM 2007 gateway server Failover to Multiple SCOM Management Servers

Set specific Gateway Server to use as MS01.com Primary and MS02.com as Failover

SCOM Management Servers:

Primary : MS01.com
Secondary : MS01.com

Gateway Servers:

Primary : XYZ01.com
Secondary : XYZ02.com
#If primary SCOM MS is down(MS01.com) then Gateway XYZ01.com should report to Secondary SCOM MS(XYZ02.com).

$primaryMS = Get-ManagementServer | where {$_.Name –eq ‘MS01.com’ }
$failoverMS = Get-ManagementServer | where {$_.Name –eq ‘MS02.com’}
$gatewayMS = Get-ManagementServer | where {$_.Name –eq ‘XYZ01.com’ }
Set-ManagementServer -GatewayManagementServer: $gatewayMS -PrimaryManagementServer: $primaryMS -FailoverServer: $failoverMS
Same command you can use for secondary gateway server

$primaryMS = Get-ManagementServer | where {$_.Name –eq ‘MS01.com’ }
$failoverMS = Get-ManagementServer | where {$_.Name –eq ‘MS02.com’}
$gatewayMS = Get-ManagementServer | where {$_.Name –eq ‘XYZ02.com’ }
Set-ManagementServer -GatewayManagementServer: $gatewayMS -PrimaryManagementServer: $primaryMS -FailoverServer: $failoverMS

Advertisements