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.\" 2675f75375SDag-Erling Smørgrav.Dd July 20, 2012 27ebf5d9bcSMike Barcroft.Dt JLS 8 28ebf5d9bcSMike Barcroft.Os 29ebf5d9bcSMike Barcroft.Sh NAME 30ebf5d9bcSMike Barcroft.Nm jls 31413628a7SBjoern A. Zeeb.Nd "list jails" 32ebf5d9bcSMike Barcroft.Sh SYNOPSIS 33ebf5d9bcSMike Barcroft.Nm 34cbbaf9b2SCraig Rodrigues.Op Fl -libxo 3575f75375SDag-Erling Smørgrav.Op Fl dhNnqsv 3673d0971bSJamie Gritton.Op Fl j Ar jail 3773d0971bSJamie Gritton.Op Ar parameter ... 38ebf5d9bcSMike Barcroft.Sh DESCRIPTION 39ebf5d9bcSMike BarcroftThe 40ebf5d9bcSMike Barcroft.Nm 4173d0971bSJamie Grittonutility lists all active jails, or the specified jail. 4273d0971bSJamie GrittonEach jail is represented by one row which contains space-separated values of 4373d0971bSJamie Grittonthe listed 4473d0971bSJamie Gritton.Ar parameters , 4573d0971bSJamie Grittonincluding the pseudo-parameter 4673d0971bSJamie Gritton.Va all 4773d0971bSJamie Grittonwhich will show all available jail parameters. 4873d0971bSJamie GrittonA list of available parameters can be retrieved via 4973d0971bSJamie Gritton.Dq Nm sysctl Fl d Va security.jail.param . 5073d0971bSJamie GrittonSee 5173d0971bSJamie Gritton.Xr jail 8 5273d0971bSJamie Grittonfor a description of some core parameters. 53413628a7SBjoern A. Zeeb.Pp 5473d0971bSJamie GrittonIf no 5573d0971bSJamie Gritton.Ar parameters 564d4d8879SJamie Grittonor any of the options 574d4d8879SJamie Gritton.Fl hns 5873d0971bSJamie Grittonare given, the following four columns will be printed: 5973d0971bSJamie Grittonjail identifier (jid), IP address (ip4.addr), hostname (host.hostname), 6073d0971bSJamie Grittonand path (path). 6173d0971bSJamie Gritton.Pp 6273d0971bSJamie GrittonThe following options are available: 6373d0971bSJamie Gritton.Bl -tag -width indent 64cbbaf9b2SCraig Rodrigues.It Fl -libxo 65cbbaf9b2SCraig RodriguesGenerate output via 66cbbaf9b2SCraig Rodrigues.Xr libxo 3 67cbbaf9b2SCraig Rodriguesin a selection of different human and machine readable formats. 68cbbaf9b2SCraig RodriguesSee 69cbbaf9b2SCraig Rodrigues.Xr xo_parse_args 3 70cbbaf9b2SCraig Rodriguesfor details on command line arguments. 7173d0971bSJamie Gritton.It Fl d 7273d0971bSJamie GrittonList 7373d0971bSJamie Gritton.Va dying 7473d0971bSJamie Grittonas well as active jails. 7573d0971bSJamie Gritton.It Fl h 7673d0971bSJamie GrittonPrint a header line containing the parameters listed. 774d4d8879SJamie GrittonIf no parameters are given on the command line, 784d4d8879SJamie Gritton.Va all 794d4d8879SJamie Grittonis assumed. 8075f75375SDag-Erling Smørgrav.It Fl N 8175f75375SDag-Erling SmørgravIn the standard display mode, print each jail's name instead of its 8275f75375SDag-Erling Smørgravnumeric ID. 8375f75375SDag-Erling SmørgravIf the jail does not have a name, the numeric ID is printed instead. 8473d0971bSJamie Gritton.It Fl n 8573d0971bSJamie GrittonPrint parameters in 8673d0971bSJamie Gritton.Dq name=value 8773d0971bSJamie Grittonformat, where each parameter is preceded by its name. 884d4d8879SJamie GrittonIf no parameters are given on the command line, 894d4d8879SJamie Gritton.Va all 904d4d8879SJamie Grittonis assumed. 9173d0971bSJamie Gritton.It Fl q 9273d0971bSJamie GrittonPut quotes around parameters if they contain spaces or quotes, or are 9373d0971bSJamie Grittonthe empty string. 944d4d8879SJamie Gritton.It Fl s 9573d0971bSJamie GrittonPrint parameters suitable for passing to 9673d0971bSJamie Gritton.Xr jail 8 , 9773d0971bSJamie Grittonskipping read-only and unused parameters. 9873d0971bSJamie GrittonImplies 9973d0971bSJamie Gritton.Fl nq . 100413628a7SBjoern A. Zeeb.It Fl v 101b300bd47SJamie GrittonExtend the standard display with a multiple-line summary per jail, 102b300bd47SJamie Grittoncontaining the following parameters: 10373d0971bSJamie Grittonjail identifier (jid), hostname (host.hostname), path (path), 10473d0971bSJamie Grittonjail name (name), jail state (dying), cpuset ID (cpuset), 10573d0971bSJamie GrittonIP address(es) (ip4.addr and ip6.addr). 10673d0971bSJamie Gritton.It Fl j Ar jail 10773d0971bSJamie GrittonThe jid or name of the 10873d0971bSJamie Gritton.Ar jail 10973d0971bSJamie Grittonto list. 11073d0971bSJamie GrittonWithout this option, all active jails will be listed. 111413628a7SBjoern A. Zeeb.El 112ebf5d9bcSMike Barcroft.Sh SEE ALSO 11373d0971bSJamie Gritton.Xr jail_get 2 , 114cbbaf9b2SCraig Rodrigues.Xr libxo 3 , 115*5837aafdSJoel Dahl.Xr xo_parse_args 3 , 116*5837aafdSJoel Dahl.Xr jail 8 , 117*5837aafdSJoel Dahl.Xr jexec 8 118ebf5d9bcSMike Barcroft.Sh HISTORY 119ebf5d9bcSMike BarcroftThe 120ebf5d9bcSMike Barcroft.Nm 121ebf5d9bcSMike Barcroftutility was added in 122ebf5d9bcSMike Barcroft.Fx 5.1 . 12373d0971bSJamie GrittonExtensible jail parameters were introduced in 12473d0971bSJamie Gritton.Fx 8.0 . 125cbbaf9b2SCraig Rodrigueslibxo support was added in 126cbbaf9b2SCraig Rodrigues.Fx 11.0 . 127