WLC Client Commands

Synopsis

netapi wlc get-clients [OPTIONS]
netapi wlc get-client <MAC_ADDRESS> [OPTIONS]
netapi wlc get-client-count

Commands

get-clients

List all connected wireless clients.

netapi wlc get-clients
netapi wlc get-clients --format json
netapi wlc get-clients --wlan CORP_WIFI

get-client

Get details for specific client.

netapi wlc get-client 00:11:22:33:44:55
netapi wlc get-client 00:11:22:33:44:55 --format json
Sample Output
{
  "mac_address": "00:11:22:33:44:55",
  "username": "erosado@corp.com",
  "wlan": "CORP_WIFI",
  "ap_name": "AP-FLOOR1-01",
  "channel": 36,
  "rssi": -65,
  "snr": 35,
  "protocol": "802.11ax",
  "state": "RUN",
  "vlan": 100
}

get-client-count

Get count of connected clients.

netapi wlc get-client-count
netapi wlc get-client-count --by-wlan
netapi wlc get-client-count --by-ap

Troubleshooting

# Find client on WLC
netapi wlc get-client 00:11:22:33:44:55

# Correlate with ISE session
netapi ise mnt session 00:11:22:33:44:55

# Check AP the client is connected to
netapi wlc get-ap AP-FLOOR1-01

CI/CD Monitoring

- name: Monitor client count
  run: |
    count=$(netapi wlc get-client-count)
    if [ "$count" -lt 10 ]; then
      echo "::warning::Unusually low client count: $count"
    fi