WPA_CLI(8) | MidnightBSD System Manager's Manual | WPA_CLI(8) |
wpa_cli
—
text-based frontend program for interacting with
wpa_supplicant
wpa_cli |
[-p path_to_ctrl_sockets]
[-i ifname]
[-hvB ] [-a
action_file] [-P
pid_file] [-g
global_ctrl] [-G
ping_interval] command
... |
The wpa_cli
utility is a text-based
frontend program for interacting with
wpa_supplicant(8).
It is used to query current status, change configuration, trigger events,
and request interactive user input.
The wpa_cli
utility can show the current
authentication status, selected security mode, dot11 and dot1x MIBs, etc. In
addition, wpa_cli
can configure EAPOL state machine
parameters and trigger events such as reassociation and IEEE 802.1X
logoff/logon.
The wpa_cli
utility provides an interface
to supply authentication information such as username and password when it
is not provided in the
wpa_supplicant.conf(5)
configuration file. This can be used, for example, to implement one-time
passwords or generic token card authentication where the authentication is
based on a challenge-response that uses an external device for generating
the response.
The wpa_cli
utility supports two modes:
interactive and command line. Both modes share the same command set and the
main difference is in interactive mode providing access to unsolicited
messages (event messages, username/password requests).
Interactive mode is started when wpa_cli
is executed without any parameters on the command line. Commands are then
entered from the controlling terminal in response to the
wpa_cli
prompt. In command line mode, the same
commands are entered as command line arguments.
The control interface of
wpa_supplicant(8)
can be configured to allow non-root user access by using the
ctrl_interface_group parameter in the
wpa_supplicant.conf(5)
configuration file. This makes it possible to run
wpa_cli
with a normal user account.
When
wpa_supplicant(8)
needs authentication parameters, such as username and password, that are not
present in the configuration file, it sends a request message to all
attached frontend programs, e.g., wpa_cli
in
interactive mode. The wpa_cli
utility shows these
requests with a
“CTRL-REQ-
⟨type⟩-
⟨id⟩:⟨text⟩”
prefix, where ⟨type⟩ is
IDENTITY
, PASSWORD
, or
OTP
(One-Time Password),
⟨id⟩ is a unique identifier for the
current network, ⟨text⟩ is a description
of the request. In the case of an OTP
(One-Time
Password) request, it includes the challenge from the authentication
server.
A user must supply wpa_supplicant(8) the needed parameters in response to these requests.
For example,
CTRL-REQ-PASSWORD-1:Password needed for SSID foobar > password 1 mysecretpassword Example request for generic token card challenge-response: CTRL-REQ-OTP-2:Challenge 1235663 needed for SSID foobar > otp 2 9876
These options are available:
-p
pathctrl_interface
in
wpa_supplicant.conf(5).
The default path is /var/run/wpa_supplicant.-i
ifname-h
-v
-B
-a
action_file-P
pid_file-g
global_ctrl-G
ping_intervalping
command.These commands can be supplied on the command line or at a prompt when operating interactively.
status
ifname
ping
mib
help
interface
[ifname]level
debug_levellicense
wpa_cli
.logoff
logon
set
[settings]pmksa
reassociate
reconfigure
preauthenticate
BSSIDidentity
network_id identitypassword
network_id passwordnew_password
network_id passwordPIN
network_id pinpassphrase
network_id passphrasebssid
network_id bssidblacklist
[bssid | clear]wpa_cli
to clear the blacklist.list_networks
select_network
network_idenable_network
network_iddisable_network
network_idadd_network
remove_network
network_idset_network
[network_id variable value]get_network
network_id variabledisconnect
reconnect
reassociate
, but only takes effect if
already disconnected.scan
scan_results
scan
.bss
[idx | bssid]otp
network_id passwordterminate
interface_add
ifname [confname driver ctrl_interface
driver_param bridge_name]interface_remove
ifnameinterface_list
quit
wpa_cli
.The wpa_cli
utility first appeared in
FreeBSD 6.0.
The wpa_cli
utility was written by
Jouni Malinen
<j@w1.fi>. This manual page is
derived from the README and
wpa_cli.c files included in the
wpa_supplicant
distribution.
January 24, 2017 | midnightbsd-3.1 |