]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-monitor.sgml.in
gitignore doc/ja/legacy/*.1
[mirror_lxc.git] / doc / lxc-monitor.sgml.in
CommitLineData
f79d43bb 1<!--
d823d5b9 2
3lxc: linux Container library
4
5(C) Copyright IBM Corp. 2007, 2008
6
7Authors:
9afe19d6 8Daniel Lezcano <daniel.lezcano at free.fr>
d823d5b9 9
10This library is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2.1 of the License, or (at your option) any later version.
14
15This library is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18Lesser General Public License for more details.
19
20You should have received a copy of the GNU Lesser General Public
21License along with this library; if not, write to the Free Software
250b1eec 22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
d823d5b9 23
24-->
25
7f951458 26<!DOCTYPE refentry PUBLIC @docdtd@ [
99e4008c 27
10fba81b 28<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
99e4008c
MN
29<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
30]>
d823d5b9 31
32<refentry>
33
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
35
36 <refmeta>
37 <refentrytitle>lxc-monitor</refentrytitle>
38 <manvolnum>1</manvolnum>
39 </refmeta>
40
41 <refnamediv>
42 <refname>lxc-monitor</refname>
43
44 <refpurpose>
45 monitor the container state
46 </refpurpose>
47 </refnamediv>
48
49 <refsynopsisdiv>
50 <cmdsynopsis>
b4578c5b
DE
51 <command>lxc-monitor</command>
52 <arg choice="req">-n <replaceable>name</replaceable></arg>
d823d5b9 53 </cmdsynopsis>
54 </refsynopsisdiv>
55
56 <refsect1>
57 <title>Description</title>
58
59 <para>
60 <command>lxc-monitor</command> monitors the state of the
61 specified containers. The <replaceable>name</replaceable> can be
62 a regular expression, conforming with posix2, so it is possible
63 to monitor all the containers, several of them or just one.
64 </para>
65
8d06bd13
DE
66 <para>
67 The <option>-P, --lxcpath</option>=PATH option may be specified multiple
68 times to monitor more than one container path. Note however that
69 containers with the same name in multiple paths will be
70 indistinguishable in the output.
71 </para>
72
d823d5b9 73 </refsect1>
74
10fba81b 75 &commonoptions;
d823d5b9 76
77 <refsect1>
78 <title>Examples</title>
79 <variablelist>
80 <varlistentry>
81 <term>lxc-monitor -n foo</term>
82 <listitem>
83 <para>
84 will monitor the different states for container foo.
85 </para>
86 </listitem>
87 </varlistentry>
88
89 <varlistentry>
90 <term>lxc-monitor -n 'foo|bar'</term>
91 <listitem>
92 <para>
93 will monitor the different states for container foo and bar.
94 </para>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry>
99 <term>lxc-monitor -n '[f|b].*'</term>
100 <listitem>
101 <para>
102 will monitor the different states for container with the
103 name beginning with letter 'f' or 'b'.
104 </para>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry>
109 <term>lxc-monitor -n '.*'</term>
110 <listitem>
111 <para>
112 will monitor the different states for all containers.
113 </para>
114 </listitem>
115 </varlistentry>
116
117 </variablelist>
118 </refsect1>
119
120 <refsect1>
121 <title>Diagnostic</title>
122
123 <variablelist>
124
125 <varlistentry>
126 <term>The container was not found</term>
127 <listitem>
128 <para>
129 The specified container was not created before with
130 the <command>lxc-create</command> command.
131 </para>
132 </listitem>
f79d43bb 133 </varlistentry>
d823d5b9 134
135
136 </variablelist>
137
138 </refsect1>
139
140 <refsect1>
141 <title>See Also</title>
142
f79d43bb 143 <simpara>
d823d5b9 144 <citerefentry>
145 <refentrytitle>regex</refentrytitle>
146 <manvolnum>7</manvolnum>
147 </citerefentry>,
148 </simpara>
149
d823d5b9 150 </refsect1>
151
99e4008c
MN
152 &seealso;
153
d823d5b9 154 <refsect1>
155 <title>Author</title>
156 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
157 </refsect1>
158
159</refentry>
160
161<!-- Keep this comment at the end of the file
162Local variables:
163mode: sgml
164sgml-omittag:t
165sgml-shorttag:t
166sgml-minimize-attributes:nil
167sgml-always-quote-attributes:t
168sgml-indent-step:2
169sgml-indent-data:t
170sgml-parent-document:nil
171sgml-default-dtd-file:nil
172sgml-exposed-tags:nil
173sgml-local-catalogs:nil
174sgml-local-ecat-files:nil
175End:
176-->