The following command-line interface (CLI) commands are available on the Controller’s console. You can reach the console for your Controller by navigating to System > System Control >Device Options, then clicking Device Console.
Determining If the Captive Router Has Been Captured
Use the following command from the Controller’s console to view the remote modem roster. If the Captive router has been captured, its MAC address and local IP address are displayed.
[controller]$ get status/remote_modem/roster/
{
"00:30:44:22:35:e7": {
"ip_address": "169.254.0.18",
"uids": []
}
}Find Which Router Is Configured to Broadcast an SSID
Use the following command from the Controller’s console to find which router (captive, controller, or both) is broadcasting a given SSID:
[controller]$ get config/wlan/radio/<radio_index>/bss/<bss_index>/broadcast_device
The response will be one of the following: controller, captive, or both.
The Controller pushes this setting to the Captive router when the latter is captured, or when the value changes.
Find Which Router Connects to a Remote AP
Use the following command from the Controller’s console to find which router (captive or controller) will connect to a given remote AP:
[controller]$ get config/wwan/radio/<radio_index>/profiles/<bss_index>/connecting_device
The Controller pushes this setting to the Captive router when the latter is captured, or when the value changes.
Trigger a Scan on the Captive Router
Use the following command from the Controller’s console to trigger a survey from a radio on the Captive router. Note that this command with fetch the Captive router’s scan survey but will not display that data.
[controller]$ set control/wlan/remote/radio/<radio_index>/fetch_survey true
View the Captive Router's Scan Survey
Issue the following command from the Controller’s console to display the Captive router’s scan survey.
Note
If there are a large number of access points or client devices in the Captive router’s area, this scan survey can contain a large amount of data.
[controller]$ get status/wlan/remote/radio/<radio_index>/survey
Overloaded captive_modem Console Command
The existing Controller-side console command captive_modem has been overloaded to work with Captive Wi-Fi as well.
[controller]]$ help captive_modem
Usage: captive_modem ( list [modems] |
get MAC PATH |
set MAC PATH VALUE |
mget (UID|global) MAC KEY |
mset (UID|global) MAC KEY VALUE |
reset MAC |
factory_reset MAC )
Options:
list: Display a list of attached captive modem MAC addresses.
get: Get the value for a config store item or modem value.
set: Set the value for a config store item or modem value.
mget: (modem get) Get a value from the modem dictionary.
mset: (modem set) Set a value in the modem dictionary.
reset: Reset the captive device.
factory_reset: Reset the captive device configuration to factory defaults.
Parameters:
MAC: MAC address of the captive device. (format HH:HH:HH:HH:HH:HH or HHHHHHHHHHHH)
PATH: Full config store path for the value to get or set.
KEY: Modem dictionary key name to get or set.
VALUE: New value to set. Modem values are always interpreted as strings.
UID: The 8 character UID of the captive modem.
global: The word 'global' is used to mget or mset to access the global modem dictionary.
modems: The word 'modems' is used to list the all attached modem UIDs (and MAC addresses).
Examples:
Get the temperature from the captive modem config store:
>>captive_modem get 01:23:45:67:89:ab status/system/temperature
Set the reboot in the captive device config store:
>>captive_modem set 01:23:45:67:89:ab control/system/reboot 1
Get the board ID from the captive device global modem dictionary:
>>captive_modem mget global 01:23:45:67:89:ab "GLB_BRD_ID"
Get the model from the specified captive modem dictionary:
>>captive_modem mget 1a2b3c4d 01:23:45:67:89:ab "MFG_MDL"Example #1: Use the captive_modem command to list the MAC address of the Captive router
[controller]$ captive_modem list Captive modem addresses: 00:30:44:67:51:b5
Note that you can get the same information using the following command:
[controller]$ get status/remote_modem/roster/
See above for more details about the roster status node.
Example #2: Use the captive_modem command to show the channel of a Captive router’s radio
[controller]$ captive_modem get 00:30:44:67:51:b5 status/wlan/radio/0/channel 11 [controller]$ captive_modem get 00:30:44:67:51:b5 status/wlan/radio/1/channel 64
Overloaded wscan Console Command
The existing Controller-side console command wscan has been overloaded to retrieve and display scan surveys from radios on both the local (Controller) side and the remote (Captive) side.
[controller]$ help wscan
Extended nl80211 wireless scan command
Usage: wscan [OPTIONS...]
-a active: Request an active scan.
No arguments are required for this option.
Dependency: Active scan requires a list of SSID's to operate on.
See the '-s' command for how to specify an SSID list.
Default: NL80211 scans are passive by default.
-c [LIST] channels: A list of channels to scan.
Enter either a comma-delimited list (e.g. "1,2,3") or a range (e.g. "1-3")
Default: Scans all channels in the current regulatory domain for the given radios.
-r [LIST] radios: A list of radio indices (zero-based) to scan.
Enter either a comma-delimited list (e.g. "0,1,2") or a range (e.g. "0-2")
Default: Scans all enabled radios.
-s [LIST] ssids: A list of SSIDs to probe and display. Only probes if the given SSID is hidden.
Enter a comma-delimited list (no space after a comma). Supports SSIDs containing spaces.
Default: Scans for all non-hidden SSIDs in range. Displays all SSIDs found.
-l local: Scan local radios only.
No arguments are required for this option.
Default: Both local and remote radios are scanned by default.
-m remote: Scan remote radios only.
No arguments are required for this option.
Default: Both local and remote radios are scanned by default.
Example #1: Use the wscan command to view the scan survey for a Captive router’s radio
[controller]$ wscan -m -r 0
Performing wireless survey
Scanning on remote Wi-Fi radios
Survey on remote radio 0
SSID BSSID RSSI CHANNEL MODE SECURITY
E100-0fa 00:30:44:48:f0:fb -42.00 1 b/g/n wpa2psk/aes
R1900-cd4 00:30:44:69:cc:d5 -34.00 1 b/g/n/ax wpa2psk/aes
IBR1700-1ee 00:30:44:3c:31:ef -56.00 11 b/g/n wpa2psk/aes
IBR900-485 00:30:44:39:44:86 -45.00 11 b/g/n wpa2psk/aes
R1900-247 00:30:44:63:f2:48 -39.00 11 b/g/n/ax wpa2psk/aes
E300-2ec 00:30:44:5e:b2:ee -58.00 11 b/g/n/ax wpa2psk/aes
E3000-08a 00:30:44:44:cc:cd -6.00 11 b/g/n/ax wpa2psk/aes Note that you can get the same information in its raw form using:
[controller] get status/wlan/remote/radio/0/survey