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