B.28. tarantella gateway add

向 SGD 阵列注册 SGD Gateway。

语法

tarantella gateway add { 
                        --name server-name 
                        --certfile cert-file 
                        } | --file file

描述

下表显示了此命令的可用选项。

选项

描述

--name

要注册的 SGD Gateway 名称。

--certfile

SGD 服务器使用的 SGD Gateway 证书。该证书可以是确定性编码规则 (Definite Encoding Rules, DER) 格式或 PEM 格式。

--file

包含多个 SGD Gateway 的配置设置的批处理文件。

示例

以下示例将 gateway1.example.com 添加到 SGD 阵列的注册网关列表。

$ tarantella gateway add --name gateway1.example.com \
--certfile /opt/gateway1_cert_file.pem

以下示例使用带 --file 选项的 tarantella gateway add 来同时注册多个网关。

$ tarantella gateway add --file gateways.list

--file 选项指定一个批处理文件 gateways.list,其中包含每个网关的一系列设置,如下所示:

--name gateway1.example.com --certfile /opt/gateway1_cert_file.pem
--name gateway2.example.com --certfile /opt/gateway2_cert_file.pem