]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - usr.sbin/jls/jls.8
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / usr.sbin / jls / jls.8
1 .\"
2 .\" Copyright (c) 2003 Mike Barcroft <mike@FreeBSD.org>
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 .\" SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD$
27 .\"
28 .Dd July 8, 2009
29 .Dt JLS 8
30 .Os
31 .Sh NAME
32 .Nm jls
33 .Nd "list jails"
34 .Sh SYNOPSIS
35 .Nm
36 .Op Fl dhnqsv
37 .Op Fl j Ar jail
38 .Op Ar parameter ...
39 .Sh DESCRIPTION
40 The
41 .Nm
42 utility lists all active jails, or the specified jail.
43 Each jail is represented by one row which contains space-separated values of
44 the listed
45 .Ar parameters ,
46 including the pseudo-parameter
47 .Va all
48 which will show all available jail parameters.
49 A list of available parameters can be retrieved via
50 .Dq Nm sysctl Fl d Va security.jail.param .
51 See
52 .Xr jail 8
53 for a description of some core parameters.
54 .Pp
55 If no
56 .Ar parameters
57 or any of the options
58 .Fl hns
59 are given, the following four columns will be printed:
60 jail identifier (jid), IP address (ip4.addr), hostname (host.hostname),
61 and path (path).
62 .Pp
63 The following options are available:
64 .Bl -tag -width indent
65 .It Fl d
66 List
67 .Va dying
68 as well as active jails.
69 .It Fl h
70 Print a header line containing the parameters listed.
71 If no parameters are given on the command line,
72 .Va all
73 is assumed.
74 .It Fl n
75 Print parameters in
76 .Dq name=value
77 format, where each parameter is preceded by its name.
78 If no parameters are given on the command line,
79 .Va all
80 is assumed.
81 .It Fl q
82 Put quotes around parameters if they contain spaces or quotes, or are
83 the empty string.
84 .It Fl s
85 Print parameters suitable for passing to
86 .Xr jail 8 ,
87 skipping read-only and unused parameters.
88 Implies
89 .Fl nq .
90 .It Fl v
91 Print a multiple-line summary per jail, with the following parameters:
92 jail identifier (jid), hostname (host.hostname), path (path),
93 jail name (name), jail state (dying), cpuset ID (cpuset),
94 IP address(es) (ip4.addr and ip6.addr).
95 .It Fl j Ar jail
96 The jid or name of the
97 .Ar jail
98 to list.
99 Without this option, all active jails will be listed.
100 .El
101 .Sh SEE ALSO
102 .Xr jail_get 2 ,
103 .Xr jail 8 ,
104 .Xr jexec 8
105 .Sh HISTORY
106 The
107 .Nm
108 utility was added in
109 .Fx 5.1 .
110 Extensible jail parameters were introduced in
111 .Fx 8.0 .