How to verify SCOM Gateway Server Failover

You can verify using below script.For example you have xyz01.com SCOM gateway server.Please run the below operation shell command

WMT script used:
$GWS = Get-SCOMManagementServer | where {$_.Name –eq ‘xyz01.com’}
$GWs | sort | foreach {
Write-Host “”;
“Gateway MS :: ” + $_.Name;
“–Primary MS :: ” + ($_.GetPrimaryManagementServer()).ComputerName;
$failoverServers = $_.getFailoverManagementServers();
foreach ($managementServer in $failoverServers) {
“–Failover MS :: ” + ($managementServer.ComputerName);
}
}
Write-Host “”;

Advertisements