This CLI manages wireless LANs across multiple Cisco Catalyst 9800 Wireless Network Controllers.
grep, awk, sed and cut, and JSON for jq--pretty for humans, and --format json for machines and AIsCisco Catalyst 9800 Wireless Network Controller running on:
wnc deauth before 17.15.6Important
This CLI requires these minimum versions due to RESTCONF defects in earlier releases.
It fails on 17.15.4b and 17.18.1.
See cisco-ios-xe-wireless-go #28 and cisco-ios-xe-wireless-go #29 for details.
This CLI supports container images and OS-specific binaries.
docker pull ghcr.io/umatare5/wnc
Or, download the binaries from Releases.
(linux|darwin)_(amd64|arm64) and windows_amd64 are supported.
This CLI requires RESTCONF and HTTPS to be enabled on the Cisco Catalyst 9800 beforehand.
See the Programmability Configuration Guide, Cisco IOS XE 17.15.x – RESTCONF for enabling them.
read -rs WNC_PASSWORD # < your-password printf '%s' "$WNC_PASSWORD" | wnc generate-token -u admin # Output: YWRtaW46eW91ci1wYXNzd29yZA== (admin:your-password)
export WNC_CONTROLLER="wnc1.example.internal" export WNC_ACCESS_TOKEN="YWRtaW46eW91ci1wYXNzd29yZA=="
wnc show overview
Tip
wnc completion <shell> writes the script to stdout, and --help names each shell and the line it needs.
This CLI groups commands by purpose. Each links to a section showing its output.
These commands read a controller and print a table or JSON. See Show commands for details.
| Command | Description |
|---|---|
wnc show overview |
One row per radio, with RF summary across 2.4, 5 and 6 GHz |
wnc show ap |
One row per associated access point |
wnc show ap-join |
One row per access point's join, discovery and DTLS outcome |
wnc show ap-tag |
One row per access point, with assigned and resolved tags |
wnc show client |
One row per associated wireless client |
wnc show wlan |
One row per WLAN and its bound policy profile |
wnc show policy-tag |
One row per policy tag and the WLANs it binds |
wnc show site-tag |
One row per site tag and the profiles it names |
wnc show rf-tag |
One row per RF tag and its per-band RF profiles |
These commands act on a controller in order. See Action commands for details.
| Command | Description |
|---|---|
wnc reset ap |
Restart one access point |
wnc reset capwap |
Reset one access point's controller session |
wnc (enable|disable) (ap|radio) |
Enable or disable one access point or one radio |
wnc set (policy|site|rf)-tag |
Create or update one tag on a controller |
wnc delete (policy|site|rf)-tag |
Delete one tag from a controller |
wnc deauth |
Deauthenticate one client by MAC or username |
These commands stand outside both groups for specific reasons. See Other commands for details.
| Command | Description |
|---|---|
wnc generate-token |
Generate the Basic auth token for a controller account |
wnc save-config |
Save the running configuration to the startup configuration |
--help lists commands and flags. See Help for all transcripts except completion.
This CLI reads its settings from flags, environment variables and a config file. See Customization for the details.
Both pages below are written for a contributor rather than an operator.
See CONTRIBUTING.md for the development setup, the test conventions and the release steps.
MIT. The binary statically links MIT and BSD 3-Clause dependencies, so their notices are reproduced in NOTICE.
LICENSE ships beside it in every release archive and container image.
Owner
Contributors
Categories
NetworkingToolsProducts
Catalyst Access PointsProgramming Languages
GoLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community