Get-NetworkControllerReplica
Determines which node the Network Controller service modules use as primary.
Syntax
Default (Default)
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.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.