4.19. CLI を使用して Capsule Server 上の破損したコンテンツを回復する
ホストが Capsule Server からのコンテンツを使用できなくなった場合、コンテンツは破損しており、修復する必要があります。Capsule Server 上のコンテンツの量によっては、このタスクに時間がかかる場合があります。
手順
すべての Capsule のリストを表示します。
hammer capsule list
$ hammer capsule listCopy to Clipboard Copied! Toggle word wrap Toggle overflow Capsule Server の ID を書き留めます。
Capsule Server 上の破損したコンテンツを回復します。
コンテンツビュー内のコンテンツを修復します。
hammer capsule content verify-checksum \ --content-view-id My_Content_View_ID \ --id My_Capsule_Server_ID \ --organization-id My_Organization_ID
$ hammer capsule content verify-checksum \ --content-view-id My_Content_View_ID \ --id My_Capsule_Server_ID \ --organization-id My_Organization_IDCopy to Clipboard Copied! Toggle word wrap Toggle overflow ライフサイクル環境でコンテンツを修復します。
hammer capsule content verify-checksum \ --id My_Capsule_Server_ID \ --lifecycle-environment-id My_Lifecycle_Environment_ID \ --organization-id My_Organization_ID
$ hammer capsule content verify-checksum \ --id My_Capsule_Server_ID \ --lifecycle-environment-id My_Lifecycle_Environment_ID \ --organization-id My_Organization_IDCopy to Clipboard Copied! Toggle word wrap Toggle overflow リポジトリー内のコンテンツを修復します。
hammer capsule content verify-checksum \ --id My_Capsule_Server_ID \ --organization-id My_Organization_ID \ --repository-id My_Repository_ID
$ hammer capsule content verify-checksum \ --id My_Capsule_Server_ID \ --organization-id My_Organization_ID \ --repository-id My_Repository_IDCopy to Clipboard Copied! Toggle word wrap Toggle overflow Capsule Server 上のすべてのコンテンツを修復します。
hammer capsule content verify-checksum \ --id My_Capsule_Server_ID
$ hammer capsule content verify-checksum \ --id My_Capsule_Server_IDCopy to Clipboard Copied! Toggle word wrap Toggle overflow
検証
タスクが正常に完了したことを確認します。
hammer task list --search "Verify checksum for content"
$ hammer task list --search "Verify checksum for content"Copy to Clipboard Copied! Toggle word wrap Toggle overflow