xsadmin 工具到 xscmd 工具的迁移

在之前的发行版中,xsadmin 工具是用于监视环境状态的样本命令行实用程序。 xscmd 工具是作为一个正式受支持的管理和监视命令行工具而引入的。如果您以前使用的是 xsadmin 工具,请考虑将您的命令迁移到新 xscmd 工具。

xsadminxscmd 等效命令

表 1. xsadmin 实用程序和 xscmd 等效命令的参数. 一些 xscmd 命令有短的形式和长的形式。短形式的命令有一个短划线 (-),长形式的命令有两个短划线 (--)。您可以交换使用任一形式。
xsadmin 命令行参数 xscmd 等效命令 xscmd 命令参数
-bp
  • -cep hostname:listener_port
  • --catalogEndpoint hostname:listener_port
不适用
-ch
  • -cep hostname:listener_port
  • --catalogEndpoint hostname:listener_port
不适用
-clear -c clearGrid -g, -ms, -v, -m, (-cep)
-containers
  • -c listCoreGroups
  • -c listCoreGroupMembers -cg core_group
-e, -i, , -st, -snp, -ct, -s, -p, -hf, -z, -g, -m, -ms
-continuous 不适用 不适用
-coregroups
  • -c listCoreGroups
  • -c listCoreGroupMembers -cg core_group
不适用
-dismissLink <catalog_service_domain> -c dismissLink
  • -fd <foreignCatalogServiceDomain>
  • --foreignCatalogServiceDomain <foreignCatalogServiceDomain>
-dmgr 不适用 - 此参数将由 xscmd 自动确定 不适用
-empties 特定于新命令的参数 不适用
-establishLink <foreign_domain_name> <host1:port1,host2:port2...> -c establishLink
  • -fd <foreignCatalogServiceDomain> -fe <host1:port1,host2:port2...>
  • --foreignCatalogServiceDomain <foreignCatalogServiceDomain> -foreignEndPoints <host1:port1,host2:port2...>
-fc
  • -ct
  • --container
不适用
-fh
  • -hf
  • --hostFilter
不适用
-fm
  • -m
  • --map
不适用
-fnp
  • -snp
  • --serversWithNoPrimaries
不适用
-fp
  • -p
  • --partitionId
不适用
-fs
  • -s
  • --server
不适用
-fst
  • -st <shard_type>
  • --shardType <shard_type>
Shard values: P=primary A=asyncReplica S=syncReplica
不适用
-fz
  • -z
  • --zone
不适用
-force 特定于新命令的参数  
-g
  • -g
  • --objectGrid
不适用
-getstatsspec -c getStatsSpec 不适用
-getTraceSpec -c getTraceSpec 不适用
-h 您可带也可不带特定命令名运行帮助。
  • -h
  • --help
  • -h <command_name>
  • --help <command_name>
不适用
-hosts -c listHosts -g、-ms、-st、-c、-s、-hf、-z
-jmxUrl
  • -cep hostname:listener_port
  • --catalogEndpoint hostname:listener_port
不适用
-l -c listObjectGridNames 不适用
-m
  • -ms
  • --mapSet
不适用
-mapsizes -c showMapSizes -g, -ms, -i, [-ct, -z, -s, -hf, sht [P,A,S], -p]
-mbeanservers -c listAllJMXAddresses 不适用
-overridequorum -c overrideQuorum 不适用
-password
  • -pwd
  • --password
不适用
-p
  • -cep hostname:listener_port
  • --catalogEndpoint hostname:listener_port
不适用
-placementStatus -c placementServiceStatus -g, -ms
-primaries -c showPlacement -sf P -e, -i, , -st, -snp, -ct, -s, -p, -hf, -z, -g, -m, -ms
-profile 要将当前安全设置另存为安全概要文件:
  • -ssp profile_name
  • --saveSecProfile profile_name
要使用指定安全概要文件:
  • -sp profile_name
  • --securityProfile profile_name
 
-quorumstatus -c showQuorumStatus 不适用
-releaseShard
注意: 此命令行参数对 WebSphere® DataPower® XC10 Appliance 配置不适用。
-c releaseShard
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-c, -g, -ms, -p
-reserved
  • -sf R
  • --shardFilter R
不适用
-reserveShard
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-c reserveShard
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-c, -g, -ms, -p
-resumeBalancing <objectgrid_name> <map_set_name>
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-c resumeBalancing
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-g, -ms
-revisions -c revisions -s,-p,-g,-m
-routetable -c routetable -z, -hf,-p,-g,-ms
-settracespec <trace_string> -c setTraceSpec -spec <trace_string>
-swapShardWithPrimary
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-c swapShardWithPrimary
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-c -g, -ms, -p
-setstatsspec <stats_spec> -c setStatsSpec -spec <stats_spec>
-suspendBalancing <objectgrid_name> <map_set_name>
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-c suspendBalancing
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-g, -ms
-ssl
  • -ssl
  • --enableSSL
不适用
-teardown
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-c teardown
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-f, , -st, -snp, -c, -s, -p, -hf, -z, -g, -ms, -m
-triggerPlacement
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-c triggerPlacement
注意: 此命令行参数对 WebSphere DataPower XC10 Appliance 配置不适用。
-g, -ms
-trustPass
  • -tsp
  • --trustStorePassword
不适用
-trustPath
  • -ts
  • --trustStore
不适用
-trustType
  • -tst
  • --trustStoreType
不适用
-unassigned -c showPlacement -sf U -e, -i, , -st, -snp, -ct, -s, -p, -hf, -z, -g, -m, -ms
-username
  • -user
  • --username
不适用
-v
  • -v
  • --verbose
不适用
-xml -c showPlacement 不适用