CLIENT LIST

Since 1.1.0Server

Syntax

CLIENT LIST [TYPE normal|master|replica|pubsub] [ID id [id ...]] [USER username] [ADDR ip:port] [LADDR ip:port] [SKIPME yes|no] [MAXAGE seconds]

Returns a line per connection, with Redis's fields: id, addr, laddr, name, age, idle, flags, db, sub, psub, ssub, multi, watch, cmd, user, redir, resp, lib-name, lib-ver and others. The options keep only the connections that match.

OptionKeeps
TYPE normal | master | replica | pubsubconnections of this kind
ID id ...these IDs
USER usernameconnections logged in as this user
ADDR ip:port, LADDR ip:portthe client's address, or the server's
SKIPME yes | nowhether to leave this connection out
MAXAGE secondsconnections at most this old