3 lxc: linux Container library
5 (C) Copyright IBM Corp. 2007, 2008
8 Daniel Lezcano <daniel.lezcano at free.fr>
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 <!DOCTYPE refentry PUBLIC @docdtd@ [
28 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
29 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
37 <refentrytitle>lxc-monitor</refentrytitle>
38 <manvolnum>1</manvolnum>
42 <refname>lxc-monitor</refname>
45 monitor the container state
51 <command>lxc-monitor</command>
52 <arg choice="opt">-n <replaceable>name</replaceable></arg>
53 <arg choice="opt">-Q <replaceable>name</replaceable></arg>
58 <title>Description</title>
61 <command>lxc-monitor</command> monitors the state of containers. The
62 <replaceable>name</replaceable> argument may be used to specify
63 which containers to monitor. It is a regular expression, conforming
64 with posix2, so it is possible to monitor all the containers,
65 several of them or just one. If not specified,
66 <replaceable>name</replaceable> will default to '.*' which will
67 monitor all containers in <command>lxcpath</command>.
71 The <option>-P, --lxcpath</option>=PATH option may be specified multiple
72 times to monitor more than one container path. Note however that
73 containers with the same name in multiple paths will be
74 indistinguishable in the output.
80 <title>Options</title>
85 <option>-Q, --quit</option>
89 Ask the lxc-monitord daemon on each given <command>lxcpath</command>
90 to quit. After receiving this command, lxc-monitord will exit
91 immediately as soon as it has no clients instead of waiting the
92 normal 30 seconds for new clients. This is useful if you need to
93 unmount the filesystem <command>lxcpath</command> is on.
103 <title>Examples</title>
106 <term>lxc-monitor -n foo</term>
109 will monitor the different states for container foo.
115 <term>lxc-monitor -n 'foo|bar'</term>
118 will monitor the different states for container foo and bar.
124 <term>lxc-monitor -n '[fb].*'</term>
127 will monitor the different states for container with the
128 name beginning with letter 'f' or 'b'.
134 <term>lxc-monitor -n '.*'</term>
137 will monitor the different states for all containers.
146 <title>Diagnostic</title>
151 <term>The container was not found</term>
154 The specified container was not created before with
155 the <command>lxc-create</command> command.
166 <title>See Also</title>
170 <refentrytitle>regex</refentrytitle>
171 <manvolnum>7</manvolnum>
180 <title>Author</title>
181 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
186 <!-- Keep this comment at the end of the file
191 sgml-minimize-attributes:nil
192 sgml-always-quote-attributes:t
195 sgml-parent-document:nil
196 sgml-default-dtd-file:nil
197 sgml-exposed-tags:nil
198 sgml-local-catalogs:nil
199 sgml-local-ecat-files:nil