~ubuntu-branches/ubuntu/gutsy/wpasupplicant/gutsy

« back to all changes in this revision

Viewing changes to wpa_supplicant/doc/docbook/wpa_cli.8

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2007-08-26 16:06:57 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20070826160657-mxk5ivjjh65ptxlr
Tags: upstream-0.6.0+0.5.8
ImportĀ upstreamĀ versionĀ 0.6.0+0.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\" This manpage has been automatically generated by docbook2man 
2
 
.\" from a DocBook document.  This tool can be found at:
3
 
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
4
 
.\" Please send any bug reports, improvements, comments, patches, 
5
 
.\" etc. to Steve Cheng <steve@ggi-project.org>.
6
 
.TH "WPA_CLI" "8" "28 May 2007" "" ""
7
 
 
8
 
.SH NAME
9
 
wpa_cli \- WPA command line client
10
 
.SH SYNOPSIS
11
 
 
12
 
\fBwpa_cli\fR [ \fB-p \fIpath to ctrl sockets\fB\fR ] [ \fB-i \fIifname\fB\fR ] [ \fB-hvB\fR ] [ \fB-a \fIaction file\fB\fR ] [ \fB-P \fIpid file\fB\fR ] [ \fB\fIcommand ...\fB\fR ]
13
 
 
14
 
.SH "OVERVIEW"
15
 
.PP
16
 
wpa_cli is a text-based frontend program for interacting
17
 
with wpa_supplicant. It is used to query current status, change
18
 
configuration, trigger events, and request interactive user
19
 
input.
20
 
.PP
21
 
wpa_cli can show the current authentication status, selected
22
 
security mode, dot11 and dot1x MIBs, etc. In addition, it can
23
 
configure some variables like EAPOL state machine parameters and
24
 
trigger events like reassociation and IEEE 802.1X
25
 
logoff/logon. wpa_cli provides a user interface to request
26
 
authentication information, like username and password, if these
27
 
are not included in the configuration. This can be used to
28
 
implement, e.g., one-time-passwords or generic token card
29
 
authentication where the authentication is based on a
30
 
challenge-response that uses an external device for generating the
31
 
response.
32
 
.PP
33
 
The control interface of wpa_supplicant can be configured to
34
 
allow non-root user access (ctrl_interface_group in the
35
 
configuration file). This makes it possible to run wpa_cli with a
36
 
normal user account.
37
 
.PP
38
 
wpa_cli supports two modes: interactive and command
39
 
line. Both modes share the same command set and the main
40
 
difference is in interactive mode providing access to unsolicited
41
 
messages (event messages, username/password requests).
42
 
.PP
43
 
Interactive mode is started when wpa_cli is executed without
44
 
including the command as a command line parameter. Commands are
45
 
then entered on the wpa_cli prompt. In command line mode, the same
46
 
commands are entered as command line arguments for wpa_cli.
47
 
.SH "INTERACTIVE AUTHENTICATION PARAMETERS REQUEST"
48
 
.PP
49
 
When wpa_supplicant need authentication parameters, like
50
 
username and password, which are not present in the configuration
51
 
file, it sends a request message to all attached frontend programs,
52
 
e.g., wpa_cli in interactive mode. wpa_cli shows these requests
53
 
with "CTRL-REQ-<type>-<id>:<text>"
54
 
prefix. <type> is IDENTITY, PASSWORD, or OTP
55
 
(one-time-password). <id> is a unique identifier for the
56
 
current network. <text> is description of the request. In
57
 
case of OTP request, it includes the challenge from the
58
 
authentication server.
59
 
.PP
60
 
The reply to these requests can be given with 'identity',
61
 
'password', and 'otp' commands. <id> needs to be copied from the
62
 
the matching request. 'password' and 'otp' commands can be used
63
 
regardless of whether the request was for PASSWORD or OTP. The
64
 
main difference between these two commands is that values given
65
 
with 'password' are remembered as long as wpa_supplicant is
66
 
running whereas values given with 'otp' are used only once and
67
 
then forgotten, i.e., wpa_supplicant will ask frontend for a new
68
 
value for every use. This can be used to implement
69
 
one-time-password lists and generic token card -based
70
 
authentication.
71
 
.PP
72
 
Example request for password and a matching reply:
73
 
.sp
74
 
.RS
75
 
 
76
 
.nf
77
 
CTRL-REQ-PASSWORD-1:Password needed for SSID foobar
78
 
> password 1 mysecretpassword
79
 
.fi
80
 
.RE
81
 
.PP
82
 
Example request for generic token card challenge-response:
83
 
.sp
84
 
.RS
85
 
 
86
 
.nf
87
 
CTRL-REQ-OTP-2:Challenge 1235663 needed for SSID foobar
88
 
> otp 2 9876
89
 
.fi
90
 
.RE
91
 
.SH "COMMAND ARGUMENTS"
92
 
.TP
93
 
\fB-p path\fR
94
 
Change the path where control sockets should
95
 
be found.
96
 
.TP
97
 
\fB-i ifname\fR
98
 
Specify the interface that is being
99
 
configured.  By default, choose the first interface found with
100
 
a control socket in the socket path.
101
 
.TP
102
 
\fB-h\fR
103
 
Help.  Show a usage message.
104
 
.TP
105
 
\fB-v\fR
106
 
Show version information.
107
 
.TP
108
 
\fB-B\fR
109
 
Run as a daemon in the background.
110
 
.TP
111
 
\fB-a file\fR
112
 
Run in daemon mode executing the action file
113
 
based on events from wpa_supplicant.  The specified file will
114
 
be executed with the first argument set to interface name and
115
 
second to "CONNECT" or "DISCONNECT" depending on the event.
116
 
This can be used to execute networking tools required to configure
117
 
the interface.
118
 
 
119
 
Additionally, three environmental variables are available to
120
 
the file: WPA_CTRL_DIR, WPA_ID, and WPA_ID_STR. WPA_CTRL_DIR
121
 
contains the absolute path to the ctrl_interface socket. WPA_ID
122
 
contains the unique network_id identifier assigned to the active
123
 
network, and WPA_ID_STR contains the content of the id_str option.
124
 
.TP
125
 
\fB-P file\fR
126
 
Set the location of the PID
127
 
file.
128
 
.TP
129
 
\fBcommand\fR
130
 
Run a command.  The available commands are
131
 
listed in the next section.
132
 
.SH "COMMANDS"
133
 
.PP
134
 
The following commands are available:
135
 
.TP
136
 
\fBstatus\fR
137
 
get current WPA/EAPOL/EAP status
138
 
.TP
139
 
\fBmib\fR
140
 
get MIB variables (dot1x, dot11)
141
 
.TP
142
 
\fBhelp\fR
143
 
show this usage help
144
 
.TP
145
 
\fBinterface [ifname]\fR
146
 
show interfaces/select interface
147
 
.TP
148
 
\fBlevel <debug level>\fR
149
 
change debug level
150
 
.TP
151
 
\fBlicense\fR
152
 
show full wpa_cli license
153
 
.TP
154
 
\fBlogoff\fR
155
 
IEEE 802.1X EAPOL state machine logoff
156
 
.TP
157
 
\fBlogon\fR
158
 
IEEE 802.1X EAPOL state machine logon
159
 
.TP
160
 
\fBset\fR
161
 
set variables (shows list of variables when run without arguments)
162
 
.TP
163
 
\fBpmksa\fR
164
 
show PMKSA cache
165
 
.TP
166
 
\fBreassociate\fR
167
 
force reassociation
168
 
.TP
169
 
\fBreconfigure\fR
170
 
force wpa_supplicant to re-read its configuration file
171
 
.TP
172
 
\fBpreauthenticate <BSSID>\fR
173
 
force preauthentication
174
 
.TP
175
 
\fBidentity <network id> <identity>\fR
176
 
configure identity for an SSID
177
 
.TP
178
 
\fBpassword <network id> <password>\fR
179
 
configure password for an SSID
180
 
.TP
181
 
\fBpin <network id> <pin>\fR
182
 
configure pin for an SSID
183
 
.TP
184
 
\fBotp <network id> <password>\fR
185
 
configure one-time-password for an SSID
186
 
.TP
187
 
\fBbssid <network id> <BSSID>\fR
188
 
set preferred BSSID for an SSID
189
 
.TP
190
 
\fBlist_networks\fR
191
 
list configured networks
192
 
.TP
193
 
\fBterminate\fR
194
 
terminate \fBwpa_supplicant\fR
195
 
.TP
196
 
\fBquit\fR
197
 
exit wpa_cli
198
 
.SH "SEE ALSO"
199
 
.PP
200
 
\fBwpa_supplicant\fR(8)
201
 
.SH "LEGAL"
202
 
.PP
203
 
wpa_supplicant is copyright (c) 2003-2007,
204
 
Jouni Malinen <j@w1.fi> and
205
 
contributors.
206
 
All Rights Reserved.
207
 
.PP
208
 
This program is dual-licensed under both the GPL version 2
209
 
and BSD license. Either license may be used at your option.