These commands stand outside both other groups.
Prints the Basic auth token every other command needs.
wnc generate-token -u admin -p 'test-token-123'YWRtaW46dGVzdC10b2tlbi0xMjM=
Case 1: Pipe the password, keeping it out of history and the process list
read -rs WNC_PASSWORD
export WNC_ACCESS_TOKEN="$(printf '%s' "$WNC_PASSWORD" | wnc generate-token -u admin)"[!TIP] A configuration file at mode
0600keeps it out of the environment too, whichSECURITY.mdsets out.
Copy the controller's running configuration to its startup configuration.
wnc save-configSave the running configuration of WNC1? Every change on the controller is persisted, including changes this CLI did not make. [y/N]: y
WNC1: running configuration saved
Case 1: Write a tag and make it survive a reload
wnc set rf-tag --name test-inside --profile-5ghz test-rf-profile03 --yes
wnc save-config --yesCase 2: Check which controller would be saved without saving it
wnc --dry-run save-config -c 192.168.0.1Expected result:
192.168.0.1: would save the running configuration
Case 3: Save every controller in a file, one at a time
for host in 192.168.0.1 192.168.0.2 192.168.0.3; do
wnc save-config -c "$host" --yes
done