Skip to content

Latest commit

 

History

History
112 lines (77 loc) · 2.95 KB

CLI_COMMANDS.md

File metadata and controls

112 lines (77 loc) · 2.95 KB

CLI Commands

When residue server starts it can accept some commands from command-line interface. This document lists these commands.

Please note, some of these commands can also be triggered using admin requests.

Table of Contents

quit

Quits the server gracefully

rconfig

Reloads configurations from same file as initially loaded

--logger-id <logger_id>

Reloads server configuration and reconfigure loggers

reset

Resets the server with following things (be careful in doing this as it may affect connected clients)

  1. Reloads configurations
  2. Disconnect all the clients (and remove corresponding tokens)
  3. Disconnect active sessions

history

Display history of valid commands (default maximum = 5)

clients

Number of connected clients (dead or alive) that have not yet been removed from the server

clean

Runs client integrity task and cleans all the dead clients

list

Lists all the connected clients (and DEAD status if they're dead)

--with-key

List associated key with the rest of the details

tokens

Lists all the tokens for selected client (and EXPIRED status if they're expired).

--client-id <client-id>

The client ID to see tokens for

rotate

Manually run log rotator for specified logger

--logger-id <logger-id>

The logger ID to run log rotation for.

[--ignore-archive]

If this option is set the archival task will not run and it will just copy the logs to backup directory.

[--check-only]

Only check the schedule for this logger rotation

stats

Displays server stats and number of active sessions

list

Lists for active sessions (received, sent and how long session has been active for and associated clients if registered)

dyn

List dynamic buffer status

queue

List processing queue status

You can also run sampling on the queue by providing sampling. Thread will be stalled for the amount of seconds value you provide (valid value from 3 to 10)

For example

stats queue sampling 6 --client-id unmanaged

It will list the speed of each queue, e.g,

Queue For: unmanaged     Active:  8376 Backlog:  7442 Speed:  5 items/s (incl. bulk)

Sampling is done only on a non-empty active queue

--client-id <client-id>

Filters stats for specified client. Some of the clients may not be listed as they're only registered when server receives anything from them.

files

Displays list of logging files for speicified client, logger or levels

--client-id <id>

Client to display files for (all loggers if no --logger-id specified)

--logger-id <id>

Limit the list to specified logger id (for specified client)

--levels <levels>

Comma seperated logging levels, e.g, info,error