1 .\" $NetBSD: wpa_cli.8,v 1.1 2005/10/01 18:50:12 scw Exp $
3 .\" Copyright (c) 2005 Sam Leffler <sam@errno.com>
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" $FreeBSD: /repoman/r/ncvs/src/usr.sbin/wpa/wpa_cli/wpa_cli.8,v 1.2 2005/06/27 06:40:43 ru Exp $
35 .Nd text-based frontend program for interacting with wpa_supplicant
43 is a text-based frontend program for interacting with
44 .Xr wpa_supplicant 8 .
45 It is used to query current status,
49 request interactive user input.
55 current authentication status,
57 mode, dot11 and dot1x MIBs, etc.
60 can configure EAPOL state machine
61 parameters and trigger events such as reassociation
62 and IEEE 802.1X logoff/logon.
67 provides an interface to supply authentication information
68 such as username and password when it is not provided in the
69 .Xr wpa_supplicant.conf 5
71 This can be used, for example, to implement
72 one-time passwords or generic token card
73 authentication where the authentication is based on a
74 challenge-response that uses an external device for generating the
80 supports two modes: interactive and command line.
81 Both modes share the same command set and the main difference
82 is that in interactive mode,
84 provides access to unsolicited messages
85 (event messages, username/password requests).
87 Interactive mode is started when
89 is executed without any parameters on the command line.
90 Commands are then entered from the controlling terminal in
94 In command line mode, the same commands are
95 entered as command line arguments.
97 The control interface of
99 can be configured to allow
100 non-root user access by using the
101 .Va ctrl_interface_group
104 .Xr wpa_supplicant.conf 5
106 This makes it possible to run
108 with a normal user account.
109 .Sh AUTHENTICATION PARAMETERS
112 needs authentication parameters, such as username and password,
113 that are not present in the configuration file, it sends a
114 request message to all attached frontend programs, e.g.,
120 shows these requests with a
121 .Dq Li CTRL-REQ- Ns Ao Ar type Ac Ns Li - Ns Ao Ar id Ac Ns Li : Ns Aq Ar text
125 .Li IDENTITY , PASSWORD ,
130 is a unique identifier for the current network, and
132 is description of the request.
135 (One Time Password) request,
136 it includes the challenge from the authentication server.
140 the needed parameters in response to these requests.
143 .Bd -literal -offset indent
144 CTRL-REQ-PASSWORD-1:Password needed for SSID foobar
145 \*[Gt] password 1 mysecretpassword
147 Example request for generic token card challenge-response:
149 CTRL-REQ-OTP-2:Challenge 1235663 needed for SSID foobar
153 The following commands may be supplied on the command line
154 or at a prompt when operating interactively.
155 .Bl -tag -width indent
157 Report the current WPA/EAPOL/EAP status for the current interface.
159 Report MIB variables (dot1x, dot11) for the current interface.
162 .It Ic interface Op Ar ifname
163 Show available interfaces and/or set the current interface
164 when multiple are available.
165 .It Ic level Ar debug_level
166 Change the debugging level in
167 .Xr wpa_supplicant 8 .
168 Larger numbers generate more messages.
174 Send the IEEE 802.1X EAPOL state machine into the
178 Send the IEEE 802.1X EAPOL state machine into the
181 .It Ic set Op Ar settings
183 When no arguments are supplied, the known variables and their settings
186 Show the contents of the PMKSA cache.
188 Force a reassociation to the current access point.
192 to re-read its configuration file.
193 .It Ic preauthenticate Ar BSSID
194 Force preauthentication of the specified
196 .It Ic identity Ar network_id identity
197 Configure an identity for an SSID.
198 .It Ic password Ar network_id password
199 Configure a password for an SSID.
200 .It Ic otp Ar network_id password
201 Configure a one-time password for an SSID.
211 .Xr wpa_supplicant.conf 5 ,
216 utility first appeared in
221 utility was written by
222 .An Jouni Malinen Aq jkmaline@cc.hut.fi .
223 This manual page is derived from the