PowerVCF に含まれる Get-VCFTask コマンドで、SDDC Manger のタスク情報を確認してみます。
SDDC Manager では、下記のあたりで確認できる情報です。
今回の PowerVCF
PowerVCF は、下記のようにインストールします。
Get-VCFTask は、PowerShell の PowerVCF モジュールに含まれています。
PS> gcm Get-VCFTask | select Name,Version,Module Name Version Module ---- ------- ------ Get-VCFTask 2.4.1.1000 PowerVCF
SDDC Manager でのタスク情報の様子
SDDC Manager では、タスク ウィンドウ右上のあたりのをクリックすると、ウインドウを拡大できます。
SDDC Manager では、8件のタスクが表示されています。この情報を PowerVCF で取得してみます。
PowerVCF でのタスク情報取得
まず、SDDC Manager からトークンを取得しておきます。
PS> Request-VCFToken -fqdn vcf-m01-sddc-01.c.go-lab.jp PowerShell credential request Enter your credentials. User: administrator@vsphere.local Password for user administrator@vsphere.local: **************** Successfully Requested New API Token From SDDC Manager: vcf-m01-sddc-01.c.go-lab.jp
Get-VCFTask をオプションなしで実行すると、SDDC Manager のタスク ウインドウ表示と同様に8件の情報を取得できました。
PS> Get-VCFTask id : 5e70350d-e7b5-4221-866b-3a443ad440cb name : SDDC Manager restore Operation type : SDDCMANAGER_RESTORE status : Successful creationTimestamp : 2024/09/21 10:00:07 subTasks : {@{name=ExtractSDDCManagerBackup; description=Decrypt and Extract B ackup and Validate SDDC Manager for Restore operation; status=SUCCE SSFUL; creationTimestamp=2024/09/21 10:00:07; completionTimestamp=2 024/09/21 10:00:09; errors=System.Object[]}, @{name=StopSDDCManager Services; description=Stop all VCF SDDC Manager Services; status=SU CCESSFUL; creationTimestamp=2024/09/21 10:00:07; completionTimestam p=2024/09/21 10:01:10; errors=System.Object[]}, @{name=RestoreSDDCM anagerConfiguration; description=Restore SDDC Manager Configuration files; status=SUCCESSFUL; creationTimestamp=2024/09/21 10:00:07; c ompletionTimestamp=2024/09/21 10:01:11; errors=System.Object[]}, @{ name=RestoreSDDCManagerDatabase; description=Restore SDDC Manager D atabase; status=SUCCESSFUL; creationTimestamp=2024/09/21 10:00:07; completionTimestamp=2024/09/21 10:01:48; errors=System.Object[]}…} errors : {} resolutionStatus : UNRESOLVED isCancellable : False isRetryable : False id : d8e88242-2665-4dd5-aad3-0a8e58a35184 name : SDDC Manager Backup Operation type : SDDCMANAGER_BACKUP status : Successful creationTimestamp : 2024/09/20 15:34:03 subTasks : {@{name=QuiesceSystem; description=Quiescing the System for Backup Operation; status=SUCCESSFUL; creationTimestamp=2024/09/20 15:34:03 ; completionTimestamp=2024/09/20 15:34:03; errors=System.Object[]}, @{name=BackupSDDCManagerDatabase; description=Backup SDDC Manager Database; status=SUCCESSFUL; creationTimestamp=2024/09/20 15:34:03; completionTimestamp=2024/09/20 15:34:03; errors=System.Object[]}, @{name=BackupSDDCManagerConfiguration; description=Backup SDDC Mana ger Configuration; status=SUCCESSFUL; creationTimestamp=2024/09/20 15:34:03; completionTimestamp=2024/09/20 15:34:03; errors=System.Ob ject[]}, @{name=BackupSDDCManagerSystemConfiguration; description=B ackup SDDC Manager System Configuration; status=SUCCESSFUL; creatio nTimestamp=2024/09/20 15:34:03; completionTimestamp=2024/09/20 15:3 4:03; errors=System.Object[]}…} errors : {} resolutionStatus : UNRESOLVED isCancellable : False isRetryable : False id : 4ed1de91-35f5-440f-923c-93307820b01a name : Configure Backup of VCF Components (SDDC Manager and NSX Managers ) status : Successful creationTimestamp : 2024/09/20 15:29:04 completionTimestamp : 2024/09/20 15:29:29 subTasks : {@{name=Acquire Lock on SDDC Manager; description=Acquire Lock on SDDC Manager; status=SUCCESSFUL; creationTimestamp=2024/09/20 15 :29:05; completionTimestamp=2024/09/20 15:29:05; errors=System.Ob ject[]}, @{name=Validate Backup Configuration Input Data; descrip tion=Validate Backup Configuration Input Data; status=SUCCESSFUL; creationTimestamp=2024/09/20 15:29:05; completionTimestamp=2024/ 09/20 15:29:05; errors=System.Object[]}, @{name=Automation Helper Action; description=Automation Helper Action; status=SUCCESSFUL; creationTimestamp=2024/09/20 15:29:05; completionTimestamp=2024/ 09/20 15:29:05; errors=System.Object[]}, @{name=Validate Backup S erver Fingerprint and Get Host Key; description=Validate Backup S erver Fingerprint and Get Host Key; status=SUCCESSFUL; creationTi mestamp=2024/09/20 15:29:05; completionTimestamp=2024/09/20 15:29 :06; errors=System.Object[]}…} errors : {} resolutionStatus : UNRESOLVED isCancellable : False isRetryable : True id : 8cc4a5be-40a4-49dc-9c86-6549f58c4c7f name : Syncing vSAN HCL to vCenters type : VSAN_HCL_SYNC status : SUCCESSFUL creationTimestamp : 2024/09/20 6:26:54 completionTimestamp : 2024/09/20 6:26:59 subTasks : {@{name=Syncing vSAN HCL to vCenter: vcf-m01-vc-01.c.go-lab.jp; d escription=Syncing vSAN HCL to vCenter: vcf-m01-vc-01.c.go-lab.jp ; status=SUCCESSFUL; creationTimestamp=2024/09/20 6:26:54; comple tionTimestamp=2024/09/20 6:26:59; resources=System.Object[]}} isCancellable : False isRetryable : False id : 390476c9-4706-47da-9eab-f758f091d2d0 name : Syncing vSAN HCL to vCenters type : VSAN_HCL_SYNC status : SUCCESSFUL creationTimestamp : 2024/09/19 6:46:35 completionTimestamp : 2024/09/19 6:46:38 subTasks : {@{name=Syncing vSAN HCL to vCenter: vcf-m01-vc-01.c.go-lab.jp; d escription=Syncing vSAN HCL to vCenter: vcf-m01-vc-01.c.go-lab.jp ; status=SUCCESSFUL; creationTimestamp=2024/09/19 6:46:35; comple tionTimestamp=2024/09/19 6:46:38; resources=System.Object[]}} isCancellable : False isRetryable : False id : 8e7398d5-f4f1-40d1-a893-0a8f852288c0 name : vSphere Lifecycle Manager Image Upload Management-Domain-ESXi-Per sonality status : SUCCESSFUL creationTimestamp : 2024/09/19 6:43:23 completionTimestamp : 2024/09/19 6:46:24 isCancellable : False isRetryable : False id : 2002f5c3-e3f2-4676-a833-1d33bf7dbd5a name : Certificate Operation: Replace Certificate type : CERT_REPLACEMENT status : Successful creationTimestamp : 2024/09/19 6:33:22 subTasks : {@{name=vcf-m01-sddc-01.c.go-lab.jp:sddcmanager; description=Replac e Certificate for vcf-m01-sddc-01.c.go-lab.jp and resource type sdd cmanager; status=SUCCESSFUL; creationTimestamp=2024/09/19 6:33:22; completionTimestamp=2024/09/19 6:35:43}} errors : {} resolutionStatus : UNRESOLVED isCancellable : False isRetryable : True id : 43522db7-5641-47b8-a96f-fda581971a40 name : Certificate Operation: Generate CSR type : CERT_CSR_GENERATION status : Successful creationTimestamp : 2024/09/19 6:32:19 subTasks : {@{name=vcf-m01-sddc-01.c.go-lab.jp:sddcmanager; description=Genera te CSR for vcf-m01-sddc-01.c.go-lab.jp and resource type sddcmanage r; status=SUCCESSFUL; creationTimestamp=2024/09/19 6:32:19; complet ionTimestamp=2024/09/19 6:32:20}} errors : {} resolutionStatus : UNRESOLVED isCancellable : False isRetryable : False
PowerVCF でのタスク情報取得(タスク ID 単位)
以前の投稿で、REST API で取得していた情報を、PowerVCF でも確認してみます。
そもそもこのタスクは、実行していた時点では SDDC Manager がリストアで停止していたので PowerVCF ではリアルタイム確認できなそうですが、あとからレポート作成をする際などには役立つかもしれません・・・
PS> Get-VCFTask -id 5e70350d-e7b5-4221-866b-3a443ad440cb id : 5e70350d-e7b5-4221-866b-3a443ad440cb name : SDDC Manager restore Operation type : SDDCMANAGER_RESTORE status : Successful creationTimestamp : 2024/09/21 10:00:07 subTasks : {@{name=ExtractSDDCManagerBackup; description=Decrypt and Extract Backup and Validate SDDC Manager for Restore operation; status=SUCCESSFUL; cre ationTimestamp=2024/09/21 10:00:07; completionTimestamp=2024/09/21 10:00 :09; errors=System.Object[]}, @{name=StopSDDCManagerServices; descriptio n=Stop all VCF SDDC Manager Services; status=SUCCESSFUL; creationTimesta mp=2024/09/21 10:00:07; completionTimestamp=2024/09/21 10:01:10; errors= System.Object[]}, @{name=RestoreSDDCManagerConfiguration; description=Re store SDDC Manager Configuration files; status=SUCCESSFUL; creationTimes tamp=2024/09/21 10:00:07; completionTimestamp=2024/09/21 10:01:11; error s=System.Object[]}, @{name=RestoreSDDCManagerDatabase; description=Resto re SDDC Manager Database; status=SUCCESSFUL; creationTimestamp=2024/09/2 1 10:00:07; completionTimestamp=2024/09/21 10:01:48; errors=System.Objec t[]}…} errors : {} resolutionStatus : UNRESOLVED isCancellable : False isRetryable : False
サブ タスクの情報も確認してみます。 SDDCMANAGER_RESTORE タスクでは、creationTimestamp のタイムスタンプが親タスクと揃うようです。
PS> Get-VCFTask -id 5e70350d-e7b5-4221-866b-3a443ad440cb | select -ExpandProperty subTasks name : ExtractSDDCManagerBackup description : Decrypt and Extract Backup and Validate SDDC Manager for Restore operation status : SUCCESSFUL creationTimestamp : 2024/09/21 10:00:07 completionTimestamp : 2024/09/21 10:00:09 errors : {} name : StopSDDCManagerServices description : Stop all VCF SDDC Manager Services status : SUCCESSFUL creationTimestamp : 2024/09/21 10:00:07 completionTimestamp : 2024/09/21 10:01:10 errors : {} name : RestoreSDDCManagerConfiguration description : Restore SDDC Manager Configuration files status : SUCCESSFUL creationTimestamp : 2024/09/21 10:00:07 completionTimestamp : 2024/09/21 10:01:11 errors : {} name : RestoreSDDCManagerDatabase description : Restore SDDC Manager Database status : SUCCESSFUL creationTimestamp : 2024/09/21 10:00:07 completionTimestamp : 2024/09/21 10:01:48 errors : {} name : StartSDDCManagerServices description : Start and Validate all VCF SDDC Manager Service status : SUCCESSFUL creationTimestamp : 2024/09/21 10:00:07 completionTimestamp : 2024/09/21 10:04:53 errors : {} name : RestoreSDDCSystemConfiguration description : Restore SDDC Manager System Configuration status : SUCCESSFUL creationTimestamp : 2024/09/21 10:00:07 completionTimestamp : 2024/09/21 10:05:50 errors : {} name : PostRestoreRemediation description : Post Restore Remediation status : SUCCESSFUL creationTimestamp : 2024/09/21 10:00:07 completionTimestamp : 2024/09/21 10:06:21 errors : {} name : PostRestoreNfsRefresh description : Refresh NFS post restore status : SUCCESSFUL creationTimestamp : 2024/09/21 10:00:07 completionTimestamp : 2024/09/21 10:09:48 errors : {} name : UnquiesceSystem description : Unquiesce the system after Restore operation status : SUCCESSFUL creationTimestamp : 2024/09/21 10:00:07 completionTimestamp : 2024/09/21 10:09:48 errors : {}
以上、PowerVCF で SDDC Manager のタスク情報を確認してみる話でした。