GS.Chandra N wrote:
Hi,
I'm trying to list stats or details of a particular element, using
qpid-tool, as shown in the C++ broker management tool page.
But something does not seem to work. Could someone tell me what i'm doing
wrong here?
Thanks
gs
qpid: list exchange
Objects of type org.apache.qpid.broker:exchange
ID Created Destroyed Index
===============================================
104 23:40:16 - 103.
105 23:40:16 - 103.qpid.management
106 23:40:16 - 103.amq.direct
107 23:40:16 - 103.amq.topic
108 23:40:16 - 103.amq.fanout
109 23:40:16 - 103.amq.match
110 23:40:30 - 103.TICKER_EXCHANGE
qpid: list 110
Object type 110 not known
qpid: list 103
Object type 103 not known
qpid: list 103.TICKER_EXCHANGE
Traceback (most recent call last):
File "/usr/local/bin/qpid-tool", line 192, in <module>
cli.cmdloop ()
File "/usr/lib/python2.5/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python2.5/cmd.py", line 219, in onecmd
return func(arg)
File "/usr/local/bin/qpid-tool", line 117, in do_list
self.dataObject.do_list (data)
File "/usr/lib/python2.5/site-packages/qpid/managementdata.py", line 718,
in do_list
self.listObjects (tokens)
File "/usr/lib/python2.5/site-packages/qpid/managementdata.py", line 453,
in listObjects
classKey = self.getClassKey (tokens[0])
File "/usr/lib/python2.5/site-packages/qpid/managementdata.py", line 289,
in getClassKey
schemaRev = int(className[delim + 1:])
ValueError: invalid literal for int() with base 10: 'TICKER_EXCHANGE'
[...@gs python]$
Hi,
The "list" command simply enumerates objects of a particular type. Use
the "show" command to get the details of one or more objects. The
"help" command shows all of the options.
qpid: show 110
Object of type org.apache.qpid.broker:exchange: (last sample time: 19:05:11)
Type Element 110
==========================================
property vhostRef 103
property name amq.direct
property type direct
property durable True
property arguments {}
statistic producerCount 0
statistic producerCountHigh 0
statistic producerCountLow 0
statistic bindingCount 2
statistic bindingCountHigh 2
statistic bindingCountLow 1
statistic msgReceives 404
statistic msgDrops 0
statistic msgRoutes 404
statistic byteReceives 147684
statistic byteDrops 0
statistic byteRoutes 147684
qpid: help
Management Tool for QPID
Commands:
list - Print summary of existing objects
by class
list <className> - Print list of objects of the
specified class
list <className> active - Print list of non-deleted objects
of the specified class
show <className> - Print contents of all objects of
specified class
show <className> active - Print contents of all non-deleted
objects of specified class
show <list-of-IDs> - Print contents of one or more
objects (infer className)
show <className> <list-of-IDs> - Print contents of one or more objects
list is space-separated, ranges may be specified (i.e. 1004-1010)
call <ID> <methodName> [<args>] - Invoke a method on an object
schema - Print summary of object classes
seen on the target
schema <className> - Print details of an object class
set time-format short - Select short timestamp format
(default)
set time-format long - Select long timestamp format
id [<ID>] - Display translations of display
object ids
quit or ^D - Exit the program
The exception that was thrown is a bug that should be fixed. I'll look
at it.
-Ted
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]