summaryrefslogtreecommitdiff
path: root/qpid/tools/src
Commit message (Collapse)AuthorAgeFilesLines
...
* A new command-line tool, similar to qpid-tool but with the following ↵Ted Ross2011-01-101-0/+830
| | | | | | | | | | | differences: 1) Operation is active and synchronous, rather than passive and async. 2) Operations are per-agent (i.e. work with one agent at a time). 3) Uses the new QMFv2 API (Python wrapper around C++ core). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1057208 13f79535-47bb-0310-9956-ffa450edef68
* Prints connection error information.Jonathan Robie2011-01-101-0/+4
| | | | | | | Previously, connection errors were silently ignored. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1057195 13f79535-47bb-0310-9956-ffa450edef68
* qpid-tool throws Charles E. Rolke2011-01-061-0/+3
| | | | | | | | | | | TypeError(unsupported operand types for /: 'NoneType' and 'int',") when it shows a session.expireTime object with a missing value. Some values are optional and are normally missing. This patch prevents the exception and displays 'absent'. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1056076 13f79535-47bb-0310-9956-ffa450edef68
* Undo svn commit r1052086.Jonathan Robie2011-01-054-33/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1055655 13f79535-47bb-0310-9956-ffa450edef68
* Fixes typo in findById function declaration.Jonathan Robie2011-01-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1055632 13f79535-47bb-0310-9956-ffa450edef68
* Allow any SASL mechanism to be specified in command line options.Jonathan Robie2011-01-055-5/+6
| | | | | | | Previously used a fixed list of SASL mechanisms. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1055267 13f79535-47bb-0310-9956-ffa450edef68
* Added logging to QMF console connections.Jonathan Robie2010-12-224-8/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Warning if a broker can not be found, error if SASL authentication fails or other connection errors when connecting to an existing broker. Default log level is ERROR. qpid-printevents allows the log level to be set. It also allows the user to specify that a connection is required, in which case it terminates if a connection can not be established. Examples: $ ./qpid-printevents --sasl-mechanism PLAIN nonexistent-broker => Not an error. Waits for the broker to be started. $ ./qpid-printevents --sasl-mechanism PLAIN localhost 2010-12-22 17:07:18,365 ERROR Could not connect to broker localhost:5672 (None, 'No acceptable SASL authentication mechanism available') => Connection error condition in output - SASL authentication failed because user name and password are not supplied. But qpid-printevents keeps running, waiting for you to start the broker. $ ./qpid-printevents --sasl-mechanism PLAIN --log-level critical => Connection error condition in output - SASL authentication failed because user name and password are not supplied. No output in this case, because the log level has been set to critical. $ ./qpid-printevents --sasl-mechanism PLAIN --require-connection localhost 2010-12-22 17:11:03,791 ERROR Could not connect to broker localhost:5672 (None, 'No acceptable SASL authentication mechanism available') Failed: ConnectionFailed - (None, 'No acceptable SASL authentication mechanism available') => Connection error condition. qpid-printevents terminates because --require-connection was specified. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1052086 13f79535-47bb-0310-9956-ffa450edef68
* Allow command line utilities to require a given SASL mechanism.Jonathan Robie2010-12-215-91/+105
| | | | | | | | | | Useful if the client's most secure mechanism is suspect, e.g. if Kerberos configuration problems may exist. Also useful in a variety of test scenarios. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1051700 13f79535-47bb-0310-9956-ffa450edef68
* Made qpid-xxx management scripts callable as python functions.Jonathan Robie2010-12-176-606/+676
| | | | | | | | | | | | | | | | | | | | | Examples (from cli_tests.py): def qpid_config_api(self, arg = ""): script = import_script(checkenv("QPID_CONFIG_EXEC")) broker = ["-a", "localhost:"+str(self.broker.port)] return script.main(broker + arg.split()) def qpid_route_api(self, arg = ""): script = import_script(checkenv("QPID_ROUTE_EXEC")) return script.main(arg.split()) Useful primarily for qpid-config, qpid-route, and qpid-cluster. Probably not useful for qpid-stat, qpid-printevents, qpid-queue-stats, which just create screen output. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1050425 13f79535-47bb-0310-9956-ffa450edef68
* Modified qpid-cluster to support the way it is called from Jonathan Robie2010-12-101-4/+4
| | | | | | | | | | | | cluster_tests.StoreTests.test_persistent_partial_failure. Corrected test_persistent_partial_failure so that it no longer sends the name of the script as the first parameter - optparse expects this for arguments from sys.argv, but not for other argument lists. Fixed bug assigning host name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1044468 13f79535-47bb-0310-9956-ffa450edef68
* Corrected datatypes of numeric defaults for optparse.Jonathan Robie2010-12-084-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1043599 13f79535-47bb-0310-9956-ffa450edef68
* Fix qpid-tool to not attempt to display parially-learned schemata.Ted Ross2010-12-081-7/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1043575 13f79535-47bb-0310-9956-ffa450edef68
* Print usage rather than help if user gets usage wrong.Jonathan Robie2010-12-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1042733 13f79535-47bb-0310-9956-ffa450edef68
* Restored Usage() function (lost in version skew shuffle)Jonathan Robie2010-12-061-9/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1042710 13f79535-47bb-0310-9956-ffa450edef68
* Fixes problem with unbound _args variable in bind.Jonathan Robie2010-12-061-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1042655 13f79535-47bb-0310-9956-ffa450edef68
* Converted tools to use optparse. Jonathan Robie2010-12-055-438/+380
| | | | | | | | | | Now all tools in this directory use optparse for their command lines, rather than a variety of different approaches. Simplifies option handling significantly. Doesn't simplify arguments list in qpid-route and qpid-config. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1042398 13f79535-47bb-0310-9956-ffa450edef68
* Add ASF licence to the git ignore filesRobert Gemmell2010-10-281-0/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1028476 13f79535-47bb-0310-9956-ffa450edef68
* SASLizing Interbroker LinksMichael Goulish2010-10-201-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------- 1. Brokers already knew how to handle the server side of SASLized links, but not the client side. So we promoted the client-side SASL code from the client library to the common library so that the broker could also use it. This affected SaslFactory.{h,cpp} and Sasl.h TODO -- can the server-side and client-side code be unified here? 2. Some of the SASL verbs in broker/ConnectionHandler.cpp are expanded: start, secure, tune. 3. broker/SecureConnection is altered to get the client-broker and the server-broker to agree on when the security layer should be inserted. 4. the python tool qpid-route is modified so that, in the "route add" command, you can specify the security mechanism for SASL to use. TODO -- should we also pass in {min,max}SSF ? 5. Changes in broker/LinkRegistry to allow the information input by qpid-route to be passed up to where it is needed. 6. A bash script test run by "make check" that creates a SASLized federation link and sends some messages down it. TODO - write a python unit test instead of a bash script. I think I uncovered a bug in the python code when I tried. 7. NOTE - testing for this feature does not work with versions of SASL earlier than 2.1.22, becuase I can't tell SASL to use a SASL database file in a nonstandard location. The test is disabled for earlier versions. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1024541 13f79535-47bb-0310-9956-ffa450edef68
* Fixed qpid-stat to skip rows when the underlying data disappears during ↵Ted Ross2010-09-221-14/+17
| | | | | | | | | execution. Removed keyword arg from "sort" to support Python 2.3. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@999918 13f79535-47bb-0310-9956-ffa450edef68
* Fix qpid-cluster-store tool for recent changes to UUID (see r995770)Gordon Sim2010-09-221-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@999841 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2842 - Fixed regression introduced in r992039.Ted Ross2010-09-171-0/+2
| | | | | | | Display correct object index in cases where a V2 agent supplied its own object name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@998116 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2842 - Fixed inconsistent display of object ids in qpid-tool.Ted Ross2010-09-021-3/+61
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@992039 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2810: clean up the broker thread properly on shutdown.Kenneth Anthony Giusti2010-08-196-32/+75
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@987330 13f79535-47bb-0310-9956-ffa450edef68
* Return rather than exiting once route is deletedGordon Sim2010-08-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@981643 13f79535-47bb-0310-9956-ffa450edef68
* Added --cluster option to display per-broker detail for clusters.Kenneth Anthony Giusti2010-07-301-3/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@980766 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2762: display all class keys that match a given input tokens, not just ↵Kenneth Anthony Giusti2010-07-271-15/+17
| | | | | | the first match. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@979712 13f79535-47bb-0310-9956-ffa450edef68
* bugfix: convert v1 oid's when calling v2 agentKenneth Anthony Giusti2010-07-091-2/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@962526 13f79535-47bb-0310-9956-ffa450edef68
* Defer delivery of messages in cluster-unsafe context.Alan Conway2010-07-051-1/+3
| | | | | | | | | | | | | | | Messages enqueued in a cluster-safe context are synchronized across the cluster. However some messages are delivered in a cluster-unsafe context, for example raising a link established event occurs the connection thread of the establishing connection. This fix deferrs such messages by multicasting them so they can be re-delived in a cluster safe context. See https://bugzilla.redhat.com/show_bug.cgi?id=611543 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@960681 13f79535-47bb-0310-9956-ffa450edef68
* Fix to bug introduced in r959353 causing error when qpid-stat is run against ↵Gordon Sim2010-06-301-1/+2
| | | | | | standalone broker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@959439 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that any additional brokers in the cluster being monitored are ↵Gordon Sim2010-06-301-0/+1
| | | | | | cleaned up correctly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@959353 13f79535-47bb-0310-9956-ffa450edef68
* Changed README to README.txt throughout the project for consistency. Removed ↵Jonathan Robie2010-06-231-0/+0
| | | | | | gentools/README.txt, which described Velocity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@957201 13f79535-47bb-0310-9956-ffa450edef68
* Tell people how to set up their paths for QMF.Jonathan Robie2010-06-211-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@956606 13f79535-47bb-0310-9956-ffa450edef68
* handle SystemExit exception on python 2.4.3Nuno Santos2010-05-251-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@948164 13f79535-47bb-0310-9956-ffa450edef68
* Make behavior of command line tools consistent, regarding -h and --help ↵Nuno Santos2010-05-245-22/+62
| | | | | | options, as well as giving an appropriate error message for any invalid options passed on the command line git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@947858 13f79535-47bb-0310-9956-ffa450edef68
* qpid-tool re-write:Ted Ross2010-05-191-80/+519
| | | | | | | | 1) No longer uses the (really) old API 2) Handles the new QMFv2 functionality git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@946178 13f79535-47bb-0310-9956-ffa450edef68
* handle timeouts caused by long-executing commands, iterate until timeout clearsNuno Santos2010-05-031-4/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@940631 13f79535-47bb-0310-9956-ffa450edef68
* Cluster management improvements:Ted Ross2010-04-231-14/+15
| | | | | | | | | | | 1) Enable all management methods via QMFv2 for clusters 2) Disable all management methods via QMFv1 for clusters 3) The broker-resident management agent can handle both v1 and v2 method calls 4) qmf.console (Python) now works with new and old brokers by detecting whether the broker can handle v2 commands git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@937472 13f79535-47bb-0310-9956-ffa450edef68
* Ignore compiled python file qpid-clusterc.Alan Conway2010-04-121-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@933260 13f79535-47bb-0310-9956-ffa450edef68
* Fixed qpid-stat failure in cluster caseTed Ross2010-04-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@931534 13f79535-47bb-0310-9956-ffa450edef68
* Remove non-portable @staticmethod from qpid/datatypes.pyAlan Conway2010-04-061-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@931262 13f79535-47bb-0310-9956-ffa450edef68
* Added qpid-cluster-store tool to examine & modify cluster store status.Alan Conway2010-04-061-0/+73
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@931185 13f79535-47bb-0310-9956-ffa450edef68
* Merged the changes from the qmf-devel0.7a branch back to the trunk.Ted Ross2010-03-313-3/+3
| | | | | | | | | | | | | | | | | This is a checkpoint along the QMFv2 development path. This update introduces portions of QMFv2 into the code: - The C++ agent (qpid/agent) uses QMFv2 for data and method transfer o The APIs no longer use qpid::framing::* o Consequently, boost is no longer referenced from the API headers. o Agents and Objects are now referenced by strings, not numbers. o Schema transfer still uses the QMFv1 format. - The broker-resident agent can use QMFv1 or QMFv2 based on the command line options. It defaults to QMFv1 for compatibility. - The pure-python QMF console (qmf.console) can concurrently interact with both QMFv1 and QMFv2 agents. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@929716 13f79535-47bb-0310-9956-ffa450edef68
* Extended cluster_tests.test_management exposes a bug.Alan Conway2010-03-031-0/+1
| | | | | | | | | - kill and start brokers with clients running. - added qpid-stat -b and testagent clients - disabled in src/tests/cluster_tests.fail till bug is fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@918674 13f79535-47bb-0310-9956-ffa450edef68
* Add support for displaying subscriptions, with connection and queue infoNuno Santos2010-03-011-2/+53
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@917718 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2409 - "qpid-route route map" can list the same broker multiple timesTed Ross2010-02-181-1/+1
| | | | | | | Applied patch from John Dunning git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@911558 13f79535-47bb-0310-9956-ffa450edef68
* moved qpid-* tools out of qpid/python into qpid/tools; moved qmf library ↵Rafael H. Schloming2010-02-147-0/+2299
into extras/qmf git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@910016 13f79535-47bb-0310-9956-ffa450edef68