Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Topic 相关

集群相关

  • clusterList: 查看集群信息,集群、BrokerName、BrokerId、TPS 等信息
  • clusterRT: 发送消息检测集群各 Broker RT。消息发往 ${BrokerName} Topic。

Broker 相关

  • updateBrokerConfig: 更新 Broker 配置文件,会修改 Broker.conf
  • brokerStatus: 查看 Broker 统计信息、运行状态(你想要的信息几乎都在里面)
  • brokerConsumeStats: Broker中各个消费者的消费情况,按 Message Queue 维度返回 Consume Offset,Broker Offset,Diff,TImestamp 等信息
  • getBrokerConfig: 获取 Broker 配置
  • wipeWritePerm: 从 NameServer 上清除 Broker 写权限
  • cleanExpiredCQ: 清理 Broker 上过期的 Consume Queue,如果手动减少对列数可能产生过期队列
  • cleanUnusedTopic: 清理 Broker 上不使用的 Topic,从内存中释放 Topic 的 Consume Queue,如果手动删除 Topic 会产生不使用的 Topic
  • sendMsgStatus: 向 Broker 发消息,返回发送状态和 RT

消息相关

  • queryMsgById: 根据 offsetMsgId 查询 msg,如果使用开源控制台,应使用 offsetMsgId,此命令还有其他参数,具体作用请阅读 QueryMsgByIdSubCommand
  • queryMsgByKey: 根据消息 Key 查询消息
  • queryMsgByOffset: 根据 Offset 查询消息
  • queryMsgByUniqueKey: 根据 msgId 查询,msgId 不同于 offsetMsgId,区别详见常见运维问题。-g,-d 配合使用,查到消息后尝试让特定的消费者消费消息并返回消费结果
  • checkMsgSendRT: 检测向 topic 发消息的 RT,功能类似 clusterRT
  • sendMessage: 发送一条消息,可以根据配置发往特定 Message Queue,或普通发送。
  • consumeMessage: 消费消息。可以根据 offset、开始 & 结束时间戳、消息队列消费消息,配置不同执行不同消费逻辑,详见ConsumeMessageCommand。
  • printMsg: 从 Broker 消费消息并打印,可选时间段
  • printMsgByQueue: 类似 printMsg,但指定 Message Queue
  • resetOffsetByTime: 按时间戳重置 offset,Broker 和 consumer 都会重置

消费者、消费组相关

  • consumerProgress: 查看订阅组消费状态,可以查看具体的 client IP 的消息积累量
  • consumerStatus: 查看消费者状态,包括同一个分组中是否都是相同的订阅,分析 Process Queue 是否堆积,返回消费者 jstack结果,内容较多,使用者参见 ConsumerStatusSubCommand
  • updateSubGroup: 更新或创建订阅关系
  • deleteSubGroup: 从 Broker 删除订阅关系
  • cloneGroupOffset: 在目标群组中使用源群组的 offset

连接相关

NameServer 相关

其他

  • startMonitoring: 开启监控进程,监控消息误删、重试队列消息数等
$ mqadmin
The most commonly used mqadmin commands are:
updateTopic Update or create topic
deleteTopic Delete topic from broker and NameServer.
updateSubGroup Update or create subscription group
deleteSubGroup Delete subscription group from broker.
updateBrokerConfig Update broker's config
updateTopicPerm Update topic perm
topicRoute Examine topic route info
topicStatus Examine topic Status info
topicClusterList get cluster info for topic
brokerStatus Fetch broker runtime status data
queryMsgById Query Message by Id
queryMsgByKey Query Message by Key
queryMsgByUniqueKey Query Message by Unique key
queryMsgByOffset Query Message by offset
printMsg Print Message Detail
printMsgByQueue Print Message Detail
sendMsgStatus send msg to broker.
brokerConsumeStats Fetch broker consume stats data
producerConnection Query producer's socket connection and client version
consumerConnection Query consumer's socket connection, client version and subscription
consumerProgress Query consumers's progress, speed
consumerStatus Query consumer's internal data structure
cloneGroupOffset clone offset from other group.
clusterList List all of clusters
topicList Fetch all topic list from name server
updateKvConfig Create or update KV config.
deleteKvConfig Delete KV config.
wipeWritePerm Wipe write perm of broker in all name server
resetOffsetByTime Reset consumer offset by timestamp(without client restart).
updateOrderConf Create or update or delete order conf
cleanExpiredCQ Clean expired ConsumeQueue on broker.
cleanUnusedTopic Clean unused topic on broker.
startMonitoring Start Monitoring
statsAll Topic and Consumer tps stats
allocateMQ Allocate MQ
checkMsgSendRT check message send response time
clusterRT List All clusters Message Send RT
getNamesrvConfig Get configs of name server.
updateNamesrvConfig Update configs of name server.
getBrokerConfig Get broker config by cluster or special broker!
queryCq Query cq command.
sendMessage Send a message
consumeMessage Consume message
updateAclConfig Update acl config yaml file in broker
deleteAccessConfig Delete Acl Config Account in broker
clusterAclConfigVersion List all of acl config version information in cluster
updateGlobalWhiteAddr Update global white address for acl Config File in broker
getAccessConfigSubCommand List all of acl config information in cluster
See 'mqadmin help <command>' for more information on a specific command.
$ mqadmin help allocateMQ
usage: mqadmin allocateMQ [-h] -i <arg> [-n <arg>] -t <arg>
-h,--help Print help
-i,--ipList <arg> ipList
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> topic name
$ mqadmin help brokerConsumeStats
usage: mqadmin brokerConsumeStats -b <arg> [-h] [-l <arg>] [-n <arg>] [-o <arg>] [-t <arg>]
-b,--brokerAddr <arg> Broker address
-h,--help Print help
-l,--level <arg> threshold of print diff
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-o,--order <arg> order topic
-t,--timeoutMillis <arg> request timeout Millis
$ mqadmin help brokerStatus
usage: mqadmin brokerStatus [-b <arg>] [-c <arg>] [-h] [-n <arg>]
-b,--brokerAddr <arg> Broker address
-c,--clusterName <arg> which cluster
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help checkMsgSendRT
usage: mqadmin checkMsgSendRT [-a <arg>] [-h] [-n <arg>] -s <arg> -t <arg>
-a,--amout <arg> message amout | default 100
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--size <arg> message size | default 128 Byte
-t,--topic <arg> topic name
$ mqadmin help cleanExpiredCQ
usage: mqadmin cleanExpiredCQ [-b <arg>] [-c <arg>] [-h] [-n <arg>]
-b,--brokerAddr <arg> Broker address
-c,--cluster <arg> clustername
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help cleanUnusedTopic
usage: mqadmin cleanUnusedTopic [-b <arg>] [-c <arg>] [-h] [-n <arg>]
-b,--brokerAddr <arg> Broker address
-c,--cluster <arg> cluster name
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help cloneGroupOffset
usage: mqadmin cloneGroupOffset -d <arg> [-h] [-n <arg>] [-o <arg>] -s <arg> -t <arg>
-d,--destGroup <arg> set destination consumer group
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-o,--offline <arg> the group or the topic is offline
-s,--srcGroup <arg> set source consumer group
-t,--topic <arg> set the topic
$ mqadmin help clusterAclConfigVersion
usage: mqadmin clusterAclConfigVersion -b <arg> | -c <arg> [-h] [-n <arg>]
-b,--brokerAddr <arg> query acl config version for which broker
-c,--clusterName <arg> query acl config version for specified cluster
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help clusterList
usage: mqadmin clusterList [-h] [-i <arg>] [-m] [-n <arg>]
-h,--help Print help
-i,--interval <arg> specify intervals numbers, it is in seconds
-m,--moreStats Print more stats
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help clusterRT
usage: mqadmin clusterRT [-a <arg>] [-c <arg>] [-h] [-i <arg>] [-m <arg>] [-n <arg>] [-p <arg>] -s <arg>
-a,--amout <arg> message amout | default 100
-c,--cluster <arg> cluster name | default display all cluster
-h,--help Print help
-i,--interval <arg> print interval | default 10 seconds
-m,--machine room <arg> machine room name | default noname
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-p,--print log <arg> print as tlog | default false
-s,--size <arg> message size | default 128 Byte
$ mqadmin help consumeMessage
usage: mqadmin consumeMessage [-b <arg>] [-c <arg>] [-e <arg>] [-g <arg>] [-h] [-i <arg>] [-n <arg>] [-o
<arg>] [-s <arg>] -t <arg>
-b,--brokerName <arg> Broker name
-c,--MessageNumber <arg> Number of message to be consumed
-e,--endTimestamp <arg> End timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS]
-g,--consumerGroup <arg> Consumer group name
-h,--help Print help
-i,--queueId <arg> Queue Id
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-o,--offset <arg> Queue offset
-s,--beginTimestamp <arg> Begin timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS]
-t,--topic <arg> Topic name
$ mqadmin help consumerConnection
usage: mqadmin consumerConnection -g <arg> [-h] [-n <arg>]
-g,--consumerGroup <arg> consumer group name
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help consumerProgress
usage: mqadmin consumerProgress [-g <arg>] [-h] [-n <arg>] [-s <arg>]
-g,--groupName <arg> consumer group name
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--showClientIP <arg> Show Client IP per Queue
$ mqadmin help consumerStatus
usage: mqadmin consumerStatus -g <arg> [-h] [-i <arg>] [-n <arg>] [-s]
-g,--consumerGroup <arg> consumer group name
-h,--help Print help
-i,--clientId <arg> The consumer's client id
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--jstack Run jstack command in the consumer progress
$ mqadmin help deleteAccessConfig
usage: mqadmin deleteAccessConfig -a <arg> -b <arg> | -c <arg> [-h] [-n <arg>]
-a,--accessKey <arg> set accessKey in acl config file for deleting which account
-b,--brokerAddr <arg> delete acl config account to which broker
-c,--clusterName <arg> delete cl config account to which cluster
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help deleteKvConfig
usage: mqadmin deleteKvConfig [-h] -k <arg> [-n <arg>] -s <arg>
-h,--help Print help
-k,--key <arg> set the key name
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--namespace <arg> set the namespace
$ mqadmin help deleteSubGroup
usage: mqadmin deleteSubGroup [-b <arg>] [-c <arg>] -g <arg> [-h] [-n <arg>]
-b,--brokerAddr <arg> delete subscription group from which broker
-c,--clusterName <arg> delete subscription group from which cluster
-g,--groupName <arg> subscription group name
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help deleteTopic
usage: mqadmin deleteTopic -c <arg> [-h] [-n <arg>] -t <arg>
-c,--clusterName <arg> delete topic from which cluster
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> topic name
$ mqadmin help getAccessConfigSubCommand
usage: mqadmin getAccessConfigSubCommand -b <arg> | -c <arg> [-h] [-n <arg>]
-b,--brokerAddr <arg> query acl config version for which broker
-c,--clusterName <arg> query acl config version for specified cluster
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help getBrokerConfig
usage: mqadmin getBrokerConfig [-b <arg>] [-c <arg>] [-h] [-n <arg>]
-b,--brokerAddr <arg> update which broker
-c,--clusterName <arg> update which cluster
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help getNamesrvConfig
usage: mqadmin getNamesrvConfig [-h] [-n <arg>]
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help printMsg
usage: mqadmin printMsg [-b <arg>] [-c <arg>] [-d <arg>] [-e <arg>] [-h] [-n <arg>] [-s <arg>] -t <arg>
-b,--beginTimestamp <arg> Begin timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS]
-c,--charsetName <arg> CharsetName(eg: UTF-8,GBK)
-d,--printBody <arg> print body
-e,--endTimestamp <arg> End timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS]
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--subExpression <arg> Subscribe Expression(eg: TagA || TagB)
-t,--topic <arg> topic name
$ mqadmin help printMsgByQueue
usage: mqadmin printMsgByQueue -a <arg> [-b <arg>] [-c <arg>] [-d <arg>] [-e <arg>] [-f <arg>] [-h] -i <arg>
[-n <arg>] [-p <arg>] [-s <arg>] -t <arg>
-a,--brokerName <arg> broker name
-b,--beginTimestamp <arg> Begin timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS]
-c,--charsetName <arg> CharsetName(eg: UTF-8,GBK)
-d,--printBody <arg> print body. eg: true | false(default)
-e,--endTimestamp <arg> End timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS]
-f,--calculate <arg> calculate by tag. eg: true | false(default)
-h,--help Print help
-i,--queueId <arg> queue id
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-p,--print msg <arg> print msg. eg: true | false(default)
-s,--subExpression <arg> Subscribe Expression(eg: TagA || TagB)
-t,--topic <arg> topic name
$ mqadmin help producerConnection
usage: mqadmin producerConnection -g <arg> [-h] [-n <arg>] -t <arg>
-g,--producerGroup <arg> producer group name
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> topic name
$ mqadmin help queryCq
usage: mqadmin queryCq [-b <arg>] [-c <arg>] [-g <arg>] [-h] -i <arg> [-n <arg>] -q <arg> -t <arg>
-b,--broker <arg> broker addr.
-c,--count <arg> how many.
-g,--consumer <arg> consumer group.
-h,--help Print help
-i,--index <arg> start queue index.
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-q,--queue <arg> queue num, ie. 1
-t,--topic <arg> topic name
$ mqadmin help queryMsgById
usage: mqadmin queryMsgById [-d <arg>] [-g <arg>] [-h] -i <arg> [-n <arg>] [-s <arg>] [-u <arg>]
-d,--clientId <arg> The consumer's client id
-g,--consumerGroup <arg> consumer group name
-h,--help Print help
-i,--msgId <arg> Message Id
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--sendMessage <arg> resend message
-u,--unitName <arg> unit name
$ mqadmin help queryMsgByKey
usage: mqadmin queryMsgByKey [-h] -k <arg> [-n <arg>] -t <arg>
-h,--help Print help
-k,--msgKey <arg> Message Key
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> topic name
$ mqadmin help queryMsgByOffset
usage: mqadmin queryMsgByOffset -b <arg> [-h] -i <arg> [-n <arg>] -o <arg> -t <arg>
-b,--brokerName <arg> Broker Name
-h,--help Print help
-i,--queueId <arg> Queue Id
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-o,--offset <arg> Queue Offset
-t,--topic <arg> topic name
$ mqadmin help queryMsgByUniqueKey
usage: mqadmin queryMsgByUniqueKey [-d <arg>] [-g <arg>] [-h] -i <arg> [-n <arg>] -t <arg>
-d,--clientId <arg> The consumer's client id
-g,--consumerGroup <arg> consumer group name
-h,--help Print help
-i,--msgId <arg> Message Id
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> The topic of msg
$ mqadmin help resetOffsetByTime
usage: mqadmin resetOffsetByTime [-c] [-f <arg>] -g <arg> [-h] [-n <arg>] -s <arg> -t <arg>
-c,--cplus reset c++ client offset
-f,--force <arg> set the force rollback by timestamp switch[true|false]
-g,--group <arg> set the consumer group
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--timestamp <arg> set the timestamp[now|currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS]
-t,--topic <arg> set the topic
$ mqadmin help sendMessage
usage: mqadmin sendMessage [-b <arg>] [-c <arg>] [-h] [-i <arg>] [-k <arg>] [-n <arg>] -p <arg> -t <arg>
-b,--broker <arg> Send message to target broker
-c,--tags <arg> Message tags
-h,--help Print help
-i,--qid <arg> Send message to target queue
-k,--key <arg> Message keys
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-p,--body <arg> UTF-8 string format of the message body
-t,--topic <arg> Topic name
$ mqadmin help sendMsgStatus
usage: mqadmin sendMsgStatus -b <arg> [-c <arg>] [-h] [-n <arg>] [-s <arg>]
-b,--brokerName <arg> Broker Name
-c,--count <arg> send message count, Default: 50
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--messageSize <arg> Message Size, Default: 128
$ mqadmin help startMonitoring
usage: mqadmin startMonitoring [-h] [-n <arg>]
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help statsAll
usage: mqadmin statsAll [-a] [-h] [-n <arg>] [-t <arg>]
-a,--activeTopic print active topic only
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> print select topic only
$ mqadmin help topicClusterList
usage: mqadmin topicClusterList [-h] [-n <arg>] -t <arg>
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> topic name
$ mqadmin help topicList
usage: mqadmin topicList [-c] [-h] [-n <arg>]
-c,--clusterModel clusterModel
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help topicRoute
usage: mqadmin topicRoute [-h] [-n <arg>] -t <arg>
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> topic name
$ mqadmin help topicStatus
usage: mqadmin topicStatus [-h] [-n <arg>] -t <arg>
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> topic name
$ mqadmin help updateAclConfig
usage: mqadmin updateAclConfig -a <arg> -b <arg> | -c <arg> [-g <arg>] [-h] [-i <arg>] [-m <arg>] [-n <arg>]
[-s <arg>] [-t <arg>] [-u <arg>] [-w <arg>]
-a,--accessKey <arg> set accessKey in acl config file
-b,--brokerAddr <arg> update acl config file to which broker
-c,--clusterName <arg> update cl config file to which cluster
-g,--groupPerms <arg> set groupPerms list,eg: groupD=DENY,groupD=SUB
-h,--help Print help
-i,--defaultTopicPerm <arg> set default topicPerm in acl config file
-m,--admin <arg> set admin flag in acl config file
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--secretKey <arg> set secretKey in acl config file
-t,--topicPerms <arg> set topicPerms list,eg: topicA=DENY,topicD=SUB
-u,--defaultGroupPerm <arg> set default GroupPerm in acl config file
-w,--whiteRemoteAddress <arg> set white ip Address for account in acl config file
$ mqadmin help updateBrokerConfig
usage: mqadmin updateBrokerConfig [-b <arg>] [-c <arg>] [-h] -k <arg> [-n <arg>] -v <arg>
-b,--brokerAddr <arg> update which broker
-c,--clusterName <arg> update which cluster
-h,--help Print help
-k,--key <arg> config key
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-v,--value <arg> config value
$ mqadmin help updateGlobalWhiteAddr
usage: mqadmin updateGlobalWhiteAddr -b <arg> | -c <arg> -g <arg> [-h] [-n <arg>]
-b,--brokerAddr <arg> update global white address to which broker
-c,--clusterName <arg> update global white address to which cluster
-g,--globalWhiteRemoteAddresses <arg> set globalWhiteRemoteAddress list,eg: 10.10.103.*,192.168.0.*
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqadmin help updateKvConfig
usage: mqadmin updateKvConfig [-h] -k <arg> [-n <arg>] -s <arg> -v <arg>
-h,--help Print help
-k,--key <arg> set the key name
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-s,--namespace <arg> set the namespace
-v,--value <arg> set the key value
$ mqadmin help updateNamesrvConfig
usage: mqadmin updateNamesrvConfig [-h] -k <arg> [-n <arg>] -v <arg>
-h,--help Print help
-k,--key <arg> config key
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-v,--value <arg> config value
$ mqadmin help updateOrderConf
usage: mqadmin updateOrderConf [-h] -m <arg> [-n <arg>] -t <arg> [-v <arg>]
-h,--help Print help
-m,--method <arg> option type [eg. put|get|delete
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-t,--topic <arg> topic name
-v,--orderConf <arg> set order conf [eg. brokerName1:num;brokerName2:num]
$ mqadmin help updateSubGroup
usage: mqadmin updateSubGroup [-a <arg>] [-b <arg>] [-c <arg>] [-d <arg>] -g <arg> [-h] [-i <arg>] [-m <arg>]
[-n <arg>] [-q <arg>] [-r <arg>] [-s <arg>] [-w <arg>]
-a,--notifyConsumerIdsChanged <arg> notify consumerId changed
-b,--brokerAddr <arg> create subscription group to which broker
-c,--clusterName <arg> create subscription group to which cluster
-d,--consumeBroadcastEnable <arg> broadcast
-g,--groupName <arg> consumer group name
-h,--help Print help
-i,--brokerId <arg> consumer from which broker id
-m,--consumeFromMinEnable <arg> from min offset
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-q,--retryQueueNums <arg> retry queue nums
-r,--retryMaxTimes <arg> retry max times
-s,--consumeEnable <arg> consume enable
-w,--whichBrokerWhenConsumeSlowly <arg> which broker id when consume slowly
$ mqadmin help updateTopic
usage: mqadmin updateTopic -b <arg> | -c <arg> [-h] [-n <arg>] [-o <arg>] [-p <arg>] [-r <arg>] [-s <arg>] -t
<arg> [-u <arg>] [-w <arg>]
-b,--brokerAddr <arg> create topic to which broker
-c,--clusterName <arg> create topic to which cluster
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-o,--order <arg> set topic's order(true|false)
-p,--perm <arg> set topic's permission(2|4|6), intro[2:W 4:R; 6:RW]
-r,--readQueueNums <arg> set read queue nums
-s,--hasUnitSub <arg> has unit sub (true|false)
-t,--topic <arg> topic name
-u,--unit <arg> is unit topic (true|false)
-w,--writeQueueNums <arg> set write queue nums
$ mqadmin help updateTopicPerm
usage: mqadmin updateTopicPerm [-b <arg>] [-c <arg>] [-h] [-n <arg>] -p <arg> -t <arg>
-b,--brokerAddr <arg> create topic to which broker
-c,--clusterName <arg> create topic to which cluster
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-p,--perm <arg> set topic's permission(2|4|6), intro[2:W; 4:R; 6:RW]
-t,--topic <arg> topic name
$ mqadmin help wipeWritePerm
usage: mqadmin wipeWritePerm -b <arg> [-h] [-n <arg>]
-b,--brokerName <arg> broker name
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
$ mqbroker -h
usage: mqbroker [-c <arg>] [-h] [-m] [-n <arg>] [-p]
-c,--configFile <arg> Broker config properties file
-h,--help Print help
-m,--printImportantConfig Print important config item
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-p,--printConfigItem Print all config item
$ mqnamesrv -h
usage: mqnamesrv [-c <arg>] [-h] [-n <arg>] [-p]
-c,--configFile <arg> Name server config properties file
-h,--help Print help
-n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
-p,--printConfigItem Print all config item
$ mqshutdown -h
Useage: mqshutdown broker | namesrv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment