Modifier

Partager via


Get-NetworkControllerReplica

Determines which node the Network Controller service modules use as primary.

Syntax

Get-NetworkControllerReplica
   [[-ServiceTypeName] <String>]
   [-AllReplicas]
   [<CommonParameters>]

Description

The Get-NetworkControllerReplica cmdlet queries the Network Controller Service Fabric to determine which node a Network Controller service module uses as primary. The service modules include SDNAPI and SlbManagerService. This cmdlet also checks whether there is a quorum of service module replicas. A quorum is required for consensus and correct operation.

You can run this cmdlet from one of the Network Controller nodes.

Examples

Example 1: Determine which node is primary for Virtual Switch Service

PS C:\>Get-NetworkControllerReplica -ServiceTypeName "VSwitchService"

This command determines which node is primary for VSwitchService, or the Virtual Switch Service.

Parameters

-AllReplicas

Indicates that this cmdlet queries all replicas for only the primaries.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServiceTypeName

Specifies the service type that this cmdlet queries. The acceptable values for this parameter are:

  • ControllerService
  • ApiService
  • SlbManagerService
  • ServiceInsertion
  • FirewallService
  • VSwitchService
  • GatewayManager
  • MonitoringService
  • TopologyService
  • FnmService
  • HelperService
  • UpdateService
Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object