|
Lines 24-38
Link Here
|
| 24 |
.\" |
24 |
.\" |
| 25 |
.\" $FreeBSD$ |
25 |
.\" $FreeBSD$ |
| 26 |
.\" |
26 |
.\" |
| 27 |
.Dd June 16, 2005 |
27 |
.Dd November 20, 2016 |
| 28 |
.Dt WPA_CLI 8 |
28 |
.Dt WPA_CLI 8 |
| 29 |
.Os |
29 |
.Os |
| 30 |
.Sh NAME |
30 |
.Sh NAME |
| 31 |
.Nm wpa_cli |
31 |
.Nm wpa_cli |
| 32 |
.Nd "text-based frontend program for interacting with wpa_supplicant" |
32 |
.Nd "text-based frontend program for interacting with wpa_supplicant" |
| 33 |
.Sh SYNOPSIS |
33 |
.Sh SYNOPSIS |
| 34 |
.Nm |
34 |
.Nm wpa_cli |
| 35 |
.Op Ar commands |
35 |
.Op Fl p Ar path_to_ctrl_sockets |
|
|
36 |
.Op Fl i Ar ifname |
| 37 |
.Op Fl hvB |
| 38 |
.Op Fl a Ar action_file |
| 39 |
.Op Fl P Ar pid_file |
| 40 |
.Op Fl g Ar global_ctrl |
| 41 |
.Op Fl G Ar ping_interval |
| 42 |
.Ar command ... |
| 36 |
.Sh DESCRIPTION |
43 |
.Sh DESCRIPTION |
| 37 |
The |
44 |
The |
| 38 |
.Nm |
45 |
.Nm |
|
Lines 144-169
Link Here
|
| 144 |
CTRL-REQ-OTP-2:Challenge 1235663 needed for SSID foobar |
151 |
CTRL-REQ-OTP-2:Challenge 1235663 needed for SSID foobar |
| 145 |
> otp 2 9876 |
152 |
> otp 2 9876 |
| 146 |
.Ed |
153 |
.Ed |
|
|
154 |
.Sh OPTIONS |
| 155 |
The following options are available: |
| 156 |
.Bl -tag -width indent |
| 157 |
.It Fl p Ar path |
| 158 |
Set the path where control sockets should be found. |
| 159 |
This should match the |
| 160 |
.Ic ctrl_interface |
| 161 |
in |
| 162 |
.Xr wpa_supplicant.conf 5 . |
| 163 |
The default path is |
| 164 |
.Pa /var/run/wpa_supplicant . |
| 165 |
.It Fl i Ar ifname |
| 166 |
The interface that is to be configured. |
| 167 |
By default, the first interface found in the socket path is used. |
| 168 |
.It Fl h |
| 169 |
Show help. |
| 170 |
.It Fl v |
| 171 |
Show version information. |
| 172 |
.It Fl B |
| 173 |
Run the daemon in the background. |
| 174 |
.It Fl a Ar action_file |
| 175 |
Run in daemon mode, executing the action file based on events from |
| 176 |
.Xr wpa_supplicant 8 . |
| 177 |
.It Fl P Ar pid_file |
| 178 |
Set the PID file location. |
| 179 |
.It Fl g Ar global_ctrl |
| 180 |
Use a global control interface to |
| 181 |
.Xr wpa_supplicant 8 |
| 182 |
rather than the default Unix domain sockets. |
| 183 |
.It Fl G Ar ping_interval |
| 184 |
Wait |
| 185 |
.Dq ping_interval |
| 186 |
seconds before sending each ping to |
| 187 |
.Xr wpa_supplicant 8 . |
| 188 |
See |
| 189 |
.Ic ping |
| 190 |
command. |
| 191 |
.It command |
| 192 |
See available commands in the next section. |
| 193 |
.El |
| 147 |
.Sh COMMANDS |
194 |
.Sh COMMANDS |
| 148 |
The following commands may be supplied on the command line |
195 |
The following commands may be supplied on the command line |
| 149 |
or at a prompt when operating interactively. |
196 |
or at a prompt when operating interactively. |
| 150 |
.Bl -tag -width indent |
197 |
.Bl -tag -width indent |
| 151 |
.It Ic status |
198 |
.It Ic status |
| 152 |
Report the current WPA/EAPOL/EAP status for the current interface. |
199 |
Report the current WPA/EAPOL/EAP status for the current interface. |
|
|
200 |
.It Ic ifname |
| 201 |
Shows the current interface name. |
| 202 |
Default interface is the first interface found in the socket path. |
| 203 |
.It Ic ping |
| 204 |
Pings the |
| 205 |
.Xr wpa_supplicant 8 |
| 206 |
utility. |
| 207 |
This command can be used to test the status of |
| 208 |
.Xr wpa_supplicant 8 |
| 209 |
daemon. |
| 153 |
.It Ic mib |
210 |
.It Ic mib |
| 154 |
Report MIB variables (dot1x, dot11) for the current interface. |
211 |
Report MIB variables (dot1x, dot11) for the current interface. |
| 155 |
.It Ic help |
212 |
.It Ic help |
| 156 |
Show usage help. |
213 |
Show usage help. |
| 157 |
.It Ic interface Op Ar ifname |
214 |
.It Ic interface Op Ar ifname |
| 158 |
Show available interfaces and/or set the current interface |
215 |
Show available interfaces and/or set the current interface |
| 159 |
when multiple are available. |
216 |
when multiple interfaces are available. |
| 160 |
.It Ic level Ar debug_level |
217 |
.It Ic level Ar debug_level |
| 161 |
Change the debugging level in |
218 |
Change the debugging level in |
| 162 |
.Xr wpa_supplicant 8 . |
219 |
.Xr wpa_supplicant 8 . |
| 163 |
Larger numbers generate more messages. |
220 |
Larger numbers generate more messages. |
| 164 |
.It Ic license |
221 |
.It Ic license |
| 165 |
Display the full |
222 |
Display the full license for |
| 166 |
license for |
|
|
| 167 |
.Nm . |
223 |
.Nm . |
| 168 |
.It Ic logoff |
224 |
.It Ic logoff |
| 169 |
Send the IEEE 802.1X EAPOL state machine into the |
225 |
Send the IEEE 802.1X EAPOL state machine into the |
|
Lines 192-203
Link Here
|
| 192 |
Configure an identity for an SSID. |
248 |
Configure an identity for an SSID. |
| 193 |
.It Ic password Ar network_id password |
249 |
.It Ic password Ar network_id password |
| 194 |
Configure a password for an SSID. |
250 |
Configure a password for an SSID. |
|
|
251 |
.It Ic new_password Ar network_id password |
| 252 |
Change the password for an SSID. |
| 253 |
.It Ic PIN Ar network_id pin |
| 254 |
Configure a PIN for an SSID. |
| 255 |
.It Ic passphrase Ar network_id passphrase |
| 256 |
Configure a private key passphrase for an SSID. |
| 257 |
.It Ic bssid Ar network_id bssid |
| 258 |
Set a preferred BSSID for an SSID |
| 259 |
.It Ic blacklist Op Ar bssid | clear |
| 260 |
Add a BSSID to the blacklist. |
| 261 |
When invoked without any extra arguments, display the blacklist. |
| 262 |
Specifying |
| 263 |
.Ar clear |
| 264 |
causes |
| 265 |
.Nm |
| 266 |
to clear the blacklist. |
| 267 |
.It Ic list_networks |
| 268 |
List configured networks. |
| 269 |
.It Ic select_network Ar network_id |
| 270 |
Select a network and disable others. |
| 271 |
.It Ic enable_network Ar network_id |
| 272 |
Enable a network. |
| 273 |
.It Ic disable_network Ar network_id |
| 274 |
Disable a network. |
| 275 |
.It Ic add_network |
| 276 |
Add a network. |
| 277 |
.It Ic remove_network Ar network_id |
| 278 |
Remove a network. |
| 279 |
.It Ic set_network Op Ar network_id variable value |
| 280 |
Set network variables. |
| 281 |
Shows a list of variables when run without arguments. |
| 282 |
.It Ic get_network Ar network_id variable |
| 283 |
Get network variables. |
| 284 |
.It Ic disconnect |
| 285 |
Disconnect and wait for reassociate/reconnect command before connecting. |
| 286 |
.It Ic reconnect |
| 287 |
Similar to |
| 288 |
.Ic reassociate , |
| 289 |
but only takes effect if already disconnected. |
| 290 |
.It Ic scan |
| 291 |
Request new BSS scan. |
| 292 |
.It Ic scan_results |
| 293 |
Get the latest BSS scan results. |
| 294 |
This command should be invoked after running a BSS scan with |
| 295 |
.Ic scan . |
| 296 |
.It Ic bss Op Ar idx | bssid |
| 297 |
Get a detailed BSS scan result for network identified by |
| 298 |
.Dq bssid |
| 299 |
or |
| 300 |
.Dq idx . |
| 195 |
.It Ic otp Ar network_id password |
301 |
.It Ic otp Ar network_id password |
| 196 |
Configure a one-time password for an SSID. |
302 |
Configure a one-time password for an SSID. |
| 197 |
.It Ic terminate |
303 |
.It Ic terminate |
| 198 |
Force |
304 |
Force |
| 199 |
.Xr wpa_supplicant 8 |
305 |
.Xr wpa_supplicant 8 |
| 200 |
to terminate. |
306 |
to terminate. |
|
|
307 |
.It Ic interface_add Ar ifname Op Ar confname driver ctrl_interface driver_param bridge_name |
| 308 |
Add a new interface with given parameters. |
| 309 |
.It Ic interface_remove Ar ifname |
| 310 |
Remove the interface. |
| 311 |
.It Ic interface_list |
| 312 |
List available interfaces. |
| 201 |
.It Ic quit |
313 |
.It Ic quit |
| 202 |
Exit |
314 |
Exit |
| 203 |
.Nm . |
315 |
.Nm . |
|
Lines 214-222
Link Here
|
| 214 |
The |
326 |
The |
| 215 |
.Nm |
327 |
.Nm |
| 216 |
utility was written by |
328 |
utility was written by |
| 217 |
.An Jouni Malinen Aq j@w1.fi . |
329 |
.An Jouni Malinen Aq Mt j@w1.fi . |
| 218 |
This manual page is derived from the |
330 |
This manual page is derived from the |
| 219 |
.Pa README |
331 |
.Pa README |
| 220 |
file included in the |
332 |
and |
|
|
333 |
.Pa wpa_cli.c |
| 334 |
files included in the |
| 221 |
.Nm wpa_supplicant |
335 |
.Nm wpa_supplicant |
| 222 |
distribution. |
336 |
distribution. |