Command to view all active clients on access point via SSH

  • 1
  • Question
  • Updated 4 months ago
I have looked though the Aerohive CLI Guide but I cannot find anything to get a list of active clients for an access point.
Photo of Joel Roberts

Joel Roberts

  • 3 Posts
  • 0 Reply Likes
  • annoyed

Posted 3 years ago

  • 1
Photo of Gary Smith

Gary Smith, Official Rep

  • 299 Posts
  • 61 Reply Likes
Hi Joel,

You could try "show station" to give a list of all currently connected clients.

E.g;
AP230-0232c0#show station
Chan=channel number; Pow=Power in dBm;
A-Mode=Authentication mode; Cipher=Encryption mode;
A-Time=Associated time; Auth=Authenticated;
UPID=User profile Identifier; Phymode=Physical mode;

Ifname=wifi0.1, Ifindex=15, SSID=Home_WiFi:
Mac Addr       IP Addr         Chan Tx Rate Rx Rate Pow(SNR)         A-Mode   Cipher  A-Time  VLAN Auth UPID Phymode LDPC Tx-STBC Rx-STBC    SM-PS Chan-width Release Station-State           
-------------- --------------- ---- ------- ------- -------- -------------- -------- -------- ---- ---- ---- ------- ---- ------- ------- -------- ---------- ------- -------------
18ee:6936:5cee 192.168.83.71     11    130M  144.4M  -57(38)       wpa2-psk aes ccmp 00:07:29    1  Yes    1    11ng   No   Yes     Yes     static    20MHz        No Good                    

Ifname=wifi1.2, Ifindex=17, SSID=Home_WiFi:
Mac Addr       IP Addr         Chan Tx Rate Rx Rate Pow(SNR)         A-Mode   Cipher  A-Time  VLAN Auth UPID Phymode LDPC Tx-STBC Rx-STBC    SM-PS Chan-width Release Station-State           
-------------- --------------- ---- ------- ------- -------- -------------- -------- -------- ---- ---- ---- ------- ---- ------- ------- -------- ---------- ------- -------------
c01a:da47:a0e2 192.168.83.73     36      6M     24M  -75(18)       wpa2-psk aes ccmp 00:16:19    1  Yes   10    11na   No    No      No     static    40MHz        No data collecting...      
90f1:aa20:9a16 192.168.83.54     36   40.5M  121.5M  -74(19)       wpa2-psk aes ccmp 01:05:18    1  Yes   10    11na   No   Yes     Yes     static    40MHz        No Fair                    

Ifname=wifi0.2, Ifindex=18, SSID=CWP:
Mac Addr       IP Addr         Chan Tx Rate Rx Rate Pow(SNR)         A-Mode   Cipher  A-Time  VLAN Auth UPID Phymode LDPC Tx-STBC Rx-STBC    SM-PS Chan-width Release Station-State           
-------------- --------------- ---- ------- ------- -------- -------------- -------- -------- ---- ---- ---- ------- ---- ------- ------- -------- ---------- ------- -------------

Ifname=wifi1.3, Ifindex=19, SSID=CWP:
Mac Addr       IP Addr         Chan Tx Rate Rx Rate Pow(SNR)         A-Mode   Cipher  A-Time  VLAN Auth UPID Phymode LDPC Tx-STBC Rx-STBC    SM-PS Chan-width Release Station-State           
-------------- --------------- ---- ------- ------- -------- -------------- -------- -------- ---- ---- ---- ------- ---- ------- ------- -------- ---------- ------- -------------

AP230-0232c0#

Kind Regards,
Gary Smith
(Edited)
Photo of Joel Roberts

Joel Roberts

  • 3 Posts
  • 0 Reply Likes
Thanks for the quick reply. That's helpful, but I needed something similar to the active clients page in Hive Manger which also shows the username for each client.

Photo of Gary Smith

Gary Smith, Official Rep

  • 299 Posts
  • 61 Reply Likes
Hi Joel,

I'm afraid I cannot find a single command which will show this in one place. You could use a "show station" and "show user" and tie the mac adress to the user name. It's not ideal.

Unless someone else has a better way, this sounds like an enhancement request.

Kind Regards,
Gary Smith
Photo of Roberto Casula

Roberto Casula, Champ

  • 231 Posts
  • 111 Reply Likes
"_show rt-sta" will give you the MAC, UserName, Hostname, IP Address and Client OS values along with some internal counters.

It is a hidden/undocumented debug command used for support troubleshooting - I don't know why this information isn't available in the "normal" show commands.
Photo of J. Goodnough

J. Goodnough, Champ

  • 266 Posts
  • 32 Reply Likes
This should definitely be worked into a show station subcommand.
Photo of Gary Smith

Gary Smith, Official Rep

  • 299 Posts
  • 61 Reply Likes
Nice work Roberto.
Photo of Joel Roberts

Joel Roberts

  • 3 Posts
  • 0 Reply Likes
Thanks! That's very helpful.
Photo of ERNEST ADAMS

ERNEST ADAMS

  • 1 Post
  • 0 Reply Likes
Thank you, sir.