commands.rst 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. .. _commands::
  2. ========
  3. Commands
  4. ========
  5. The './bin/emqttd_ctl' command line could be used to query and administrate emqttd broker.
  6. .. WARNING:: Cannot work on Windows
  7. .. _command_status::
  8. ------
  9. status
  10. ------
  11. Show running status of the broker::
  12. $ ./bin/emqttd_ctl status
  13. Node 'emqttd@127.0.0.1' is started
  14. emqttd 0.16.0 is running
  15. .. _command_broker::
  16. ------
  17. broker
  18. ------
  19. Query basic information, statistics and metrics of the broker.
  20. +----------------+-------------------------------------------------+
  21. | broker | Show version, description, uptime of the broker |
  22. +----------------+-------------------------------------------------+
  23. | broker pubsub | Show status of the core pubsub process |
  24. +----------------+-------------------------------------------------+
  25. | broker stats | Show statistics of client, session, topic, |
  26. | | subscription and route of the broker |
  27. +----------------+-------------------------------------------------+
  28. | broker metrics | Show metrics of MQTT bytes, packets, messages |
  29. | | sent/received. |
  30. +----------------+-------------------------------------------------+
  31. Query version, description and uptime of the broker::
  32. $ ./bin/emqttd_ctl broker
  33. sysdescr : Erlang MQTT Broker
  34. version : 0.15.0
  35. uptime : 1 hours, 25 minutes, 24 seconds
  36. datetime : 2016-01-16 13:17:32
  37. broker stats
  38. ------------
  39. Query statistics of MQTT Client, Session, Topic, Subscription and Route::
  40. $ ./bin/emqttd_ctl broker stats
  41. clients/count : 1
  42. clients/max : 1
  43. queues/count : 0
  44. queues/max : 0
  45. retained/count : 2
  46. retained/max : 2
  47. routes/count : 2
  48. routes/reverse : 2
  49. sessions/count : 0
  50. sessions/max : 0
  51. subscriptions/count : 1
  52. subscriptions/max : 1
  53. topics/count : 54
  54. topics/max : 54
  55. broker metrics
  56. --------------
  57. Query metrics of Bytes, MQTT Packets and Messages(sent/received)::
  58. $ ./bin/emqttd_ctl broker metrics
  59. bytes/received : 297
  60. bytes/sent : 40
  61. messages/dropped : 348
  62. messages/qos0/received : 0
  63. messages/qos0/sent : 0
  64. messages/qos1/received : 0
  65. messages/qos1/sent : 0
  66. messages/qos2/received : 0
  67. messages/qos2/sent : 0
  68. messages/received : 0
  69. messages/retained : 2
  70. messages/sent : 0
  71. packets/connack : 5
  72. packets/connect : 5
  73. packets/disconnect : 0
  74. packets/pingreq : 0
  75. packets/pingresp : 0
  76. packets/puback/received : 0
  77. packets/puback/sent : 0
  78. packets/pubcomp/received: 0
  79. packets/pubcomp/sent : 0
  80. packets/publish/received: 0
  81. packets/publish/sent : 0
  82. packets/pubrec/received : 0
  83. packets/pubrec/sent : 0
  84. packets/pubrel/received : 0
  85. packets/pubrel/sent : 0
  86. packets/received : 9
  87. packets/sent : 9
  88. packets/suback : 4
  89. packets/subscribe : 4
  90. packets/unsuback : 0
  91. packets/unsubscribe : 0
  92. .. _command_cluster::
  93. -------
  94. cluster
  95. -------
  96. Cluster two or more emqttd brokers.
  97. +-----------------------+--------------------------------+
  98. | cluster join <Node> | Join the cluster |
  99. +-----------------------+--------------------------------+
  100. | cluster leave | Leave the cluster |
  101. +-----------------------+--------------------------------+
  102. | cluster remove <Node> | Remove a node from the cluster |
  103. +-----------------------+--------------------------------+
  104. | cluster status | Query cluster status and nodes |
  105. +-----------------------+--------------------------------+
  106. Suppose we create two emqttd nodes on localhost and cluster them:
  107. +-----------+---------------------+-------------+
  108. | Folder | Node | MQTT Port |
  109. +-----------+---------------------+-------------+
  110. | emqttd1 | emqttd1@127.0.0.1 | 1883 |
  111. +-----------+---------------------+-------------+
  112. | emqttd2 | emqttd2@127.0.0.1 | 2883 |
  113. +-----------+---------------------+-------------+
  114. Start emqttd1 node::
  115. cd emqttd1 && ./bin/emqttd start
  116. Start emqttd2 node::
  117. cd emqttd2 && ./bin/emqttd start
  118. Under emqttd2 folder::
  119. $ ./bin/emqttd_ctl cluster join emqttd1@127.0.0.1
  120. Join the cluster successfully.
  121. Cluster status: [{running_nodes,['emqttd1@127.0.0.1','emqttd2@127.0.0.1']}]
  122. Query cluster status::
  123. $ ./bin/emqttd_ctl cluster status
  124. Cluster status: [{running_nodes,['emqttd2@127.0.0.1','emqttd1@127.0.0.1']}]
  125. Message Route between nodes::
  126. # Subscribe topic 'x' on emqttd1 node
  127. mosquitto_sub -t x -q 1 -p 1883
  128. # Publish to topic 'x' on emqttd2 node
  129. mosquitto_pub -t x -q 1 -p 2883 -m hello
  130. emqttd2 leaves the cluster::
  131. cd emqttd2 && ./bin/emqttd_ctl cluster leave
  132. Or remove emqttd2 from the cluster on emqttd1 node::
  133. cd emqttd1 && ./bin/emqttd_ctl cluster remove emqttd2@127.0.0.1
  134. .. _command_clients::
  135. -------
  136. clients
  137. -------
  138. Query MQTT clients connected to the broker:
  139. +-------------------------+----------------------------------+
  140. | clients list | List all MQTT clients |
  141. +-------------------------+----------------------------------+
  142. | clients show <ClientId> | Show a MQTT Client |
  143. +-------------------------+----------------------------------+
  144. | clients kick <ClientId> | Kick out a MQTT client |
  145. +-------------------------+----------------------------------+
  146. clients lists
  147. -------------
  148. Query All MQTT clients connected to the broker::
  149. $ ./bin/emqttd_ctl clients list
  150. Client(mosqsub/43832-airlee.lo, clean_sess=true, username=test, peername=127.0.0.1:64896, connected_at=1452929113)
  151. Client(mosqsub/44011-airlee.lo, clean_sess=true, username=test, peername=127.0.0.1:64961, connected_at=1452929275)
  152. ...
  153. Properties of the Client:
  154. +--------------+---------------------------------------------------+
  155. | clean_sess | Clean Session Flag |
  156. +--------------+---------------------------------------------------+
  157. | username | Username of the client |
  158. +--------------+---------------------------------------------------+
  159. | peername | Peername of the TCP connection |
  160. +--------------+---------------------------------------------------+
  161. | connected_at | The timestamp when client connected to the broker |
  162. +--------------+---------------------------------------------------+
  163. clients show <ClientId>
  164. -----------------------
  165. Show a specific MQTT Client::
  166. ./bin/emqttd_ctl clients show "mosqsub/43832-airlee.lo"
  167. Client(mosqsub/43832-airlee.lo, clean_sess=true, username=test, peername=127.0.0.1:64896, connected_at=1452929113)
  168. clients kick <ClientId>
  169. -----------------------
  170. Kick out a MQTT Client::
  171. ./bin/emqttd_ctl clients kick "clientid"
  172. .. _command_sessions::
  173. --------
  174. sessions
  175. --------
  176. Query all MQTT sessions. The broker will create a session for each MQTT client. Persistent Session if clean_session flag is true, transient session otherwise.
  177. +--------------------------+-------------------------------+
  178. | sessions list | List all Sessions |
  179. +--------------------------+-------------------------------+
  180. | sessions list persistent | Query all persistent Sessions |
  181. +--------------------------+-------------------------------+
  182. | sessions list transient | Query all transient Sessions |
  183. +--------------------------+-------------------------------+
  184. | sessions show <ClientId> | Show a session |
  185. +--------------------------+-------------------------------+
  186. sessions list
  187. -------------
  188. Query all sessions::
  189. $ ./bin/emqttd_ctl sessions list
  190. 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)
  191. Session(mosqsub/44101-airlee.lo, clean_sess=true, max_inflight=100, inflight_queue=0, message_queue=0, message_dropped=0, awaiting_rel=0, awaiting_ack=0, awaiting_comp=0, created_at=1452935401)
  192. Properties of Session:
  193. TODO:??
  194. +-------------------+----------------------------------------------------------------+
  195. | clean_sess | clean sess flag. false: persistent, true: transient |
  196. +-------------------+----------------------------------------------------------------+
  197. | max_inflight | Inflight window (Max number of messages delivering) |
  198. +-------------------+----------------------------------------------------------------+
  199. | inflight_queue | Inflight Queue Size |
  200. +-------------------+----------------------------------------------------------------+
  201. | message_queue | Message Queue Size |
  202. +-------------------+----------------------------------------------------------------+
  203. | message_dropped | Number of Messages Dropped for queue is full |
  204. +-------------------+----------------------------------------------------------------+
  205. | awaiting_rel | The number of QoS2 messages received and waiting for PUBREL |
  206. +-------------------+----------------------------------------------------------------+
  207. | awaiting_ack | The number of QoS1/2 messages delivered and waiting for PUBACK |
  208. +-------------------+----------------------------------------------------------------+
  209. | awaiting_comp | The number of QoS2 messages delivered and waiting for PUBCOMP |
  210. +-------------------+----------------------------------------------------------------+
  211. | created_at | Timestamp when the session is created |
  212. +-------------------+----------------------------------------------------------------+
  213. sessions list persistent
  214. ------------------------
  215. Query all persistent sessions::
  216. $ ./bin/emqttd_ctl sessions list persistent
  217. 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)
  218. sessions list transient
  219. -----------------------
  220. Query all transient sessions::
  221. $ ./bin/emqttd_ctl sessions list transient
  222. Session(mosqsub/44101-airlee.lo, clean_sess=true, max_inflight=100, inflight_queue=0, message_queue=0, message_dropped=0, awaiting_rel=0, awaiting_ack=0, awaiting_comp=0, created_at=1452935401)
  223. sessions show <ClientId>
  224. ------------------------
  225. Show a session::
  226. $ ./bin/emqttd_ctl sessions show clientid
  227. 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)
  228. .. _command_routes::
  229. ------
  230. routes
  231. ------
  232. Show routing table of the broker.
  233. routes list
  234. -----------
  235. List all routes::
  236. $ ./bin/emqttd_ctl routes list
  237. t2/# -> emqttd2@127.0.0.1
  238. t/+/x -> emqttd2@127.0.0.1,emqttd@127.0.0.1
  239. routes show <Topic>
  240. -------------------
  241. Show a route::
  242. $ ./bin/emqttd_ctl routes show t/+/x
  243. t/+/x -> emqttd2@127.0.0.1,emqttd@127.0.0.1
  244. .. _command_topics::
  245. ------
  246. topics
  247. ------
  248. Query topic table of the broker.
  249. topics list
  250. -----------
  251. Query all the topics::
  252. $ ./bin/emqttd_ctl topics list
  253. $SYS/brokers/emqttd@127.0.0.1/metrics/packets/subscribe: static
  254. $SYS/brokers/emqttd@127.0.0.1/stats/subscriptions/max: static
  255. $SYS/brokers/emqttd2@127.0.0.1/stats/subscriptions/count: static
  256. ...
  257. topics show <Topic>
  258. -------------------
  259. Show a topic::
  260. $ ./bin/emqttd_ctl topics show '$SYS/brokers'
  261. $SYS/brokers: static
  262. .. _command_subscriptions::
  263. -------------
  264. subscriptions
  265. -------------
  266. Query the subscription table of the broker:
  267. +--------------------------------------------+--------------------------------------+
  268. | subscriptions list | List all subscriptions |
  269. +--------------------------------------------+--------------------------------------+
  270. | subscriptions show <ClientId> | Show a subscription |
  271. +--------------------------------------------+--------------------------------------+
  272. | subscriptions add <ClientId> <Topic> <Qos> | Add a static subscription manually |
  273. +--------------------------------------------+--------------------------------------+
  274. | subscriptions del <ClientId> <Topic> | Remove a static subscription manually|
  275. +--------------------------------------------+--------------------------------------+
  276. subscriptions list
  277. ------------------
  278. Query all subscriptions::
  279. $ ./bin/emqttd_ctl subscriptions list
  280. mosqsub/91042-airlee.lo -> t/y:1
  281. mosqsub/90475-airlee.lo -> t/+/x:2
  282. subscriptions list static
  283. -------------------------
  284. List all static subscriptions::
  285. $ ./bin/emqttd_ctl subscriptions list static
  286. clientid -> new_topic:1
  287. subscriptions show <ClientId>
  288. -----------------------------
  289. Show the subscriptions of a MQTT client::
  290. $ ./bin/emqttd_ctl subscriptions show clientid
  291. clientid: [{<<"x">>,1},{<<"topic2">>,1},{<<"topic3">>,1}]
  292. subscriptions add <ClientId> <Topic> <QoS>
  293. ------------------------------------------
  294. Add a static subscription manually::
  295. $ ./bin/emqttd_ctl subscriptions add clientid new_topic 1
  296. ok
  297. subscriptions del <ClientId> <Topic>
  298. ------------------------------------
  299. Remove a static subscription manually::
  300. $ ./bin/emqttd_ctl subscriptions del clientid new_topic
  301. ok
  302. .. _command_plugins::
  303. -------
  304. plugins
  305. -------
  306. List, load or unload plugins of emqttd broker.
  307. +---------------------------+-------------------------+
  308. | plugins list | List all plugins |
  309. +---------------------------+-------------------------+
  310. | plugins load <Plugin> | Load Plugin |
  311. +---------------------------+-------------------------+
  312. | plugins unload <Plugin> | Unload (Plugin) |
  313. +---------------------------+-------------------------+
  314. plugins list
  315. ------------
  316. List all plugins::
  317. $ ./bin/emqttd_ctl plugins list
  318. Plugin(emqttd_dashboard, version=0.16.0, description=emqttd web dashboard, active=true)
  319. Plugin(emqttd_plugin_mysql, version=0.16.0, description=emqttd Authentication/ACL with MySQL, active=false)
  320. Plugin(emqttd_plugin_pgsql, version=0.16.0, description=emqttd PostgreSQL Plugin, active=false)
  321. Plugin(emqttd_plugin_redis, version=0.16.0, description=emqttd Redis Plugin, active=false)
  322. Plugin(emqttd_plugin_template, version=0.16.0, description=emqttd plugin template, active=false)
  323. Plugin(emqttd_recon, version=0.16.0, description=emqttd recon plugin, active=false)
  324. Plugin(emqttd_stomp, version=0.16.0, description=Stomp Protocol Plugin for emqttd broker, active=false)
  325. Properties of a plugin:
  326. +-------------+--------------------------+
  327. | version | Plugin Version |
  328. +-------------+--------------------------+
  329. | description | Plugin Description |
  330. +-------------+--------------------------+
  331. | active | If the plugin is Loaded |
  332. +-------------+--------------------------+
  333. load <Plugin>
  334. -------------
  335. Load a Plugin::
  336. $ ./bin/emqttd_ctl plugins load emqttd_recon
  337. Start apps: [recon,emqttd_recon]
  338. Plugin emqttd_recon loaded successfully.
  339. unload <Plugin>
  340. ---------------
  341. Unload a Plugin::
  342. $ ./bin/emqttd_ctl plugins unload emqttd_recon
  343. Plugin emqttd_recon unloaded successfully.
  344. .. _command_bridges::
  345. -------
  346. bridges
  347. -------
  348. Bridge two or more emqttd brokers::
  349. --------- ---------
  350. Publisher --> | node1 | --Bridge Forward--> | node2 | --> Subscriber
  351. --------- ---------
  352. commands for bridge:
  353. +----------------------------------------+------------------------------+
  354. | bridges list | List all bridges |
  355. +----------------------------------------+------------------------------+
  356. | bridges options | Show bridge options |
  357. +----------------------------------------+------------------------------+
  358. | bridges start <Node> <Topic> | Create a bridge |
  359. +----------------------------------------+------------------------------+
  360. | bridges start <Node> <Topic> <Options> | Create a bridge with options |
  361. +----------------------------------------+------------------------------+
  362. | bridges stop <Node> <Topic> | Delete a bridge |
  363. +----------------------------------------+------------------------------+
  364. Suppose we create a bridge between emqttd1 and emqttd2 on localhost:
  365. +---------+---------------------+-----------+
  366. | Name | Node | MQTT Port |
  367. +---------+---------------------+-----------+
  368. | emqttd1 | emqttd1@127.0.0.1 | 1883 |
  369. +---------+---------------------+-----------+
  370. | emqttd2 | emqttd2@127.0.0.1 | 2883 |
  371. +---------+---------------------+-----------+
  372. The bridge will forward all the the 'sensor/#' messages from emqttd1 to emqttd2::
  373. $ ./bin/emqttd_ctl bridges start emqttd2@127.0.0.1 sensor/#
  374. bridge is started.
  375. $ ./bin/emqttd_ctl bridges list
  376. bridge: emqttd1@127.0.0.1--sensor/#-->emqttd2@127.0.0.1
  377. The the 'emqttd1--sensor/#-->emqttd2' bridge::
  378. #emqttd2 node
  379. mosquitto_sub -t sensor/# -p 2883 -d
  380. #emqttd1节点上
  381. mosquitto_pub -t sensor/1/temperature -m "37.5" -d
  382. bridges options
  383. ---------------
  384. Show bridge options::
  385. $ ./bin/emqttd_ctl bridges options
  386. Options:
  387. qos = 0 | 1 | 2
  388. prefix = string
  389. suffix = string
  390. queue = integer
  391. Example:
  392. qos=2,prefix=abc/,suffix=/yxz,queue=1000
  393. bridges stop <Node> <Topic>
  394. ---------------------------
  395. Delete the emqttd1--sensor/#-->emqttd2 bridge::
  396. $ ./bin/emqttd_ctl bridges stop emqttd2@127.0.0.1 sensor/#
  397. bridge is stopped.
  398. .. _command_vm::
  399. --
  400. vm
  401. --
  402. Query the load, cpu, memory, processes and IO information of the Erlang VM.
  403. +-------------+-----------------------------------+
  404. | vm all | Query all |
  405. +-------------+-----------------------------------+
  406. | vm load | Query VM Load |
  407. +-------------+-----------------------------------+
  408. | vm memory | Query Memory Usage |
  409. +-------------+-----------------------------------+
  410. | vm process | Query Number of Erlang Processes |
  411. +-------------+-----------------------------------+
  412. | vm io | Query Max Fds of VM |
  413. +-------------+-----------------------------------+
  414. vm load
  415. -------
  416. Query load::
  417. $ ./bin/emqttd_ctl vm load
  418. cpu/load1 : 2.21
  419. cpu/load5 : 2.60
  420. cpu/load15 : 2.36
  421. vm memory
  422. ---------
  423. Query memory::
  424. $ ./bin/emqttd_ctl vm memory
  425. memory/total : 23967736
  426. memory/processes : 3594216
  427. memory/processes_used : 3593112
  428. memory/system : 20373520
  429. memory/atom : 512601
  430. memory/atom_used : 491955
  431. memory/binary : 51432
  432. memory/code : 13401565
  433. memory/ets : 1082848
  434. vm process
  435. ----------
  436. Query number of erlang processes::
  437. $ ./bin/emqttd_ctl vm process
  438. process/limit : 8192
  439. process/count : 221
  440. vm io
  441. -----
  442. Query max, active file descriptors of IO::
  443. $ ./bin/emqttd_ctl vm io
  444. io/max_fds : 2560
  445. io/active_fds : 1
  446. .. _command_trace::
  447. -----
  448. trace
  449. -----
  450. Trace MQTT packets, messages(sent/received) by ClientId or Topic.
  451. +-----------------------------------+-----------------------------------+
  452. | trace list | List all the traces |
  453. +-----------------------------------+-----------------------------------+
  454. | trace client <ClientId> <LogFile> | Trace a client |
  455. +-----------------------------------+-----------------------------------+
  456. | trace client <ClientId> off | Stop tracing the client |
  457. +-----------------------------------+-----------------------------------+
  458. | trace topic <Topic> <LogFile> | Trace a topic |
  459. +-----------------------------------+-----------------------------------+
  460. | trace topic <Topic> off | Stop tracing the topic |
  461. +-----------------------------------+-----------------------------------+
  462. trace client <ClientId> <LogFile>
  463. ---------------------------------
  464. Start to trace a client::
  465. $ ./bin/emqttd_ctl trace client clientid log/clientid_trace.log
  466. trace client clientid successfully.
  467. trace client <ClientId> off
  468. ---------------------------
  469. Stop tracing the client::
  470. $ ./bin/emqttd_ctl trace client clientid off
  471. stop tracing client clientid successfully.
  472. trace topic <Topic> <LogFile>
  473. -----------------------------
  474. Start to trace a topic::
  475. $ ./bin/emqttd_ctl trace topic topic log/topic_trace.log
  476. trace topic topic successfully.
  477. trace topic <Topic> off
  478. -----------------------
  479. Stop tracing the topic::
  480. $ ./bin/emqttd_ctl trace topic topic off
  481. stop tracing topic topic successfully.
  482. trace list
  483. ----------
  484. List all traces::
  485. $ ./bin/emqttd_ctl trace list
  486. trace client clientid -> log/clientid_trace.log
  487. trace topic topic -> log/topic_trace.log
  488. .. _command_listeners::
  489. ---------
  490. listeners
  491. ---------
  492. Show all the TCP listeners::
  493. $ ./bin/emqttd_ctl listeners
  494. listener on http:8083
  495. acceptors : 4
  496. max_clients : 64
  497. current_clients : 0
  498. shutdown_count : []
  499. listener on mqtts:8883
  500. acceptors : 4
  501. max_clients : 512
  502. current_clients : 0
  503. shutdown_count : []
  504. listener on mqtt:1883
  505. acceptors : 16
  506. max_clients : 8192
  507. current_clients : 1
  508. shutdown_count : [{closed,1}]
  509. listener on http:18083
  510. acceptors : 4
  511. max_clients : 512
  512. current_clients : 0
  513. shutdown_count : []
  514. listener parameters:
  515. +-----------------+--------------------------------------+
  516. | acceptors | TCP Acceptor Pool |
  517. +-----------------+--------------------------------------+
  518. | max_clients | Max number of clients |
  519. +-----------------+--------------------------------------+
  520. | current_clients | Count of current clients |
  521. +-----------------+--------------------------------------+
  522. | shutdown_count | Statistics of client shutdown reason |
  523. +-----------------+---------------------------------------+
  524. .. _command_mnesia::
  525. ------
  526. mnesia
  527. ------
  528. Show system_info of mnesia database.