3 |
@c See file radius.texi for copying conditions. |
@c See file radius.texi for copying conditions. |
4 |
@comment ******************************************************************* |
@comment ******************************************************************* |
5 |
@node Radlast, Radzap, Radwho, Utility Programs |
@node Radlast, Radzap, Radwho, Utility Programs |
6 |
@section Radlast |
@section @command{radlast} |
7 |
@pindex radlast |
@pindex radlast |
8 |
|
|
9 |
The @command{radlast} utility lists sessions of specified users, @NAS{}es, |
The @command{radlast} utility lists sessions of specified users, @NAS{}es, |
10 |
@NAS{} ports and hosts, in reverse time order. By default, each line of output |
@NAS{} ports, and hosts, in reverse time order. By default, each line of output |
11 |
contains the login name, @NAS{} short name and port number from where the |
contains the login name, the @NAS{} short name and port number from where the |
12 |
session was conducted, host @IP{} or name, the start and stop |
session was conducted, the host IP or name, the start and stop |
13 |
times for the session, and the duration of the session. If the session |
times for the session, and the duration of the session. If the session |
14 |
is still continuing, @command{radlast} will so indicate. |
is still continuing, @command{radlast} will so indicate. |
15 |
|
|
16 |
When specified the @option{-l} option, @command{radlast} produces long |
When the @option{-l} option is specified, @command{radlast} produces long |
17 |
output. It includes following fields: |
output. It includes following fields: |
18 |
|
|
19 |
@itemize @bullet |
@itemize @bullet |
37 |
|
|
38 |
@comment ******************************************************************* |
@comment ******************************************************************* |
39 |
@node radlast options |
@node radlast options |
40 |
@subsection Radlast Command Line Options |
@subsection @command{radlast} Command Line Options |
41 |
@pindex @command{radlast}, options |
@pindex @command{radlast}, options |
42 |
|
|
43 |
Use following command line options to control the behavior of |
Use following command line options to control the behavior of the |
44 |
@command{radlast} utility: |
@command{radlast} utility: |
45 |
|
|
46 |
@table @option |
@table @option |
47 |
@item -@var{number} |
@item -@var{number} |
48 |
@itemx -c @var{number} |
@itemx -c @var{number} |
49 |
@itemx --count @var{number} |
@itemx --count @var{number} |
50 |
When given this option @command{radlast} will output at most this many |
When given this option, @command{radlast} will output at most this many |
51 |
lines of information. |
lines of information. |
52 |
|
|
53 |
@item -f |
@item -f |
57 |
@item -h @var{hostname} |
@item -h @var{hostname} |
58 |
@itemx --host @var{hostname} |
@itemx --host @var{hostname} |
59 |
Report the logins from given host. Host can be either a name or a |
Report the logins from given host. Host can be either a name or a |
60 |
"dotted quad" internet address. |
dotted-quad Internet address. |
61 |
|
|
62 |
@item -n @var{shortname} |
@item -n @var{shortname} |
63 |
@itemx --nas @var{shortname} |
@itemx --nas @var{shortname} |
64 |
Report the logins from given Network Access Server (@NAS{}). |
Report the logins from the given @NAS{}. |
65 |
|
|
66 |
@item -l |
@item -l |
67 |
@itemx --long-format |
@itemx --long-format |
68 |
"Long" output format. Report all the information stored in |
Long output format. Report all the information stored in |
69 |
@file{radwtmp} file. |
@file{radwtmp} file. |
70 |
|
|
71 |
@item -p @var{number} |
@item -p @var{number} |
72 |
@itemx --port @var{number} |
@itemx --port @var{number} |
73 |
Report the logins on a given port. The port may be specified either fully or |
Report the logins on a given port. The port may be specified either fully or |
74 |
abbreviated, e.g. @code{radlast -p 3} or @code{radlast -p S03}. |
abbreviated, e.g. @code{radlast -p S03} or @code{radlast -p 3}. |
75 |
|
|
76 |
@item -s |
@item -s |
77 |
@itemx --show-seconds |
@itemx --show-seconds |
78 |
Report the duration of the login session in seconds instead of the |
Report the duration of the login session in seconds instead of the |
79 |
default days, hours and minutes. |
default days, hours, and minutes. |
80 |
|
|
81 |
@item -t |
@item -t |
82 |
The same as @option{-p}. This flag is provided for compatibility with last(1). |
The same as @option{-p}. This flag is provided for compatibility with |
83 |
|
@command{last(1)}. |
84 |
|
|
85 |
@item -w |
@item -w |
86 |
@itemx --wide |
@itemx --wide |
89 |
|
|
90 |
@end table |
@end table |
91 |
|
|
92 |
If multiple arguments are given, the logical OR operation between them |
If multiple arguments are given, the logical @sc{OR} operation between them |
93 |
is assumed, i.e. the information selected by each argument |
is assumed, i.e., the information selected by each argument |
94 |
is printed. This, however, does not apply to @option{-c} option. This option is |
is printed. This, however, does not apply to the @option{-c} |
95 |
always combined with the rest of command line by logical AND. |
option. That option is |
96 |
|
always combined with the rest of command line by logical @sc{AND}. |
97 |
|
|
98 |
The pseudo-user @samp{~reboot} logs in on every reboot of network access |
The pseudo-user @samp{~reboot} logs in on every reboot of the network access |
99 |
server. |
server. |
100 |
|
|
101 |
If @command{radlast} is interrupted, it indicates to what date the search |
If @command{radlast} is interrupted, it indicates to what date the search |
102 |
was progressed. |
had progressed. |