Get-ServiceFabricTestCommandStatusList

클러스터에서 트리거된 모든 오류 작업 및 해당 상태 목록을 가져옵니다.

Syntax

Get-ServiceFabricTestCommandStatusList
   [-StateFilter <TestCommandStateFilter>]
   [-TypeFilter <TestCommandTypeFilter>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

Get-ServiceFabricTestCommandStatusList는 클러스터에서 트리거된 오류 작업 목록과 해당 상태를 가져옵니다. 이 작업에서 추적하는 오류 목록에는 파티션 데이터 손실(Start-ServiceFabricPartitionDataLoss), 파티션 쿼럼 손실(Start-ServiceFabricPartitionQuorumLoss), 파티션 다시 시작(Start-ServiceFabricPartitionRestart) 및 노드 상태 전환(Start-ServiceFabricNodeTransition)이 포함됩니다.

반환된 작업 ID를 사용하여 해당 오류에 대한 진행률 가져오기 API를 사용하여 오류 작업에 대한 추가 세부 정보를 가져오거나 Stop-ServiceFabricTestCommand 명령을 사용하여 오류를 취소할 수 있습니다. TestCommandType에서 진행률 API로의 매핑은 아래에서 확인할 수 있습니다.

TestCommandType 진행률 가져오기 명령
PartitionDataLoss Get-ServiceFabricPartitionDataLossProgress
PartitionQuorumLoss Get-ServiceFabricPartitionQuorumLossProgress
PartitionRestart Get-ServiceFabricPartitionRestartProgress
NodeTransition Get-ServiceFabricNodeTransitionProgress

예제

예제 1: 취소된 테스트 명령의 상태 가져오기

PS C:\> Get-ServiceFabricTestCommandStatusList -StateFilter Cancelled
OperationId                              State     TestCommandType
-----------                              -----     ---------------
a268cc73-2e30-462b-b3df-3a0d30e5b330 Cancelled     PartitionQuorumLoss

이 명령은 취소된 오류 작업의 상태를 가져옵니다. 이 예제에서 결과에는 하나의 오류 작업이 있습니다.

예제 2: 모든 테스트 명령의 상태 가져오기

PS C:\> Get-ServiceFabricTestCommandStatusList
OperationId                              State     TestCommandType
-----------                              -----     ---------------
aeaceca9-320d-4f7b-84e8-3cc13c29a974 Completed     PartitionQuorumLoss
0e3fa169-dec0-46d1-8eff-2f1a4a3f5fde Completed     PartitionRestart
a268cc73-2e30-462b-b3df-3a0d30e5b330 Cancelled     PartitionQuorumLoss
51ed168c-bb22-47d5-97f9-6b74b353bb33 Completed     PartitionQuorumLoss
ebd322c2-b1d3-46a7-b254-3cc42e6ca2d1 Completed     PartitionRestart
d3f12b09-6a90-4745-a4fc-3f92149a7419 Completed     PartitionDataLoss

이 명령은 모든 오류 작업의 상태를 가져옵니다. 반환된 목록에는 완료된 작업 5개와 취소된 작업 1개가 포함됩니다.

매개 변수

-StateFilter

이 매개 변수를 사용하여 오류 작업의 현재 상태에 따라 반환되는 작업 목록을 필터링할 수 있습니다. 이 기능을 사용하여 관심 있는 결과로 반환되는 결과를 제한할 수 있습니다.

Type:TestCommandStateFilter
Accepted values:Default, Running, RollingBack, CompletedSuccessfully, Failed, Cancelled, ForceCancelled, All
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TimeoutSec

작업의 제한 시간(초)을 지정합니다.

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

-TypeFilter

이 매개 변수는 오류 작업의 유형에 따라 반환되는 작업 목록을 필터링하는 데 사용할 수 있습니다. 이 기능을 사용하여 관심 있는 오류 유형으로 반환된 결과를 제한할 수 있습니다.

Type:TestCommandTypeFilter
Accepted values:Default, PartitionDataLoss, PartitionQuorumLoss, PartitionRestart, NodeTransition, All
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

입력

None

출력

System.Object