mc support callhome
描述
mc support callhome
命令允許啟用或停用從部署到 MinIO SUBNET 的報告。
所有 mc support
命令都需要有效的 SUBNET 訂閱。
啟用後,MinIO 可以將日誌即時傳送到 SUBNET、每 24 小時傳送診斷資料,或同時傳送兩者。
無論註冊狀態如何,MinIO 預設都會停用此功能。您必須明確啟用 callhome
功能才能開始即時日誌上傳。
需要 SUBNET 註冊
mc support
命令是為已註冊 MinIO SUBNET 的 MinIO 部署所設計,以確保診斷和效能測試的最佳結果。未註冊 SUBNET 的部署無法使用 mc support
命令。
語法
- mc support callhome enable
開始將部署的診斷資訊、日誌或兩者皆傳送至 SUBNET。
mc support callhome enable \ ALIAS \ [--logs] \ [--diag]
- mc support callhome disable
停止將部署的診斷資訊、日誌或兩者皆傳送至 SUBNET。
mc support callhome disable \ ALIAS \ [--logs] \ [--diag]
- mc support callhome status
輸出部署目前是否將診斷資訊、日誌或兩者皆傳送至 SUBNET。
mc support callhome status \ ALIAS \ [--logs] \ [--diag]
參數
- ALIAS
- 必要
MinIO 部署的別名。
如果您沒有傳遞 --logs
或 --diag
,則該命令會同時應用於日誌和診斷資訊。
範例
啟用 callhome
報告
啟用傳送別名為 minio1
的部署數據。當為註冊到 SUBNET 的部署啟用時,MinIO 會將日誌和診斷資訊傳送至 SUBNET。
mc support callhome enable minio1
為日誌啟用 callhome
報告
為別名為 minio1
的部署啟用日誌 callhome。當為註冊到 SUBNET 的部署啟用時,MinIO 會即時將日誌傳送至 SUBNET。
mc support callhome enable minio1 --logs
停用 callhome
日誌
停用為註冊到 SUBNET 且別名為 minio1
的部署,即時傳送資訊至 SUBNET。
mc support callhome disable minio1
顯示目前的 callhome
設定
顯示別名為 minio1
的部署是否將診斷資訊或日誌傳送至 SUBNET。
mc support callhome status minio1
全域標誌
此命令支援任何全域標誌。