Description
Description of problem:
qpid-cluster -c <ID> shall view client connections to specified member, but it does not work at all.
Version-Release number of selected component (if applicable):
any
How reproducible:
100%
Steps to Reproduce:
1. Setup a qpid cluster
2. Run qpid-cluster <one_broker_address> to discover ID of a broker. Output is something like:
$ qpid-cluster localhost:5672
Cluster Name: test
Cluster Status: ACTIVE
Cluster Size: 2
Members: ID=1.2.3.4:28840 URL=amqp:tcp:1.2.3.4:5672
: ID=1.2.3.5:21260 URL=amqp:tcp:1.2.3.5:5672
$
3. Query for connections on one node using broker ID from previous output, i.e.:
$ qpid-cluster -c 1.2.3.4:28840 localhost:5672
Actual results:
Output identical to the one in point 2. is written:
Cluster Name: test
Cluster Status: ACTIVE
Cluster Size: 2
Members: ID=1.2.3.4:28840 URL=amqp:tcp:1.2.3.4:5672
: ID=1.2.3.5:21260 URL=amqp:tcp:1.2.3.5:5672
Expected results:
List of connections, i.e. something like:
Clients on Member: ID=1.2.3.5:21260:
dhcp-1-223:5672-1.2.3.4
dhcp-1-223:5672-1.2.3.5
localhost.localdomain:5672-127.0.0.1
Additional info:
Patch attached, trivial omitting of setting up variables at options parsing