xref: /freebsd/usr.sbin/jls/jls.8 (revision 5837aafd139210849100116c6da16b65c1ab902b)
1ebf5d9bcSMike Barcroft.\"
2ebf5d9bcSMike Barcroft.\" Copyright (c) 2003 Mike Barcroft <mike@FreeBSD.org>
3ebf5d9bcSMike Barcroft.\" All rights reserved.
4ebf5d9bcSMike Barcroft.\"
5ebf5d9bcSMike Barcroft.\" Redistribution and use in source and binary forms, with or without
6ebf5d9bcSMike Barcroft.\" modification, are permitted provided that the following conditions
7ebf5d9bcSMike Barcroft.\" are met:
8ebf5d9bcSMike Barcroft.\" 1. Redistributions of source code must retain the above copyright
9ebf5d9bcSMike Barcroft.\"    notice, this list of conditions and the following disclaimer.
10ebf5d9bcSMike Barcroft.\" 2. Redistributions in binary form must reproduce the above copyright
11ebf5d9bcSMike Barcroft.\"    notice, this list of conditions and the following disclaimer in the
12ebf5d9bcSMike Barcroft.\"    documentation and/or other materials provided with the distribution.
13ebf5d9bcSMike Barcroft.\"
14ebf5d9bcSMike Barcroft.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15ebf5d9bcSMike Barcroft.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16ebf5d9bcSMike Barcroft.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17ebf5d9bcSMike Barcroft.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18ebf5d9bcSMike Barcroft.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19ebf5d9bcSMike Barcroft.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20ebf5d9bcSMike Barcroft.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21ebf5d9bcSMike Barcroft.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22ebf5d9bcSMike Barcroft.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23ebf5d9bcSMike Barcroft.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24ebf5d9bcSMike Barcroft.\" SUCH DAMAGE.
25ebf5d9bcSMike Barcroft.\"
26ebf5d9bcSMike Barcroft.\" $FreeBSD$
27ebf5d9bcSMike Barcroft.\"
2875f75375SDag-Erling Smørgrav.Dd July 20, 2012
29ebf5d9bcSMike Barcroft.Dt JLS 8
30ebf5d9bcSMike Barcroft.Os
31ebf5d9bcSMike Barcroft.Sh NAME
32ebf5d9bcSMike Barcroft.Nm jls
33413628a7SBjoern A. Zeeb.Nd "list jails"
34ebf5d9bcSMike Barcroft.Sh SYNOPSIS
35ebf5d9bcSMike Barcroft.Nm
36cbbaf9b2SCraig Rodrigues.Op Fl -libxo
3775f75375SDag-Erling Smørgrav.Op Fl dhNnqsv
3873d0971bSJamie Gritton.Op Fl j Ar jail
3973d0971bSJamie Gritton.Op Ar parameter ...
40ebf5d9bcSMike Barcroft.Sh DESCRIPTION
41ebf5d9bcSMike BarcroftThe
42ebf5d9bcSMike Barcroft.Nm
4373d0971bSJamie Grittonutility lists all active jails, or the specified jail.
4473d0971bSJamie GrittonEach jail is represented by one row which contains space-separated values of
4573d0971bSJamie Grittonthe listed
4673d0971bSJamie Gritton.Ar parameters ,
4773d0971bSJamie Grittonincluding the pseudo-parameter
4873d0971bSJamie Gritton.Va all
4973d0971bSJamie Grittonwhich will show all available jail parameters.
5073d0971bSJamie GrittonA list of available parameters can be retrieved via
5173d0971bSJamie Gritton.Dq Nm sysctl Fl d Va security.jail.param .
5273d0971bSJamie GrittonSee
5373d0971bSJamie Gritton.Xr jail 8
5473d0971bSJamie Grittonfor a description of some core parameters.
55413628a7SBjoern A. Zeeb.Pp
5673d0971bSJamie GrittonIf no
5773d0971bSJamie Gritton.Ar parameters
584d4d8879SJamie Grittonor any of the options
594d4d8879SJamie Gritton.Fl hns
6073d0971bSJamie Grittonare given, the following four columns will be printed:
6173d0971bSJamie Grittonjail identifier (jid), IP address (ip4.addr), hostname (host.hostname),
6273d0971bSJamie Grittonand path (path).
6373d0971bSJamie Gritton.Pp
6473d0971bSJamie GrittonThe following options are available:
6573d0971bSJamie Gritton.Bl -tag -width indent
66cbbaf9b2SCraig Rodrigues.It Fl -libxo
67cbbaf9b2SCraig RodriguesGenerate output via
68cbbaf9b2SCraig Rodrigues.Xr libxo 3
69cbbaf9b2SCraig Rodriguesin a selection of different human and machine readable formats.
70cbbaf9b2SCraig RodriguesSee
71cbbaf9b2SCraig Rodrigues.Xr xo_parse_args 3
72cbbaf9b2SCraig Rodriguesfor details on command line arguments.
7373d0971bSJamie Gritton.It Fl d
7473d0971bSJamie GrittonList
7573d0971bSJamie Gritton.Va dying
7673d0971bSJamie Grittonas well as active jails.
7773d0971bSJamie Gritton.It Fl h
7873d0971bSJamie GrittonPrint a header line containing the parameters listed.
794d4d8879SJamie GrittonIf no parameters are given on the command line,
804d4d8879SJamie Gritton.Va all
814d4d8879SJamie Grittonis assumed.
8275f75375SDag-Erling Smørgrav.It Fl N
8375f75375SDag-Erling SmørgravIn the standard display mode, print each jail's name instead of its
8475f75375SDag-Erling Smørgravnumeric ID.
8575f75375SDag-Erling SmørgravIf the jail does not have a name, the numeric ID is printed instead.
8673d0971bSJamie Gritton.It Fl n
8773d0971bSJamie GrittonPrint parameters in
8873d0971bSJamie Gritton.Dq name=value
8973d0971bSJamie Grittonformat, where each parameter is preceded by its name.
904d4d8879SJamie GrittonIf no parameters are given on the command line,
914d4d8879SJamie Gritton.Va all
924d4d8879SJamie Grittonis assumed.
9373d0971bSJamie Gritton.It Fl q
9473d0971bSJamie GrittonPut quotes around parameters if they contain spaces or quotes, or are
9573d0971bSJamie Grittonthe empty string.
964d4d8879SJamie Gritton.It Fl s
9773d0971bSJamie GrittonPrint parameters suitable for passing to
9873d0971bSJamie Gritton.Xr jail 8 ,
9973d0971bSJamie Grittonskipping read-only and unused parameters.
10073d0971bSJamie GrittonImplies
10173d0971bSJamie Gritton.Fl nq .
102413628a7SBjoern A. Zeeb.It Fl v
103b300bd47SJamie GrittonExtend the standard display with a multiple-line summary per jail,
104b300bd47SJamie Grittoncontaining the following parameters:
10573d0971bSJamie Grittonjail identifier (jid), hostname (host.hostname), path (path),
10673d0971bSJamie Grittonjail name (name), jail state (dying), cpuset ID (cpuset),
10773d0971bSJamie GrittonIP address(es) (ip4.addr and ip6.addr).
10873d0971bSJamie Gritton.It Fl j Ar jail
10973d0971bSJamie GrittonThe jid or name of the
11073d0971bSJamie Gritton.Ar jail
11173d0971bSJamie Grittonto list.
11273d0971bSJamie GrittonWithout this option, all active jails will be listed.
113413628a7SBjoern A. Zeeb.El
114ebf5d9bcSMike Barcroft.Sh SEE ALSO
11573d0971bSJamie Gritton.Xr jail_get 2 ,
116cbbaf9b2SCraig Rodrigues.Xr libxo 3 ,
117*5837aafdSJoel Dahl.Xr xo_parse_args 3 ,
118*5837aafdSJoel Dahl.Xr jail 8 ,
119*5837aafdSJoel Dahl.Xr jexec 8
120ebf5d9bcSMike Barcroft.Sh HISTORY
121ebf5d9bcSMike BarcroftThe
122ebf5d9bcSMike Barcroft.Nm
123ebf5d9bcSMike Barcroftutility was added in
124ebf5d9bcSMike Barcroft.Fx 5.1 .
12573d0971bSJamie GrittonExtensible jail parameters were introduced in
12673d0971bSJamie Gritton.Fx 8.0 .
127cbbaf9b2SCraig Rodrigueslibxo support was added in
128cbbaf9b2SCraig Rodrigues.Fx 11.0 .
129