xref: /freebsd/usr.sbin/jls/jls.8 (revision 050570efa79efcc9cf5adeb545f1a679c8dc377b)
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
40The
41.Nm
42utility lists all active jails, or the specified jail.
43Each jail is represented by one row which contains space-separated values of
44the listed
45.Ar parameters ,
46including the pseudo-parameter
47.Va all
48which will show all available jail parameters.
49A list of available parameters can be retrieved via
50.Dq Nm sysctl Fl d Va security.jail.param .
51See
52.Xr jail 8
53for a description of some core parameters.
54.Pp
55If no
56.Ar parameters
57or any of the options
58.Fl hns
59are given, the following four columns will be printed:
60jail identifier (jid), IP address (ip4.addr), hostname (host.hostname),
61and path (path).
62.Pp
63The following options are available:
64.Bl -tag -width indent
65.It Fl d
66List
67.Va dying
68as well as active jails.
69.It Fl h
70Print a header line containing the parameters listed.
71If no parameters are given on the command line,
72.Va all
73is assumed.
74.It Fl n
75Print parameters in
76.Dq name=value
77format, where each parameter is preceded by its name.
78If no parameters are given on the command line,
79.Va all
80is assumed.
81.It Fl q
82Put quotes around parameters if they contain spaces or quotes, or are
83the empty string.
84.It Fl s
85Print parameters suitable for passing to
86.Xr jail 8 ,
87skipping read-only and unused parameters.
88Implies
89.Fl nq .
90.It Fl v
91Print a multiple-line summary per jail, with the following parameters:
92jail identifier (jid), hostname (host.hostname), path (path),
93jail name (name), jail state (dying), cpuset ID (cpuset),
94IP address(es) (ip4.addr and ip6.addr).
95.It Fl j Ar jail
96The jid or name of the
97.Ar jail
98to list.
99Without 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
106The
107.Nm
108utility was added in
109.Fx 5.1 .
110Extensible jail parameters were introduced in
111.Fx 8.0 .
112