Share via


How to Configure Agent Failover to Multiple Gateway Servers in Operations Manager 2007

Use the Set-ManagementServer -AgentManagedComputer command in Command Shell as shown in the following example to configure an agent to failover to multiple gateway servers. The commands can be run from any Command Shell in the Management Group.

To configure agent failover to multiple gateway servers

  1. Log on to the computer with an account that is a member of the Administrators group.

  2. On the Windows desktop, click Start, point to Programs, point to System Center Operations Manager 2007, and then click Command Shell.

  3. In Command Shell, follow the example described in the next section.

Example

The following example can be used to configure agent failover to multiple gateway servers.

$primaryMS = Get-ManagementServer | where {your filter here}
$failoverMS = Get-ManagementServer | where {your filter here}
$agent = Get-Agent | where {your filter here}
Set-ManagementServer -AgentManagedComputer: $agent -PrimaryManagementServer: $primaryMS -FailoverServer: $failoverMS

In the example above, you will need to create a filter statement for the first three commands. The following is an example of a filter command written to find the computer computername.com that will be assigned to the $failoverMS variable:

$failoverMS = Get-ManagementServer | where {$_.Name –eq ’contoso.com’ }

For help with the Set-ManagementServer command, type the following in the Command Shell window:

Get-help Set-ManagementServer -full

See Also

Tasks

How to Configure Gateway Server Failover to Multiple Management Servers in Operations Manager 2007
How to Deploy the Gateway Approval Tool in Operations Manager 2007
How to Deploy the Gateway Server Using MOMGateway.msi in Operations Manager 2007
How to Remove the Gateway Server in Operations Manager 2007
How to Use the Gateway Approval Tool in Operations Manager 2007

Concepts

About Gateway Server in Operations Manager 2007
Operations Manager 2007 Agent Assignment and Failover Wizard

Did you find this information useful? Please send your suggestions and comments about the documentation.