On 09/01/2010 08:36 PM, Cooper, Chris wrote:
Is there a way I can see the ip address of clients connected and subscribing by queue? I have subscribers to durable topics fail to connect because another subscriber is connected with the same clientid. I've tried using qpid-tool to no avail.
Are you using 0.6? If so you can get the information from qpid-tool, though it is a little involved...
If you 'list subscriptions' you will see a list of subscription records, hopefully the subscription name helps identify the one(s) you are interested in (if not you need to list queues to get the ids of the queues you care about).
If you then 'show <id>' where id is the id shown for the subscription you want it will give you a bit more detail including the session id (this is actually included in the list of subscriptions as well, its the first number in the 'index' column).
Repeat 'show <id>' for the session and then for the connection ref that is shown. The details of the connection includes the IP address.
On trunk the qpid-stat tool now has an option to list subscriptions (-u) and the IP address of the connection is included in the data shown. That gives a simpler way of getting the information in many cases.
Unfortunately on trunk the IDs qpid-tool displays for session refs don't seem to match up with anything else visible so it is virtually impossible to match up subscriptions and sessions using qpid-tool. I've raised a Jira for this so we can get it fixed before the next release: https://issues.apache.org/jira/browse/QPID-2842.
--------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
