.. _cli: ================== Command-line tools ================== circus-top ========== *circus-top* is a top-like console you can run to watch live your running Circus system. It will display the CPU and Memory usage. Example of output:: ----------------------------------------------------------------------- circusd-stats PID CPU (%) MEMORY (%) 14252 0.8 0.4 0.8 (avg) 0.4 (sum) dummy PID CPU (%) MEMORY (%) 14257 78.6 0.1 14256 76.6 0.1 14258 74.3 0.1 14260 71.4 0.1 14259 70.7 0.1 74.32 (avg) 0.5 (sum) ---------------------------------------------------------------------- *circus-top* is a read-only console. If you want to interact with the system, use *circusctl*. circusctl ========= *circusctl* can be used to run any command listed below. For example, you can get a list of all the watchers:: $ circusctl list *circusctl* is just a zeromq client, and if needed you can drive programmaticaly the Circus system by writing your own zmq client. All messages are Json mappings. For each command below, we provide a usage example with circusctl but also the input / output zmq messages. circus-ctl commands ------------------- - **set**: :doc:`commands/set` - **dstats**: :doc:`commands/dstats` - **globaloptions**: :doc:`commands/globaloptions` - **listpids**: :doc:`commands/listpids` - **quit**: :doc:`commands/quit` - **incr**: :doc:`commands/incr` - **stats**: :doc:`commands/stats` - **numwatchers**: :doc:`commands/numwatchers` - **start**: :doc:`commands/start` - **add**: :doc:`commands/add` - **decr**: :doc:`commands/decr` - **rm**: :doc:`commands/rm` - **listen**: :doc:`commands/listen` - **status**: :doc:`commands/status` - **get**: :doc:`commands/get` - **stop**: :doc:`commands/stop` - **restart**: :doc:`commands/restart` - **signal**: :doc:`commands/signal` - **list**: :doc:`commands/list` - **reload**: :doc:`commands/reload` - **numprocesses**: :doc:`commands/numprocesses` - **options**: :doc:`commands/options` .. toctree:: :hidden: :glob: commands/*