英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论