blob: a670f0029e25b4133fa001957cc8417026a938cd [file] [log] [blame]
<div class="sect1">
<h2 id="_synopsis">SYNOPSIS</h2>
<div class="sectionbody">
<div class="paragraph"><p><strong>qdmanage</strong> [<em>OPTIONS</em>] <em>OPERATION</em> [<em>ARGUMENTS</em>]</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_description">DESCRIPTION</h2>
<div class="sectionbody">
<div class="paragraph"><p>An AMQP management client for use with the Dispatch router daemon
(<em>qdrouterd</em>). Sends AMQP management operations requests and prints
the response in JSON format. This is a generic AMQP management tool
and can be used with any standard AMQP managed endpoint, not just
with <em>qdrouterd</em>.</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_options">OPTIONS</h2>
<div class="sectionbody">
<div class="paragraph"><p>-h, --help
: show this help message and exit</p></div>
<div class="paragraph"><p>--version
: show program&#8217;s version number and exit</p></div>
<div class="paragraph"><p>-v, --verbose
: Show maximum detail</p></div>
<div class="paragraph"><p>-r ROUTER-ID, --router ROUTER-ID
: Router to be queried</p></div>
<div class="paragraph"><p>-d EDGE-ROUTER-ID, --edge-router EDGE-ROUTER-ID
: Edge Router to be queried</p></div>
<div class="paragraph"><p>--type TYPE
: Type of entity to operate on.</p></div>
<div class="paragraph"><p>--name NAME
: Name of entity to operate on.</p></div>
<div class="paragraph"><p>--identity ID
: Identity of entity to operate on.</p></div>
<div class="paragraph"><p>--indent INDENT
: Pretty-printing indent. -1 means don&#8217;t pretty-print</p></div>
<div class="paragraph"><p>--stdin
: Read attributes as JSON map or list of maps from</p></div>
<div class="paragraph"><p>--body BODY
: JSON value to use as body of a non-standard operation</p></div>
<div class="paragraph"><p>--properties PROPERTIES
: JSON map to use as properties for a non-standard operation call.</p></div>
<div class="paragraph"><p>-b URL, --bus URL
: URL of the messaging bus to connect to default 0.0.0.0</p></div>
<div class="paragraph"><p>-t SECS, --timeout SECS
: Maximum time to wait for connection in seconds default 5</p></div>
<div class="paragraph"><p>--ssl-certificate CERT
: Client SSL certificate (PEM Format)</p></div>
<div class="paragraph"><p>--ssl-key KEY
: Client SSL private key (PEM Format)</p></div>
<div class="paragraph"><p>--ssl-trustfile TRUSTED-CA-DB
: Trusted Certificate Authority Database file (PEM Format)</p></div>
<div class="paragraph"><p>--ssl-password PASSWORD
: Certificate password, will be prompted if not specifed.</p></div>
<div class="paragraph"><p>--ssl-password-file SSL-PASSWORD-FILE
: Certificate password, will be prompted if not specifed.</p></div>
<div class="paragraph"><p>--sasl-mechanisms SASL-MECHANISMS
: Allowed sasl mechanisms to be supplied during the sasl handshake.</p></div>
<div class="paragraph"><p>--sasl-username SASL-USERNAME
: User name for SASL plain authentication</p></div>
<div class="paragraph"><p>--sasl-password SASL-PASSWORD
: Password for SASL plain authentication</p></div>
<div class="paragraph"><p>--sasl-password-file SASL-PASSWORD-FILE
: Password for SASL plain authentication</p></div>
<div class="paragraph"><p>--ssl-disable-peer-name-verify
: Disables SSL peer name verification. WARNING - This option is insecure and must not be used in production environments</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_operations">OPERATIONS</h2>
<div class="sectionbody">
<div class="dlist"><dl>
<dt class="hdlist1">
<code>query</code> [<em>ATTR</em>&#8230;]
</dt>
<dd>
<p>
Print attributes for multiple entities. Prints all entities by default, use
--type, --name or --identity options to restrict which entities are printed.
Prints the attributes named in the ATTR list, or all attributes if none are
listed.
</p>
</dd>
<dt class="hdlist1">
<code>create</code> [<em>ATTR=VALUE</em>&#8230;]
</dt>
<dd>
<p>
Create a new entity with the specified attributes. With the --stdin
option, read attributes from stdin. This can be a JSON map of
attributes to create a single entity, or a JSON list of maps to create
multiple entities.
</p>
</dd>
<dt class="hdlist1">
<code>read</code>
</dt>
<dd>
<p>
Print all of the attributes of a single entity, specified by the --name or
--identity options.
</p>
</dd>
<dt class="hdlist1">
<code>update</code> [<em>ATTR=VALUE</em>&#8230;]
</dt>
<dd>
<p>
Update the attributes of an existing entity. If an ATTR name is listed with
no =VALUE, that attribute will be deleted from the entity. With the --stdin
option, read attributes from stdin. This can be a JSON map of attributes to
update a single entity, or a JSON list of maps to update multiple entities.
</p>
</dd>
<dt class="hdlist1">
<code>delete</code>
</dt>
<dd>
<p>
Delete an entity specified by the --name or --identity options.
</p>
</dd>
<dt class="hdlist1">
<code>get-types</code> [<em>TYPE</em>]
</dt>
<dd>
<p>
List entity types with their base types. With no arguments, list all
types.
</p>
</dd>
<dt class="hdlist1">
<code>get-operations</code> [<em>TYPE</em>]
</dt>
<dd>
<p>
List entity types with their operations. With no arguments, list all
types.
</p>
</dd>
<dt class="hdlist1">
<code>get-attributes</code> [<em>TYPE</em>]
</dt>
<dd>
<p>
List entity types with their attributes. With no arguments, list all
types.
</p>
</dd>
<dt class="hdlist1">
<code>get-annotations</code> [<em>TYPE</em>]
</dt>
<dd>
<p>
List entity types with their annotations. With no arguments, list all
types.
</p>
</dd>
<dt class="hdlist1">
<code>get-mgmt-nodes</code>
</dt>
<dd>
<p>
List all other known management nodes connected to this one.
</p>
</dd>
<dt class="hdlist1">
<code>get-json-schema</code> [<em>INDENT</em>]
</dt>
<dd>
<p>
Get the router schema in JSON format. Optional integer indent for
formatted output.
</p>
</dd>
<dt class="hdlist1">
<code>get-log</code> [<em>INDENT</em>]
</dt>
<dd>
<p>
Get recent log entries from the router.
</p>
</dd>
</dl></div>
</div>
</div>
<div class="sect1">
<h2 id="_files">FILES</h2>
<div class="sectionbody">
<div class="dlist"><dl>
<dt class="hdlist1">
/usr/local/share/doc/qpid-dispatch/qdrouter.json
</dt>
<dd>
<p>
Management schema for <em>qdrouterd</em>.
</p>
</dd>
<dt class="hdlist1">
/usr/local/share/doc/qpid-dispatch/qdrouter.json.readme.txt
</dt>
<dd>
<p>
Explanation of the management schema.
</p>
</dd>
</dl></div>
</div>
</div>
<div class="sect1">
<h2 id="_examples">EXAMPLES</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="title">Show the logging configuration:</div>
<div class="content">
<pre><code>qdmanage query --type=log</code></pre>
</div></div>
<div class="listingblock">
<div class="title">Enable debug and higher log messages by default:</div>
<div class="content">
<pre><code>qdmanage update name=log/DEFAULT enable=debug+</code></pre>
</div></div>
<div class="listingblock">
<div class="title">Enable trace log messages only for the MESSAGE module, and direct MESSAGE logs to the file <em>test.log</em>:</div>
<div class="content">
<pre><code>qdmanage update name=log/MESSAGE enable=trace output=test.log</code></pre>
</div></div>
<div class="listingblock">
<div class="title">Set MESSAGE logging back to the default:</div>
<div class="content">
<pre><code>qdmanage update name=log/MESSAGE enable=default</code></pre>
</div></div>
<div class="listingblock">
<div class="title">Disable MESSAGE logging:</div>
<div class="content">
<pre><code>qdmanage update name=log/MESSAGE enable=none</code></pre>
</div></div>
</div>
</div>
<div class="sect1">
<h2 id="_see_also">SEE ALSO</h2>
<div class="sectionbody">
<div class="paragraph"><p><em>qdrouterd(8)</em>, <em>qdstat(8)</em>, <em>qdrouterd.conf(5)</em></p></div>
<div class="paragraph"><p><a href="http://qpid.apache.org/components/dispatch-router">http://qpid.apache.org/components/dispatch-router</a></p></div>
</div>
</div>