mc admin subnet

mc admin subnet 是一个子网相关命令,语法如下:

C:\>mc admin subnet -h
NAME:
  mc admin subnet - Subnet related commands

USAGE:
  mc admin subnet COMMAND [COMMAND FLAGS | -h] [ARGUMENTS...]

COMMANDS:
  health  run health check for Subnet

FLAGS:
  --config-dir value, -C value  path to configuration folder (default: "C:\\Users\\Administrator\\mc")
  --quiet, -q                   disable progress bar display
  --no-color                    disable color theme
  --json                        enable JSON lines formatted output
  --debug                       enable debug output
  --insecure                    disable SSL certificate verification
  --help, -h                    show help

其中,health 子命令用来检查子网运行健康状态。它的语法如下:

C:\>mc admin subnet health -h
NAME:
  mc admin subnet health - run health check for Subnet

USAGE:
  mc admin subnet health TARGET

FLAGS:
  --deadline value              maximum duration that health tests should be allowed to run (default: 1h0m0s) [%MC_HEALTH_DEADLINE%, %MC_OBD_DEADLINE%]
  --license value               Subnet license key
  --name value                  Cluster name to be saved in subnet on 1st upload
  --schedule value              Schedule of uploading to subnet in no of days (default: 0)
  --subnet-proxy value          HTTP(S) proxy URL to be used along with license flag
  --config-dir value, -C value  path to configuration folder (default: "C:\\Users\\Administrator\\mc")
  --quiet, -q                   disable progress bar display
  --no-color                    disable color theme
  --json                        enable JSON lines formatted output
  --debug                       enable debug output
  --insecure                    disable SSL certificate verification
  --help, -h                    show help

示例

(1)获取本地别名为 “local” 的 MinIO 服务器的健康信息。如:CPU、磁盘、内存等等

D:\server\minio>mc admin subnet health local
● Admin Info ... ✔
● CPU Info ... ✔
● Disk Info ... ✔
● OS Info ... ✔
● Mem Info ... ✔
● Process Info ... ✔
● Server Config ... ✔
● Drive Test ... ✔
● Network Test ... ✔
*********************************************************************************
                                   WARNING!!
     ** THIS FILE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR ENVIRONMENT **
     ** PLEASE INSPECT CONTENTS BEFORE SHARING IT ON ANY PUBLIC FORUM **
*********************************************************************************
mc: Health data saved at local-health_20210720042529.json.gz
说说我的看法
全部评论(
没有评论
关于
本网站属于个人的非赢利性网站,转载的文章遵循原作者的版权声明,如果原文没有版权声明,请来信告知:hxstrive@outlook.com
公众号