Description of problem: When qpid-stat is run with the argument telling it to connect to a remote host (qpid-stat -q <remote-host-ip>), it gets the information from the localhost instead. According to the help for qpid-stat, it should be possible to connect to a remote broker: [root@lzhaldyb-rhel57x ~]# qpid-stat -h usage: qpid-stat [options] BROKER Example: $ qpid-stat -q broker-host:10000 Version-Release number of selected component (if applicable): python-qpid-0.10-1.el5 python-qpid-qmf-0.10-10.el5 qpid-cpp-client-0.10-8.el5 qpid-cpp-client-devel-0.10-8.el5 qpid-cpp-client-devel-docs-0.10-8.el5 qpid-cpp-client-ssl-0.10-8.el5 qpid-cpp-server-0.10-8.el5 qpid-cpp-server-cluster-0.10-8.el5 qpid-cpp-server-devel-0.10-8.el5 qpid-cpp-server-ssl-0.10-8.el5 qpid-cpp-server-store-0.10-8.el5 qpid-cpp-server-xml-0.10-8.el5 qpid-java-client-0.10-6.el5 qpid-java-common-0.10-6.el5 qpid-java-example-0.10-6.el5 qpid-qmf-0.10-10.el5 qpid-qmf-devel-0.10-10.el5 qpid-tools-0.10-6.el5 How reproducible: 100% Steps to Reproduce: qpid-stat -q <remote-host-ip> Actual results: The list of queues from the localhost broker is shown. Expected results: The list of queues from the remote broker is shown. Additional info: I used two virtual machines for this test, which were on the same local network: rhel57i with ip-addr 192.168.5.1 rhel57x with ip-addr 192.168.5.2 [root@lzhaldyb-rhel57i ~]# qpid-stat -q rhel57x Queues queue dur autoDel excl msg msgIn msgOut bytes bytesIn bytesOut cons bind ============================================================================================================================== qmfc-v2-ui-lzhaldyb-rhel57i.3714.1 Y Y 0 0 0 0 0 0 1 1 qmfc-v2-lzhaldyb-rhel57i.3714.1 Y Y 0 13 13 0 10.1k 10.1k 1 2 qmfagent-26d339d8-c723-4de3-ad13-f515b66a8ae8 Y Y 0 6 6 0 102 102 1 4 reply-lzhaldyb-rhel57i.3714.1 Y Y 0 58 58 0 22.2k 22.2k 1 2 topic-lzhaldyb-rhel57i.3714.1 Y Y 0 0 0 0 0 0 1 4 qmfc-v2-hb-lzhaldyb-rhel57i.3714.1 Y Y 0 0 0 0 0 0 1 2 As can be seen from the above example, qpid-stat command returned the list of queues from the broker running on the same machine it was run on - they have the name of the host in them (rhel57i). I would expect the output of this command to be exactly the same as this: [root@lzhaldyb-rhel57x ~]# qpid-stat -q Queues queue dur autoDel excl msg msgIn msgOut bytes bytesIn bytesOut cons bind ============================================================================================================================== qmfc-v2-ui-lzhaldyb-rhel57x.3099.1 Y Y 0 0 0 0 0 0 1 1 reply-lzhaldyb-rhel57x.3099.1 Y Y 0 58 58 0 22.2k 22.2k 1 2 qmfc-v2-hb-lzhaldyb-rhel57x.3099.1 Y Y 0 0 0 0 0 0 1 2 topic-lzhaldyb-rhel57x.3099.1 Y Y 0 0 0 0 0 0 1 4 qmfagent-26d339d8-c723-4de3-ad13-f515b66a8ae8 Y Y 0 4 4 0 68 68 1 4 qmfc-v2-lzhaldyb-rhel57x.3099.1 Y Y 0 13 13 0 10.1k 10.1k 1 2 which is the output of the qpid-stat run locally on rhel57x machine.
Tested on RHEL5.9 and RHEL6.4 (both i386 and x86_64). This issue has been fixed. Packages used for testing: qpid-cpp-0.18-14 qpid-tools-0.18-8 -> VERIFIED
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0561.html