unifi clients
About 691 words
List, inspect and manage connected clients.
Aliases: client
Commands
unifi clients block: Block clients from the networkunifi clients describe: Show everything known about one clientunifi clients forget: Forget a client and its historyunifi clients get: List connected clients, or show oneunifi clients reconnect: Disconnect clients so that they reconnectunifi clients unblock: Let blocked clients back on the network
unifi clients block
Block clients from the network.
Usage
unifi clients block <client>... [flags]Block clients from the network until they are unblocked. Blocking a client that is connected cuts it off at once, so it asks for confirmation; a client that is already blocked is left as it is.
Examples
unifi clients block "Unknown ESP Device"
unifi clients block "Guest-iPhone" "DESKTOP-7Q2K4LM" --yesFlags
| Flag | Description |
|---|---|
-y, --yes | do not ask for confirmation |
unifi clients describe
Show everything known about one client.
Usage
unifi clients describe <client> [flags]Examples
unifi clients describe nas
unifi clients describe aa:bb:cc:dd:ee:ff --output jsonunifi clients forget
Forget a client and its history.
Usage
unifi clients forget <client> [flags]Remove a client and everything the controller remembers about it: its name, its fixed address and its statistics. This cannot be undone, so the command always asks for confirmation.
Examples
unifi clients forget "Old Laptop"
unifi clients forget "Old Laptop" --yesFlags
| Flag | Description |
|---|---|
-y, --yes | do not ask for confirmation |
unifi clients get
List connected clients, or show one.
Usage
unifi clients get [client] [flags]Aliases: list, ls
List the clients connected to the site.
Narrow the list with the shortcut flags or with --filter, which takes a filter expression such as type == "WIRELESS" && experience < 60. Fields:
band blocked channel connectedAt
experience guest hostname id
ip mac name network
online rxBytes rxRateBps signalDbm
ssid txBytes txRateBps type
uplinkDeviceMac uplinkDeviceName uplinkPortIdx vendor
vlanSorting by signal, usage or connection time adds that column to the table. Clients that are blocked are listed after the others, and on a terminal a last line counts what is listed.
Examples
unifi clients get
unifi clients get --wireless --sort signal
unifi clients get --network IoT --output wide
unifi clients get --filter 'experience < 60'
unifi clients get --filter 'name contains "camera" && rxBytes > size("1GB")'
unifi clients get --sort usage --limit 10
unifi clients get macbook --output yamlFlags
| Flag | Description |
|---|---|
--blocked | only blocked clients |
--filter <string> | filter expression, such as 'type == "WIRELESS" && experience < 60' |
--guests | only guests |
--limit <int> | show at most this many clients |
--network <string> | only clients on this network |
--reverse | reverse the sort order |
--sort <string> | sort key: name, ip, network, type, experience, signal, down, up, usage, connected |
--wired | only wired clients |
--wireless | only wireless clients |
unifi clients reconnect
Disconnect clients so that they reconnect.
Usage
unifi clients reconnect <client>... [flags]Disconnect clients for a moment. They reconnect on their own, which makes a wireless client pick the best access point again. Only a client that is connected can be asked to.
Examples
unifi clients reconnect "iPad Air"
unifi clients reconnect "iPad Air" "Pixel 9 Pro"Flags
| Flag | Description |
|---|---|
-y, --yes | do not ask for confirmation |
unifi clients unblock
Let blocked clients back on the network.
Usage
unifi clients unblock <client>... [flags]Lift the block of clients. A client that is not blocked is left as it is.
Examples
unifi clients get --blocked
unifi clients unblock "Unknown ESP Device"Flags
| Flag | Description |
|---|---|
-y, --yes | do not ask for confirmation |
Global flags
These flags are accepted by every command.
| Flag | Description |
|---|---|
--color-scheme <string> | color scheme: auto, dark or light |
--context <string> | context to use instead of the current one |
--no-cache | ask the controller for everything instead of using cached answers |
-o, --output <string> | output format: text, wide, json, yaml (table is another name for text) |
-s, --site <string> | site to act on instead of the context's default site |
--theme <string> | theme to render with instead of the configured one |
