xscmd 实用程序参考信息

当您使用 xscmd 实用程序时,可使用以下命令列表作为参考。

常规命令参数

下面是 xscmd 实用程序命令的常规格式。可选参数在方括号 [ ] 中。
警告:
请勿在 WebSphere® DataPower® XC10 Appliance 环境中使用以下命令:
  • -c releaseShard
  • -c reserveShard
  • -c swapShardWithPrimary
  • -c suspendBalancing
  • -c resumeBalancing
  • -c teardown
  • -c triggerPlacement
  • -c showinfo
用法:xscmd -c <cmdName> | -h <cmdName> | -lc [<cmdGroupName>] | -lcg
             [-cgc <className>] [-ca <support>] [-sp
             <profileName>] [-ks <filePath>] [-ts <filePath>] [-trf
             <filePath>] [-prot <protocol>] [-cxpv <provider>] [-trs
             <traceSpec>] [-al <alias>] [-pwd <password>] [-tsp <password>]
             [-cep <endpoints>] [-ksp <password>] [-arc <integer>] [-tt
             <type>] [-tst <type>] [-ssp <profileName>] [-kst <type>] [-cgp
             <property>] [-user <username>]

选项:
  -al,--alias <alias>                  密钥库中的别名。

  -arc,--authRetryCount <integer>        证书到期后的认证
                                       重试计数。如果该值
                                       设置为 0,那么不会
                                       进行认证重试。

  -c,--command <cmdName>                 指定要执行的命令的
                                       名称

  -ca,--credAuth <support>             设置客户机凭证
                                       认证支持 [Never,
                                       Supported, Required]。

  -cep,--catalogEndPoints <endpoints>    按 <host>[:<listenerPort>]
                                       [,<host>[:<listenerPort>]]
                                       <host>[:<listenerPort>][,<host>[:<liste
                                       nerPort>]]。缺省端点:
                                       localhost:2809

  -cgc,--credGenClass <className>        指定实施 CredentialGenerator
                                       接口的类的
                                       名称。此类用于获取
                                       客户机的凭证。

  -cgp,--credGenProps <property>         指定 CredentialGenerator 实施
                                       类的
                                       属性。这些属性通过 setProperties(String)
                                       方法为对象进行
                                       设置。

  -cxpv,--contextProvider <provider>     上下文提供者。示例:IBMJSSE2、
                                       IBMJSSE 和 IBMJSSEFIPS。

  -h,--help <cmdName>                    调用常规命令行帮助

  -ks,--keyStore <filePath>              密钥库的绝对路径。示例:                                       /etc/test/security/server.public

  -ksp,--keyStorePassword <password>     指定密钥库密码。

  -kst,--keyStoreType <type>             密钥库类型。示例:JKS、JCEK 和
                                       PKCS12。

  -lc,--listCommands <cmdGroupName>      列出一个命令组的所有命令

  -lcg,--listCommandGroups               列出所有命令组

  -prot,--protocol <protocol>            协议。示例:SSL、SSLv2、
                                       SSLv3、TLS 和 TLSv1。

  -pwd,--password <password>             eXtreme Scale 密码安全性
                                       凭证

  -sp,--secProfile <profileName>         指定概要文件名称。

  -ssp,--saveSecProfile <profileName>    在安全概要文件中保存安全参数
                                       值。

  -trf,--traceFile <filePath>            指定为 xscmd 命令输出生成的跟踪文件
                                       的绝对
                                       路径

  -trs,--traceSpec <traceSpec>           指定 xscmd 命令输出
                                       的跟踪规范

  -ts,--trustStore <filePath>            信任库绝对路径。示例:                                       /etc/test/security/server.public

  -tsp,--trustStorePassword <password>   信任库密码

  -tst,--trustStoreType <type>           信任库类型。示例:JKS、JCEK 和
                                       PKCS12。

  -tt,--transportType <type>             传输层安全性配置
                                       类型。示例:TCP/IP、
                                       SSL-Supported 和 SSL-Required。

  -user,--username <username>            eXtreme Scale 用户名安全性
                                       凭证 (credential)
用法:xscmd -c <cmdName> | -h <cmdName> | -lc [<cmdGroupName>] | -lcg
             [-cgc <className>] [-ca <support>] [-sp <profileName>] [-ks
             <filePath>] [-ts <filePath>] [-trf <filePath>] [-prot <protocol>]
             [-cxpv <provider>] [-trs <traceSpec>] [-al <alias>] [-pwd
             <password>] [-tsp <password>] [-cep <endpoints>] [-ksp <password>]
             [-arc <integer>] [-tt <type>] [-tst <type>] [-ssp <profileName>]
             [-kst <type>] [-cgp <property>] [-user <username>]
选项:
 -al,--alias <alias>                    密钥库中的别名。
 -arc,--authRetryCount <integer>        证书到期后的认证
                                        重试计数。如果该值设置为
                                        0,那么不会有任何认证
                                        重试。
 -c,--command <cmdName>                 指定要执行的命令的
                                        名称
 -ca,--credAuth <support>               设置客户机凭证认证
                                        支持 [Never, Supported, Required]。
 -cep,--catalogEndPoints <endpoints>    按 <host>[:<listenerPort>]
                                        [,<host>[:<listenerPort>]]
                                        格式指定一个或多个目录服务
                                        端点。缺省端点:
                                        localhost:2809
 -cgc,--credGenClass <className>        指定实施 CredentialGenerator
                                        接口的类的
                                        名称。此类用于获取
                                        客户机的凭证。
 -cgp,--credGenProps <property>         指定 CredentialGenerator 实施
                                        类的
                                        属性。这些属性通过 setProperties(String)
                                        方法为对象进行
                                        设置。
 -cxpv,--contextProvider <provider>     上下文提供者。示例:IBMJSSE2、
                                        IBMJSSE 和 IBMJSSEFIPS。
 -h,--help <cmdName>                    调用常规命令行帮助
 -ks,--keyStore <filePath>              密钥库的绝对路径。示例:                                        /etc/test/security/server.public
 -ksp,--keyStorePassword <password>     指定密钥库密码。
 -kst,--keyStoreType <type>             密钥库类型。示例:JKS、JCEK 和
                                        PKCS12。
 -lc,--listCommands <cmdGroupName>      列出一个命令组的所有命令
 -lcg,--listCommandGroups               列出所有命令组
 -prot,--protocol <protocol>            协议。示例:SSL、SSLv2、SSLv3、
                                        TLS 和 TLSv1。
 -pwd,--password <password>             eXtreme Scale 密码安全性
                                        凭证
 -sp,--secProfile <profileName>         指定概要文件名称。
 -ssp,--saveSecProfile <profileName>    在安全概要文件中保存安全参数
                                        值。
 -trf,--traceFile <filePath>            指定为 xscmd 命令输出生成的跟踪文件
                                        的绝对
                                        路径
 -trs,--traceSpec <traceSpec>           指定 xscmd 命令输出
                                        的跟踪规范
 -ts,--trustStore <filePath>            信任库绝对路径。示例:                                        /etc/test/security/server.public
 -tsp,--trustStorePassword <password>   信任库密码
 -tst,--trustStoreType <type>           信任库类型。示例:JKS、JCEK 和
                                        PKCS12。
 -tt,--transportType <type>             传输层安全性配置
                                        类型。示例:TCP/IP、SSL-Supported 和
                                        SSL-Required。
 -user,--username <username>            eXtreme Scale 用户名安全性
                                        凭证 (credential)

所有命令

下面是 xscmd 实用程序命令的完整列表。要获取指定命令的更多帮助信息和参数,请运行 xscmd -h command_name
命令名                 说明
------------           -----------
balanceShardTypes      尝试进行 shard 重新分发,以使每个容器中的主/副本比率在
                       一个 shard
                       内。

balanceStatus          检查指定 ObjectGrid 和
                       映射集的数据网格的均衡状态。

clearGrid              从数据网格清除数据。

dismissLink            从指定目录服务域断开连接。

establishLink          使用指定目录服务端点连接到指定目录服务
                       域。

findByKey              在映射中查找匹配的键。

getCatTraceSpec        检索此进程所知的所有目录服务器的跟踪
                       规范。

getStatsSpec           检索统计信息规范。

getTraceSpec           检索跟踪规范。

listAllJMXAddresses    显示所有 JMX MBean 服务器地址。

listCoreGroups         列出所有核心组。

listHosts              列出所有主机。

listObjectGridNames    列出所有已知 ObjectGrid 实例和映射集。

listProfiles           列出概要文件。

osgiAll                显示所有可用 OSGi 服务排名。使用 -sn
                       选项可显示单个服务。

osgiCheck              检查指定的 OSGi 服务排名是否
                       可用

osgiCurrent            显示当前在使用的所有 OSGi 服务排名。使用
                       -sn 选项来显示单个服务。

osgiUpdate             将 OSGi 服务更新到指定级别

overrideQuorum         通知目录服务器覆盖定额。

placementServiceStatus 显示 ObjectGrid 放置操作状态。

releaseShard           从指定容器服务器中
                       释放指定的主 shard。

removeProfile          从文件系统中除去概要文件。

reserveShard           在指定容器服务器上保留
                       释放指定的主 shard。

resumeBalancing        尝试对指定 ObjectGrid 实例和映射集
                       进行均衡并允许以后的
                       均衡尝试。

revisions              显示所有已知修订历史。

routetable             显示当前路由表。

setCatTraceSpec        设置此进程所知的所有目录服务器的
                       跟踪规范。

setStatsSpec           设置统计信息规范。

setTraceSpec           跟踪规范格式如下:
                       traceType1=traceLevel1=traceState1[:traceTypeN=traceLev
                       elN=traceStateN]*

showCoreGroupMembers   显示所有核心组成员。

showInfo               检索包括已安装版本和 JVM 信息的
                       环境规范。

showLinkedPrimaries    显示主 shard 及其所有外部或
                       内部的已链接主 shard

showMapSizes           显示所有映射大小。

showPlacement          列出所有容器服务器及其 shard。

showProfile            显示指定概要文件的详细信息。

showQuorumStatus       显示目录服务器定额状态。

suspendBalancing       阻止以后对指定 ObjectGrid 实例和映射集
                       进行均衡的尝试。

swapShardWithPrimary   将指定容器服务器的指定副本 shard 与其
                       主 shard 交换。

teardown               停止目录和容器服务器的列表。

triggerPlacement       触发指定 ObjectGrid 实例和映射集
                       的放置操作。将忽略
                       numInitialContainers 值。
命令名                 说明
------------           -----------
balanceShardTypes      尝试进行 shard 重新分发,以使每个容器中的主/副本比率在
                       一个
                       shard 内。

balanceStatus          检查指定 ObjectGrid 和
                       MapSet 的网格的均衡状态

clearGrid              从数据网格清除数据。

dismissLink            从指定目录服务域断开连接。

establishLink          使用指定目录服务端点连接到指定目录服务
                       域。

getCatTraceSpec        检索此进程所知的所有目录服务器的跟踪
                       规范。

getStatsSpec           检索统计信息规范。

getTraceSpec           检索跟踪规范。

listAllJMXAddresses    显示所有 JMX MBean 服务器地址。

listCoreGroups         列出所有核心组。

listHosts              列出所有主机。

listObjectGridNames    列出所有已知 ObjectGrid 实例和映射集。

listProfiles           列出概要文件。

osgiAll                显示所有可用 OSGi 服务排名。使用 -sn
                       选项可显示单个服务。

osgiCheck              检查指定的 OSGi 服务排名是否
                       可用

osgiCurrent            显示当前在使用的所有 OSGi 服务排名。使用
                       -sn 选项可显示单个服务。

osgiUpdate             将 OSGi 服务更新到指定级别

overrideQuorum         通知目录服务器覆盖定额。

placementServiceStatus 显示 ObjectGrid 放置操作状态。

releaseShard           从指定容器服务器中
                       释放指定的主 shard。

removeProfile          从文件系统中除去概要文件。

reserveShard           在指定容器服务器上保留
                       释放指定的主 shard。

resumeBalancing        尝试对指定 ObjectGrid 实例和映射集
                       进行均衡并允许以后的均衡尝试。

revisions              显示所有已知修订历史。

routetable             显示当前路由表。

setCatTraceSpec        设置此进程所知的所有目录服务器的
                       跟踪规范。

setStatsSpec           设置统计信息规范。

setTraceSpec           跟踪规范格式如下:
                       traceType1=traceLevel1=traceState1[:traceTypeN=traceLevelN=traceStateN]*

showCoreGroupMembers   显示所有核心组成员。

showLinkedPrimaries    显示主 shard 及其所有外部或
                       内部的已链接主 shard

showMapSizes           显示所有映射大小。

showPlacement          列出所有容器服务器及其 shard。

showProfile            显示指定概要文件的详细信息。

showQuorumStatus       显示目录服务器定额状态。

suspendBalancing       阻止以后对指定 ObjectGrid 实例和映射集
                       进行均衡的尝试。

swapShardWithPrimary   将指定容器服务器的指定副本 shard 与其
                       主 shard 交换。

teardown               停止目录和容器服务器的列表。

triggerPlacement       触发指定 ObjectGrid 实例和映射集
                       的放置操作。将忽略
                       numInitialContainers 值。