You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Adel Boutros <ad...@live.com> on 2016/07/01 13:00:53 UTC

[Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed

Hello,

Using qpid-dispatch 0.6.0, I have noticed that qdmanage's query operation doesn't seem to take the "--name" option if passed. Only the type option is working.
As you can see from the example below, although I search for an absent entity named "localhost.broker.10253.connector", I end up with the list of all connectors.

PS: I tried both "--name=localhost.broker.10253.connector" and "--name localhost.broker.10253.connector"

Example
bash$ qdmanage -b amqp://localhost:10250 query --type=connector --name localhost.broker.10253.connector

[
  {
    "verifyHostName": true,
    "stripAnnotations": "both",
    "addr": "localhost",
    "allowRedirect": true,
    "idleTimeoutSeconds": 16,
    "maxFrameSize": 65536,
    "host": "127.0.0.1",
    "cost": 1,
    "role": "route-container",
    "type": "org.apache.qpid.dispatch.connector",
    "port": "10251",
    "identity": "connector/127.0.0.1:10251:localhost.broker.10251.connector",
    "name": "localhost.broker.10251.connector"
  },
  {
    "verifyHostName": true,
    "stripAnnotations": "both",
    "addr": "localhost",
    "allowRedirect": true,
    "idleTimeoutSeconds": 16,
    "maxFrameSize": 65536,
    "host": "127.0.0.1",
    "cost": 1,
    "role": "route-container",
    "type": "org.apache.qpid.dispatch.connector",
    "port": "10255",
    "identity": "connector/127.0.0.1:10255:test",
    "name": "test"
  }
]

Regards,
Adel
 		 	   		  

Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed

Posted by Ganesh Murthy <gm...@redhat.com>.

----- Original Message -----
> From: "Adel Boutros" <ad...@live.com>
> To: users@qpid.apache.org
> Sent: Friday, July 1, 2016 11:23:29 AM
> Subject: RE: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> 
> I have one more question: What is considered a "Management entity"?
> 
> I have a feeling the "READ" only works with the "connector" type because with
> the other types, I am getting some weird exceptions:
> 
> bash$ qdmanage -b amqp://localhost:10452 read --type=connector
> BadRequestStatus: No name or identity provided
> 
> bash$ qdmanage -b amqp://localhost:10452 read --type=address
> Timeout: Connection amqp://localhost:10452/$management timed out: Waiting for
> response
This timeout error has been fixed on the master branch. Will be available in 0.7.0 release, please see https://issues.apache.org/jira/browse/DISPATCH-370 and https://issues.apache.org/jira/browse/DISPATCH-373
> 
> bash$ qdmanage -b amqp://localhost:10452 read --type=autoLinks
> BadRequestStatus: No such entity type 'org.apache.qpid.dispatch.autoLinks'
> 
It is --type=autoLink not --type=autoLinks. The timeout that you get has been fixed on the master branch.
> Regards,
> Adel
> 
> > From: adelboutros@live.com
> > To: users@qpid.apache.org
> > Subject: RE: [Qpid-Dispatch] qdmanage query doesn't take into account the
> > name option when passed
> > Date: Fri, 1 Jul 2016 16:52:59 +0200
> > 
> > Thank you Ganesh,
> > 
> > Indeed the "read" operation is working with the "--name" option.
> > 
> > Regards,
> > Adel
> > 
> > > Date: Fri, 1 Jul 2016 10:33:05 -0400
> > > From: gmurthy@redhat.com
> > > To: users@qpid.apache.org
> > > Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account the
> > > name option when passed
> > > 
> > > Link to the Management spec draft -
> > > 
> > > https://www.oasis-open.org/committees/download.php/54441/AMQP%20Management%20v1.0%20WD09
> > > 
> > > ----- Original Message -----
> > > > From: "Ganesh Murthy" <gm...@redhat.com>
> > > > To: users@qpid.apache.org
> > > > Sent: Friday, July 1, 2016 10:26:46 AM
> > > > Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account
> > > > the name option when passed
> > > > 
> > > > 
> > > > ----- Original Message -----
> > > > > From: "Adel Boutros" <ad...@live.com>
> > > > > To: users@qpid.apache.org
> > > > > Sent: Friday, July 1, 2016 9:00:53 AM
> > > > > Subject: [Qpid-Dispatch] qdmanage query doesn't take into account the
> > > > > name
> > > > > option when passed
> > > > > 
> > > > > Hello,
> > > > > 
> > > > > Using qpid-dispatch 0.6.0, I have noticed that qdmanage's query
> > > > > operation
> > > > > doesn't seem to take the "--name" option if passed. Only the type
> > > > > option is
> > > > > working.
> > > > > As you can see from the example below, although I search for an
> > > > > absent
> > > > > entity
> > > > > named "localhost.broker.10253.connector", I end up with the list of
> > > > > all
> > > > > connectors.
> > > > > 
> > > > Use the READ operation to look up specific types by name. The READ
> > > > operation
> > > > is used to return a single entity. Try this -
> > > > 
> > > > qdmanage -b amqp://localhost:10250 READ --type=connector
> > > > --name=localhost.broker.10253.connector
> > > > 
> > > > The QUERY operation could potentially return a large number of rows.
> > > > The
> > > > QUERY operation cares only about the type and will ignore name or
> > > > identity
> > > > if provided.
> > > > 
> > > > The documentation in the web site is being improved to reflect this
> > > > information but in the meantime, you can reference the AMQP management
> > > > spec
> > > > (PDF attached). Please keep in mind that the spec is still in draft
> > > > status.
> > > > 
> > > > > PS: I tried both "--name=localhost.broker.10253.connector" and
> > > > > "--name
> > > > > localhost.broker.10253.connector"
> > > > > 
> > > > > Example
> > > > > bash$ qdmanage -b amqp://localhost:10250 query --type=connector
> > > > > --name
> > > > > localhost.broker.10253.connector
> > > > > 
> > > > > [
> > > > >   {
> > > > >     "verifyHostName": true,
> > > > >     "stripAnnotations": "both",
> > > > >     "addr": "localhost",
> > > > >     "allowRedirect": true,
> > > > >     "idleTimeoutSeconds": 16,
> > > > >     "maxFrameSize": 65536,
> > > > >     "host": "127.0.0.1",
> > > > >     "cost": 1,
> > > > >     "role": "route-container",
> > > > >     "type": "org.apache.qpid.dispatch.connector",
> > > > >     "port": "10251",
> > > > >     "identity":
> > > > >     "connector/127.0.0.1:10251:localhost.broker.10251.connector",
> > > > >     "name": "localhost.broker.10251.connector"
> > > > >   },
> > > > >   {
> > > > >     "verifyHostName": true,
> > > > >     "stripAnnotations": "both",
> > > > >     "addr": "localhost",
> > > > >     "allowRedirect": true,
> > > > >     "idleTimeoutSeconds": 16,
> > > > >     "maxFrameSize": 65536,
> > > > >     "host": "127.0.0.1",
> > > > >     "cost": 1,
> > > > >     "role": "route-container",
> > > > >     "type": "org.apache.qpid.dispatch.connector",
> > > > >     "port": "10255",
> > > > >     "identity": "connector/127.0.0.1:10255:test",
> > > > >     "name": "test"
> > > > >   }
> > > > > ]
> > > > > 
> > > > > Regards,
> > > > > Adel
> > > > > 
> > > > 
> > > > 
> > > > 
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > > > For additional commands, e-mail: users-help@qpid.apache.org
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > > For additional commands, e-mail: users-help@qpid.apache.org
> > > 
> >  		 	   		  
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


RE: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed

Posted by Adel Boutros <ad...@live.com>.
PS: If I remove the "s" from  "autoLinks", I get:

bash$ qdmanage -b amqp://localhost:10452 read --type=autoLink
ConnectionException: Connection amqp://localhost:10452/$management disconnected

> From: adelboutros@live.com
> To: users@qpid.apache.org
> Subject: RE: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> Date: Fri, 1 Jul 2016 17:23:29 +0200
> 
> I have one more question: What is considered a "Management entity"?
> 
> I have a feeling the "READ" only works with the "connector" type because with the other types, I am getting some weird exceptions:
> 
> bash$ qdmanage -b amqp://localhost:10452 read --type=connector
> BadRequestStatus: No name or identity provided
> 
> bash$ qdmanage -b amqp://localhost:10452 read --type=address
> Timeout: Connection amqp://localhost:10452/$management timed out: Waiting for response
> 
> bash$ qdmanage -b amqp://localhost:10452 read --type=autoLinks
> BadRequestStatus: No such entity type 'org.apache.qpid.dispatch.autoLinks'
> 
> Regards,
> Adel
> 
> > From: adelboutros@live.com
> > To: users@qpid.apache.org
> > Subject: RE: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> > Date: Fri, 1 Jul 2016 16:52:59 +0200
> > 
> > Thank you Ganesh,
> > 
> > Indeed the "read" operation is working with the "--name" option.
> > 
> > Regards,
> > Adel
> > 
> > > Date: Fri, 1 Jul 2016 10:33:05 -0400
> > > From: gmurthy@redhat.com
> > > To: users@qpid.apache.org
> > > Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> > > 
> > > Link to the Management spec draft - 
> > > 
> > > https://www.oasis-open.org/committees/download.php/54441/AMQP%20Management%20v1.0%20WD09
> > > 
> > > ----- Original Message -----
> > > > From: "Ganesh Murthy" <gm...@redhat.com>
> > > > To: users@qpid.apache.org
> > > > Sent: Friday, July 1, 2016 10:26:46 AM
> > > > Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> > > > 
> > > > 
> > > > ----- Original Message -----
> > > > > From: "Adel Boutros" <ad...@live.com>
> > > > > To: users@qpid.apache.org
> > > > > Sent: Friday, July 1, 2016 9:00:53 AM
> > > > > Subject: [Qpid-Dispatch] qdmanage query doesn't take into account the name
> > > > > option when passed
> > > > > 
> > > > > Hello,
> > > > > 
> > > > > Using qpid-dispatch 0.6.0, I have noticed that qdmanage's query operation
> > > > > doesn't seem to take the "--name" option if passed. Only the type option is
> > > > > working.
> > > > > As you can see from the example below, although I search for an absent
> > > > > entity
> > > > > named "localhost.broker.10253.connector", I end up with the list of all
> > > > > connectors.
> > > > > 
> > > > Use the READ operation to look up specific types by name. The READ operation
> > > > is used to return a single entity. Try this -
> > > > 
> > > > qdmanage -b amqp://localhost:10250 READ --type=connector
> > > > --name=localhost.broker.10253.connector
> > > > 
> > > > The QUERY operation could potentially return a large number of rows. The
> > > > QUERY operation cares only about the type and will ignore name or identity
> > > > if provided.
> > > > 
> > > > The documentation in the web site is being improved to reflect this
> > > > information but in the meantime, you can reference the AMQP management spec
> > > > (PDF attached). Please keep in mind that the spec is still in draft status.
> > > > 
> > > > > PS: I tried both "--name=localhost.broker.10253.connector" and "--name
> > > > > localhost.broker.10253.connector"
> > > > > 
> > > > > Example
> > > > > bash$ qdmanage -b amqp://localhost:10250 query --type=connector --name
> > > > > localhost.broker.10253.connector
> > > > > 
> > > > > [
> > > > >   {
> > > > >     "verifyHostName": true,
> > > > >     "stripAnnotations": "both",
> > > > >     "addr": "localhost",
> > > > >     "allowRedirect": true,
> > > > >     "idleTimeoutSeconds": 16,
> > > > >     "maxFrameSize": 65536,
> > > > >     "host": "127.0.0.1",
> > > > >     "cost": 1,
> > > > >     "role": "route-container",
> > > > >     "type": "org.apache.qpid.dispatch.connector",
> > > > >     "port": "10251",
> > > > >     "identity":
> > > > >     "connector/127.0.0.1:10251:localhost.broker.10251.connector",
> > > > >     "name": "localhost.broker.10251.connector"
> > > > >   },
> > > > >   {
> > > > >     "verifyHostName": true,
> > > > >     "stripAnnotations": "both",
> > > > >     "addr": "localhost",
> > > > >     "allowRedirect": true,
> > > > >     "idleTimeoutSeconds": 16,
> > > > >     "maxFrameSize": 65536,
> > > > >     "host": "127.0.0.1",
> > > > >     "cost": 1,
> > > > >     "role": "route-container",
> > > > >     "type": "org.apache.qpid.dispatch.connector",
> > > > >     "port": "10255",
> > > > >     "identity": "connector/127.0.0.1:10255:test",
> > > > >     "name": "test"
> > > > >   }
> > > > > ]
> > > > > 
> > > > > Regards,
> > > > > Adel
> > > > > 
> > > > 
> > > > 
> > > > 
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > > > For additional commands, e-mail: users-help@qpid.apache.org
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > > For additional commands, e-mail: users-help@qpid.apache.org
> > > 
> >  		 	   		  
>  		 	   		  
 		 	   		  

RE: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed

Posted by Adel Boutros <ad...@live.com>.
Thank you Jirik and Ganesh,

I will use a workaround from my side while waiting for the official release of 0.7.0 and fixes of the jira issues mentioned.

Regards,
Adel

> From: jdanek@redhat.com
> Date: Fri, 1 Jul 2016 17:35:31 +0200
> Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> To: users@qpid.apache.org
> 
> Hello Adel,
> 
> On Fri, Jul 1, 2016 at 5:23 PM, Adel Boutros <ad...@live.com> wrote:
> 
> > I have one more question: What is considered a "Management entity"?
> >
> > I have a feeling the "READ" only works with the "connector" type because
> > with the other types, I am getting some weird exceptions:
> >
> > bash$ qdmanage -b amqp://localhost:10452 read --type=connector
> > BadRequestStatus: No name or identity provided
> >
> 
> This is as it should be. Read takes either --name or --identity. Query
> takes --type.
> 
> 
> > bash$ qdmanage -b amqp://localhost:10452 read --type=address
> > Timeout: Connection amqp://localhost:10452/$management timed out: Waiting
> > for response
> >
> 
> This is a bug, I encountered it too. It is fixed in the current git tip.
> 
> 
> > bash$ qdmanage -b amqp://localhost:10452 read --type=autoLinks
> > BadRequestStatus: No such entity type 'org.apache.qpid.dispatch.autoLinks'
> >
> 
> First, you are not supposed to use --type with read, second, the type is
> autoLink, not autoLinks. When you use version with the Timeout bug fixed,
> you would see "BadRequestStatus: No name or identity provided". Use
> `qdmanage query`.
> 
> In case you missed it, I reported some issues about qdmanage
>  * https://issues.apache.org/jira/browse/DISPATCH-411
>  * https://issues.apache.org/jira/browse/DISPATCH-408
>  * https://issues.apache.org/jira/browse/DISPATCH-409
> 
> you may encounter those too.
 		 	   		  

Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed

Posted by Jiri Danek <jd...@redhat.com>.
Hello Adel,

On Fri, Jul 1, 2016 at 5:23 PM, Adel Boutros <ad...@live.com> wrote:

> I have one more question: What is considered a "Management entity"?
>
> I have a feeling the "READ" only works with the "connector" type because
> with the other types, I am getting some weird exceptions:
>
> bash$ qdmanage -b amqp://localhost:10452 read --type=connector
> BadRequestStatus: No name or identity provided
>

This is as it should be. Read takes either --name or --identity. Query
takes --type.


> bash$ qdmanage -b amqp://localhost:10452 read --type=address
> Timeout: Connection amqp://localhost:10452/$management timed out: Waiting
> for response
>

This is a bug, I encountered it too. It is fixed in the current git tip.


> bash$ qdmanage -b amqp://localhost:10452 read --type=autoLinks
> BadRequestStatus: No such entity type 'org.apache.qpid.dispatch.autoLinks'
>

First, you are not supposed to use --type with read, second, the type is
autoLink, not autoLinks. When you use version with the Timeout bug fixed,
you would see "BadRequestStatus: No name or identity provided". Use
`qdmanage query`.

In case you missed it, I reported some issues about qdmanage
 * https://issues.apache.org/jira/browse/DISPATCH-411
 * https://issues.apache.org/jira/browse/DISPATCH-408
 * https://issues.apache.org/jira/browse/DISPATCH-409

you may encounter those too.

RE: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed

Posted by Adel Boutros <ad...@live.com>.
I have one more question: What is considered a "Management entity"?

I have a feeling the "READ" only works with the "connector" type because with the other types, I am getting some weird exceptions:

bash$ qdmanage -b amqp://localhost:10452 read --type=connector
BadRequestStatus: No name or identity provided

bash$ qdmanage -b amqp://localhost:10452 read --type=address
Timeout: Connection amqp://localhost:10452/$management timed out: Waiting for response

bash$ qdmanage -b amqp://localhost:10452 read --type=autoLinks
BadRequestStatus: No such entity type 'org.apache.qpid.dispatch.autoLinks'

Regards,
Adel

> From: adelboutros@live.com
> To: users@qpid.apache.org
> Subject: RE: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> Date: Fri, 1 Jul 2016 16:52:59 +0200
> 
> Thank you Ganesh,
> 
> Indeed the "read" operation is working with the "--name" option.
> 
> Regards,
> Adel
> 
> > Date: Fri, 1 Jul 2016 10:33:05 -0400
> > From: gmurthy@redhat.com
> > To: users@qpid.apache.org
> > Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> > 
> > Link to the Management spec draft - 
> > 
> > https://www.oasis-open.org/committees/download.php/54441/AMQP%20Management%20v1.0%20WD09
> > 
> > ----- Original Message -----
> > > From: "Ganesh Murthy" <gm...@redhat.com>
> > > To: users@qpid.apache.org
> > > Sent: Friday, July 1, 2016 10:26:46 AM
> > > Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> > > 
> > > 
> > > ----- Original Message -----
> > > > From: "Adel Boutros" <ad...@live.com>
> > > > To: users@qpid.apache.org
> > > > Sent: Friday, July 1, 2016 9:00:53 AM
> > > > Subject: [Qpid-Dispatch] qdmanage query doesn't take into account the name
> > > > option when passed
> > > > 
> > > > Hello,
> > > > 
> > > > Using qpid-dispatch 0.6.0, I have noticed that qdmanage's query operation
> > > > doesn't seem to take the "--name" option if passed. Only the type option is
> > > > working.
> > > > As you can see from the example below, although I search for an absent
> > > > entity
> > > > named "localhost.broker.10253.connector", I end up with the list of all
> > > > connectors.
> > > > 
> > > Use the READ operation to look up specific types by name. The READ operation
> > > is used to return a single entity. Try this -
> > > 
> > > qdmanage -b amqp://localhost:10250 READ --type=connector
> > > --name=localhost.broker.10253.connector
> > > 
> > > The QUERY operation could potentially return a large number of rows. The
> > > QUERY operation cares only about the type and will ignore name or identity
> > > if provided.
> > > 
> > > The documentation in the web site is being improved to reflect this
> > > information but in the meantime, you can reference the AMQP management spec
> > > (PDF attached). Please keep in mind that the spec is still in draft status.
> > > 
> > > > PS: I tried both "--name=localhost.broker.10253.connector" and "--name
> > > > localhost.broker.10253.connector"
> > > > 
> > > > Example
> > > > bash$ qdmanage -b amqp://localhost:10250 query --type=connector --name
> > > > localhost.broker.10253.connector
> > > > 
> > > > [
> > > >   {
> > > >     "verifyHostName": true,
> > > >     "stripAnnotations": "both",
> > > >     "addr": "localhost",
> > > >     "allowRedirect": true,
> > > >     "idleTimeoutSeconds": 16,
> > > >     "maxFrameSize": 65536,
> > > >     "host": "127.0.0.1",
> > > >     "cost": 1,
> > > >     "role": "route-container",
> > > >     "type": "org.apache.qpid.dispatch.connector",
> > > >     "port": "10251",
> > > >     "identity":
> > > >     "connector/127.0.0.1:10251:localhost.broker.10251.connector",
> > > >     "name": "localhost.broker.10251.connector"
> > > >   },
> > > >   {
> > > >     "verifyHostName": true,
> > > >     "stripAnnotations": "both",
> > > >     "addr": "localhost",
> > > >     "allowRedirect": true,
> > > >     "idleTimeoutSeconds": 16,
> > > >     "maxFrameSize": 65536,
> > > >     "host": "127.0.0.1",
> > > >     "cost": 1,
> > > >     "role": "route-container",
> > > >     "type": "org.apache.qpid.dispatch.connector",
> > > >     "port": "10255",
> > > >     "identity": "connector/127.0.0.1:10255:test",
> > > >     "name": "test"
> > > >   }
> > > > ]
> > > > 
> > > > Regards,
> > > > Adel
> > > > 
> > > 
> > > 
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > > For additional commands, e-mail: users-help@qpid.apache.org
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: users-help@qpid.apache.org
> > 
>  		 	   		  
 		 	   		  

RE: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed

Posted by Adel Boutros <ad...@live.com>.
Thank you Ganesh,

Indeed the "read" operation is working with the "--name" option.

Regards,
Adel

> Date: Fri, 1 Jul 2016 10:33:05 -0400
> From: gmurthy@redhat.com
> To: users@qpid.apache.org
> Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> 
> Link to the Management spec draft - 
> 
> https://www.oasis-open.org/committees/download.php/54441/AMQP%20Management%20v1.0%20WD09
> 
> ----- Original Message -----
> > From: "Ganesh Murthy" <gm...@redhat.com>
> > To: users@qpid.apache.org
> > Sent: Friday, July 1, 2016 10:26:46 AM
> > Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> > 
> > 
> > ----- Original Message -----
> > > From: "Adel Boutros" <ad...@live.com>
> > > To: users@qpid.apache.org
> > > Sent: Friday, July 1, 2016 9:00:53 AM
> > > Subject: [Qpid-Dispatch] qdmanage query doesn't take into account the name
> > > option when passed
> > > 
> > > Hello,
> > > 
> > > Using qpid-dispatch 0.6.0, I have noticed that qdmanage's query operation
> > > doesn't seem to take the "--name" option if passed. Only the type option is
> > > working.
> > > As you can see from the example below, although I search for an absent
> > > entity
> > > named "localhost.broker.10253.connector", I end up with the list of all
> > > connectors.
> > > 
> > Use the READ operation to look up specific types by name. The READ operation
> > is used to return a single entity. Try this -
> > 
> > qdmanage -b amqp://localhost:10250 READ --type=connector
> > --name=localhost.broker.10253.connector
> > 
> > The QUERY operation could potentially return a large number of rows. The
> > QUERY operation cares only about the type and will ignore name or identity
> > if provided.
> > 
> > The documentation in the web site is being improved to reflect this
> > information but in the meantime, you can reference the AMQP management spec
> > (PDF attached). Please keep in mind that the spec is still in draft status.
> > 
> > > PS: I tried both "--name=localhost.broker.10253.connector" and "--name
> > > localhost.broker.10253.connector"
> > > 
> > > Example
> > > bash$ qdmanage -b amqp://localhost:10250 query --type=connector --name
> > > localhost.broker.10253.connector
> > > 
> > > [
> > >   {
> > >     "verifyHostName": true,
> > >     "stripAnnotations": "both",
> > >     "addr": "localhost",
> > >     "allowRedirect": true,
> > >     "idleTimeoutSeconds": 16,
> > >     "maxFrameSize": 65536,
> > >     "host": "127.0.0.1",
> > >     "cost": 1,
> > >     "role": "route-container",
> > >     "type": "org.apache.qpid.dispatch.connector",
> > >     "port": "10251",
> > >     "identity":
> > >     "connector/127.0.0.1:10251:localhost.broker.10251.connector",
> > >     "name": "localhost.broker.10251.connector"
> > >   },
> > >   {
> > >     "verifyHostName": true,
> > >     "stripAnnotations": "both",
> > >     "addr": "localhost",
> > >     "allowRedirect": true,
> > >     "idleTimeoutSeconds": 16,
> > >     "maxFrameSize": 65536,
> > >     "host": "127.0.0.1",
> > >     "cost": 1,
> > >     "role": "route-container",
> > >     "type": "org.apache.qpid.dispatch.connector",
> > >     "port": "10255",
> > >     "identity": "connector/127.0.0.1:10255:test",
> > >     "name": "test"
> > >   }
> > > ]
> > > 
> > > Regards,
> > > Adel
> > > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: users-help@qpid.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 
 		 	   		  

Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed

Posted by Ganesh Murthy <gm...@redhat.com>.
Link to the Management spec draft - 

https://www.oasis-open.org/committees/download.php/54441/AMQP%20Management%20v1.0%20WD09

----- Original Message -----
> From: "Ganesh Murthy" <gm...@redhat.com>
> To: users@qpid.apache.org
> Sent: Friday, July 1, 2016 10:26:46 AM
> Subject: Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> 
> 
> ----- Original Message -----
> > From: "Adel Boutros" <ad...@live.com>
> > To: users@qpid.apache.org
> > Sent: Friday, July 1, 2016 9:00:53 AM
> > Subject: [Qpid-Dispatch] qdmanage query doesn't take into account the name
> > option when passed
> > 
> > Hello,
> > 
> > Using qpid-dispatch 0.6.0, I have noticed that qdmanage's query operation
> > doesn't seem to take the "--name" option if passed. Only the type option is
> > working.
> > As you can see from the example below, although I search for an absent
> > entity
> > named "localhost.broker.10253.connector", I end up with the list of all
> > connectors.
> > 
> Use the READ operation to look up specific types by name. The READ operation
> is used to return a single entity. Try this -
> 
> qdmanage -b amqp://localhost:10250 READ --type=connector
> --name=localhost.broker.10253.connector
> 
> The QUERY operation could potentially return a large number of rows. The
> QUERY operation cares only about the type and will ignore name or identity
> if provided.
> 
> The documentation in the web site is being improved to reflect this
> information but in the meantime, you can reference the AMQP management spec
> (PDF attached). Please keep in mind that the spec is still in draft status.
> 
> > PS: I tried both "--name=localhost.broker.10253.connector" and "--name
> > localhost.broker.10253.connector"
> > 
> > Example
> > bash$ qdmanage -b amqp://localhost:10250 query --type=connector --name
> > localhost.broker.10253.connector
> > 
> > [
> >   {
> >     "verifyHostName": true,
> >     "stripAnnotations": "both",
> >     "addr": "localhost",
> >     "allowRedirect": true,
> >     "idleTimeoutSeconds": 16,
> >     "maxFrameSize": 65536,
> >     "host": "127.0.0.1",
> >     "cost": 1,
> >     "role": "route-container",
> >     "type": "org.apache.qpid.dispatch.connector",
> >     "port": "10251",
> >     "identity":
> >     "connector/127.0.0.1:10251:localhost.broker.10251.connector",
> >     "name": "localhost.broker.10251.connector"
> >   },
> >   {
> >     "verifyHostName": true,
> >     "stripAnnotations": "both",
> >     "addr": "localhost",
> >     "allowRedirect": true,
> >     "idleTimeoutSeconds": 16,
> >     "maxFrameSize": 65536,
> >     "host": "127.0.0.1",
> >     "cost": 1,
> >     "role": "route-container",
> >     "type": "org.apache.qpid.dispatch.connector",
> >     "port": "10255",
> >     "identity": "connector/127.0.0.1:10255:test",
> >     "name": "test"
> >   }
> > ]
> > 
> > Regards,
> > Adel
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed

Posted by Ganesh Murthy <gm...@redhat.com>.
----- Original Message -----
> From: "Adel Boutros" <ad...@live.com>
> To: users@qpid.apache.org
> Sent: Friday, July 1, 2016 9:00:53 AM
> Subject: [Qpid-Dispatch] qdmanage query doesn't take into account the name option when passed
> 
> Hello,
> 
> Using qpid-dispatch 0.6.0, I have noticed that qdmanage's query operation
> doesn't seem to take the "--name" option if passed. Only the type option is
> working.
> As you can see from the example below, although I search for an absent entity
> named "localhost.broker.10253.connector", I end up with the list of all
> connectors.
> 
Use the READ operation to look up specific types by name. The READ operation is used to return a single entity. Try this - 

qdmanage -b amqp://localhost:10250 READ --type=connector --name=localhost.broker.10253.connector

The QUERY operation could potentially return a large number of rows. The QUERY operation cares only about the type and will ignore name or identity if provided.

The documentation in the web site is being improved to reflect this information but in the meantime, you can reference the AMQP management spec (PDF attached). Please keep in mind that the spec is still in draft status.

> PS: I tried both "--name=localhost.broker.10253.connector" and "--name
> localhost.broker.10253.connector"
> 
> Example
> bash$ qdmanage -b amqp://localhost:10250 query --type=connector --name
> localhost.broker.10253.connector
> 
> [
>   {
>     "verifyHostName": true,
>     "stripAnnotations": "both",
>     "addr": "localhost",
>     "allowRedirect": true,
>     "idleTimeoutSeconds": 16,
>     "maxFrameSize": 65536,
>     "host": "127.0.0.1",
>     "cost": 1,
>     "role": "route-container",
>     "type": "org.apache.qpid.dispatch.connector",
>     "port": "10251",
>     "identity": "connector/127.0.0.1:10251:localhost.broker.10251.connector",
>     "name": "localhost.broker.10251.connector"
>   },
>   {
>     "verifyHostName": true,
>     "stripAnnotations": "both",
>     "addr": "localhost",
>     "allowRedirect": true,
>     "idleTimeoutSeconds": 16,
>     "maxFrameSize": 65536,
>     "host": "127.0.0.1",
>     "cost": 1,
>     "role": "route-container",
>     "type": "org.apache.qpid.dispatch.connector",
>     "port": "10255",
>     "identity": "connector/127.0.0.1:10255:test",
>     "name": "test"
>   }
> ]
> 
> Regards,
> Adel
>