文档

mc support upload

Description

mc support upload 将文件从本地文件系统复制到 SUBNET 工单。

需要完成 SUBNET 注册

mc support 命令面向已在 MinIO SUBNET 注册的 MinIO 部署设计,以确保诊断和 性能测试获得最佳结果。 未注册 SUBNET 的部署无法使用 mc support 命令。

Syntax

mc support profile 命令具有以下语法:

mc [GLOBALFLAGS] support profile              \
                         ALIAS                \
                         FILE                 \
                         [--comment "string"] \
                         [--enc]              \
                         [--issue integer]

Parameters

ALIAS
Required

MinIO 部署的 alias

FILE
Required

要上传到 SUBNET 的文件路径。

--comment
Optional

上传文件时,向 issue 附加一条消息。

--enc
Optional

对上传内容进行加密。 用于加密的密钥仅 MinIO 可访问。

--issue
Optional

指定要添加该文件的 issue 编号。 如果未指定,则文件会上传到通用 issue 编号 0

Global Flags

此命令支持 全局标志 中的任意选项。

Examples

Upload a file to an issue

此命令将本地文件系统中的文件 ./trace.log 上传到别名为 minio1 的部署对应的 SUBNET issue 10001

mc support upload --issue 10001 minio1 ./trace.log

Upload a file to an issue with a comment for MinIO Engineers

此命令将本地文件系统中的文件 ./trace.log 上传到别名为 minio1 的部署对应的 SUBNET issue 10001。 该命令还会附加一条关于该文件的注释,供 MinIO Engineers 查看。

mc support upload --issue 10001 --comment "here is the requested trace log" minio1 ./trace.log