commands
This commit is contained in:
parent
fdc876ca8a
commit
f329115966
|
@ -1,14 +1,16 @@
|
||||||
|
|
||||||
.. _commands::
|
.. _commands::
|
||||||
|
|
||||||
============
|
========
|
||||||
Command Line
|
Commands
|
||||||
============
|
========
|
||||||
|
|
||||||
The './bin/emqttd_ctl' command line could be used to query and administrate emqttd broker.
|
The './bin/emqttd_ctl' command line could be used to query and administrate emqttd broker.
|
||||||
|
|
||||||
.. WARNING:: Cannot work on Windows
|
.. WARNING:: Cannot work on Windows
|
||||||
|
|
||||||
|
.. _command_status::
|
||||||
|
|
||||||
------
|
------
|
||||||
status
|
status
|
||||||
------
|
------
|
||||||
|
@ -20,6 +22,8 @@ Show running status of the broker::
|
||||||
Node 'emqttd@127.0.0.1' is started
|
Node 'emqttd@127.0.0.1' is started
|
||||||
emqttd 0.16.0 is running
|
emqttd 0.16.0 is running
|
||||||
|
|
||||||
|
.. _command_broker::
|
||||||
|
|
||||||
------
|
------
|
||||||
broker
|
broker
|
||||||
------
|
------
|
||||||
|
@ -110,6 +114,7 @@ Query metrics of Bytes, MQTT Packets and Messages(sent/received)::
|
||||||
packets/unsuback : 0
|
packets/unsuback : 0
|
||||||
packets/unsubscribe : 0
|
packets/unsubscribe : 0
|
||||||
|
|
||||||
|
.. _command_cluster::
|
||||||
|
|
||||||
-------
|
-------
|
||||||
cluster
|
cluster
|
||||||
|
@ -174,6 +179,8 @@ Or remove emqttd2 from the cluster on emqttd1 node::
|
||||||
|
|
||||||
cd emqttd1 && ./bin/emqttd_ctl cluster remove emqttd2@127.0.0.1
|
cd emqttd1 && ./bin/emqttd_ctl cluster remove emqttd2@127.0.0.1
|
||||||
|
|
||||||
|
.. _command_clients::
|
||||||
|
|
||||||
-------
|
-------
|
||||||
clients
|
clients
|
||||||
-------
|
-------
|
||||||
|
@ -227,6 +234,7 @@ Kick out a MQTT Client::
|
||||||
|
|
||||||
./bin/emqttd_ctl clients kick "clientid"
|
./bin/emqttd_ctl clients kick "clientid"
|
||||||
|
|
||||||
|
.. _command_sessions::
|
||||||
|
|
||||||
--------
|
--------
|
||||||
sessions
|
sessions
|
||||||
|
@ -305,6 +313,7 @@ Show a session::
|
||||||
|
|
||||||
Session(clientid, clean_sess=false, max_inflight=100, inflight_queue=0, message_queue=0, message_dropped=0, awaiting_rel=0, awaiting_ack=0, awaiting_comp=0, created_at=1452935508)
|
Session(clientid, clean_sess=false, max_inflight=100, inflight_queue=0, message_queue=0, message_dropped=0, awaiting_rel=0, awaiting_ack=0, awaiting_comp=0, created_at=1452935508)
|
||||||
|
|
||||||
|
.. _command_topics::
|
||||||
|
|
||||||
------
|
------
|
||||||
topics
|
topics
|
||||||
|
@ -333,6 +342,8 @@ Show a topic::
|
||||||
|
|
||||||
The result will show which nodes the topic is on.
|
The result will show which nodes the topic is on.
|
||||||
|
|
||||||
|
.. _command_subscriptions::
|
||||||
|
|
||||||
-------------
|
-------------
|
||||||
subscriptions
|
subscriptions
|
||||||
-------------
|
-------------
|
||||||
|
@ -383,6 +394,8 @@ Remove a static subscription manually::
|
||||||
$ ./bin/emqttd_ctl subscriptions del clientid new_topic
|
$ ./bin/emqttd_ctl subscriptions del clientid new_topic
|
||||||
ok
|
ok
|
||||||
|
|
||||||
|
.. _command_plugins::
|
||||||
|
|
||||||
-------
|
-------
|
||||||
plugins
|
plugins
|
||||||
-------
|
-------
|
||||||
|
@ -441,6 +454,8 @@ Unload a Plugin::
|
||||||
|
|
||||||
Plugin emqttd_recon unloaded successfully.
|
Plugin emqttd_recon unloaded successfully.
|
||||||
|
|
||||||
|
.. _command_bridges::
|
||||||
|
|
||||||
-------
|
-------
|
||||||
bridges
|
bridges
|
||||||
-------
|
-------
|
||||||
|
@ -519,6 +534,8 @@ Delete the emqttd1--sensor/#-->emqttd2 bridge::
|
||||||
|
|
||||||
bridge is stopped.
|
bridge is stopped.
|
||||||
|
|
||||||
|
.. _command_vm::
|
||||||
|
|
||||||
--
|
--
|
||||||
vm
|
vm
|
||||||
--
|
--
|
||||||
|
@ -585,6 +602,8 @@ Query max, active file descriptors of IO::
|
||||||
io/max_fds : 2560
|
io/max_fds : 2560
|
||||||
io/active_fds : 1
|
io/active_fds : 1
|
||||||
|
|
||||||
|
.. _command_trace::
|
||||||
|
|
||||||
-----
|
-----
|
||||||
trace
|
trace
|
||||||
-----
|
-----
|
||||||
|
@ -649,6 +668,8 @@ List all traces::
|
||||||
trace client clientid -> log/clientid_trace.log
|
trace client clientid -> log/clientid_trace.log
|
||||||
trace topic topic -> log/topic_trace.log
|
trace topic topic -> log/topic_trace.log
|
||||||
|
|
||||||
|
.. _command_listeners::
|
||||||
|
|
||||||
---------
|
---------
|
||||||
listeners
|
listeners
|
||||||
---------
|
---------
|
||||||
|
@ -690,9 +711,11 @@ listener parameters:
|
||||||
| shutdown_count | Statistics of client shutdown reason |
|
| shutdown_count | Statistics of client shutdown reason |
|
||||||
+-----------------+---------------------------------------+
|
+-----------------+---------------------------------------+
|
||||||
|
|
||||||
|
.. _command_mnesia::
|
||||||
|
|
||||||
------
|
------
|
||||||
mnesia
|
mnesia
|
||||||
------
|
------
|
||||||
|
|
||||||
Query system_info of mnesia database.
|
Show system_info of mnesia database.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue