×

与 Collector 服务相关的命令。(Commands related to the Collector service.)

用法 (Usage)
$ roxctl collector [command] [flags]
表1. 可用命令 (Table 1. Available commands)
命令 (Command) 描述 (Description)

support-packages

上传 Collector 的支持包。(Upload support packages for Collector.)

roxctl collector 命令选项继承自父命令 (roxctl collector command options inherited from the parent command)

roxctl collector 命令支持从父 roxctl 命令继承的以下选项。(The roxctl collector command supports the following options inherited from the parent roxctl command)

选项 (Option) 描述 (Description)

--ca string

指定用于安全连接的自定义 CA 证书文件路径。或者,您可以使用ROX_CA_CERT_FILE环境变量指定文件路径。(Specify a custom CA certificate file path for secure connections. Alternatively, you can specify the file path by using the ROX_CA_CERT_FILE environment variable.)

--direct-grpc

设置--direct-grpc以提高连接性能。或者,通过将ROX_DIRECT_GRPC_CLIENT环境变量设置为true,您可以启用直接 gRPC。默认值为false。(Set --direct-grpc for improved connection performance. Alternatively, by setting the ROX_DIRECT_GRPC_CLIENT environment variable to true, you can enable direct gRPC . The default value is false.)

-e, --endpoint string

设置要联系的服务的端点。或者,您可以使用ROX_ENDPOINT环境变量设置端点。默认值为localhost:8443。(Set the endpoint for the service to contact. Alternatively, you can set the endpoint by using the ROX_ENDPOINT environment variable. The default value is localhost:8443.)

--force-http1

强制对所有连接使用 HTTP/1。或者,通过将ROX_CLIENT_FORCE_HTTP1环境变量设置为true,您可以强制使用 HTTP/1。默认值为false。(Force the use of HTTP/1 for all connections. Alternatively, by setting the ROX_CLIENT_FORCE_HTTP1 environment variable to true, you can force the use of HTTP/1. The default value is false.)

--insecure

启用不安全连接选项。或者,通过将ROX_INSECURE_CLIENT环境变量设置为true,您可以启用不安全连接选项。默认值为false。(Enable insecure connection options. Alternatively, by setting the ROX_INSECURE_CLIENT environment variable to true, you can enable insecure connection options. The default value is false.)

--insecure-skip-tls-verify

跳过 TLS 证书验证。或者,通过将ROX_INSECURE_CLIENT_SKIP_TLS_VERIFY环境变量设置为true,您可以跳过 TLS 证书验证。默认值为false。(Skip the TLS certificate validation. Alternatively, by setting the ROX_INSECURE_CLIENT_SKIP_TLS_VERIFY environment variable to true, you can skip the TLS certificate validation. The default value is false.)

--no-color

禁用彩色输出。或者,通过将ROX_NO_COLOR环境变量设置为true,您可以禁用彩色输出。默认值为false。(Disable the color output. Alternatively, by setting the ROX_NO_COLOR environment variable to true, you can disable the color output. The default value is false.)

-p, --password string

指定基本身份验证的密码。或者,您可以使用ROX_ADMIN_PASSWORD环境变量设置密码。

--plaintext

使用未加密的连接。或者,通过将ROX_PLAINTEXT环境变量设置为true,您可以启用未加密的连接。默认值为false

-s, --server-name string

设置用于 SNI 的 TLS 服务器名称。或者,您可以使用ROX_SERVER_NAME环境变量设置服务器名称。

--token-file string

使用指定文件中提供的 API 令牌进行身份验证。或者,您可以使用ROX_API_TOKEN环境变量设置令牌。

这些选项适用于roxctl collector命令的所有子命令。

roxctl collector support-packages

上传 Collector 的支持包。(Upload support packages for Collector.)

支持包已弃用,对运行版本 4.5 或更高版本的受保护集群没有影响。支持包上传仅影响版本 4.4 及更早版本的受保护集群。

用法 (Usage)
$ roxctl collector support-packages [flags]

roxctl collector support-packages upload

将收集器支持包中的文件上传到 Central。

用法 (Usage)
$ roxctl collector support-packages upload [flags]
表 2. 选项
选项 (Option) 描述 (Description)

--overwrite

指定您是否要覆盖现有但不同的文件。默认值为false

--retry-timeout duration

设置 API 请求重试的超时时间。值为零表示等待整个请求持续时间而不重试。默认值为20s

-t, --timeout duration

设置 API 请求的超时时间。此选项表示请求的最大持续时间。默认值为1m0s