如何使用CLI从客户主机显示远程队列管理器

huangapple go评论47阅读模式
英文:

How to display remote queue managers from client host using CLI

问题

可以使用命令行界面(CLI)或 PCF 或 REST 调用来查看客户端主机上的远程队列管理器吗?就像我可以在客户端 IBM MQ 的 Web 控制台上成功查看远程队列管理器一样。

英文:

I am new to IBM MQ, wanted to know if its possible to display remote queue managers from client host using CLI, like I can successfully see the remote queue managers in webconsole of client-ibm-mq but how to check that from CLI or PCF or REST call

答案1

得分: 2

目前不可能使用远程MQ命令(如PCF或MQSC)来显示机器上的队列管理器。

然而,可以使用MQ控制台或REST API 来实现。从以下URL执行HTTP GET请求(根据需要更改域名):

http://localhost:9080/ibmmq/rest/v1/admin/qmgr

这将显示类似以下的输出:

{"qmgr": [
  {
    "name": "MQG1",
    "state": "running"
  },
  {
    "name": "MQG2",
    "state": "ended"
  }
]}

有关此特定REST API 的更多信息,请参阅从/admin/qmgr进行HTTP GET的参考页面

英文:

It is not currently possible to use remote MQ commands (such as PCF or MQSC) to display the queue managers on a machine.

However, using the MQ Console or the REST API it is possible. Do an HTTP GET from the following URL (changing the domain accordingly):-

http://localhost:9080/ibmmq/rest/v1/admin/qmgr

This will show you output like the following:-

{"qmgr": [
  {
    "name": "MQG1",
    "state": "running"
  },
  {
    "name": "MQG2",
    "state": "ended"
  }
]}

For more information on this particular REST API, see reference page for HTTP GET from /admin/qmgr

huangapple
  • 本文由 发表于 2023年2月16日 13:25:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75468168.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定