]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-monitor.sgml.in
change man pages to use a common file for common options
[mirror_lxc.git] / doc / lxc-monitor.sgml.in
CommitLineData
d823d5b9 1<!--
2
3lxc: linux Container library
4
5(C) Copyright IBM Corp. 2007, 2008
6
7Authors:
8Daniel Lezcano <dlezcano at fr.ibm.com>
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
22Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
24-->
25
99e4008c
MN
26<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
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>
51 <command>lxc-monitor <replaceable>-n name</replaceable>
52 </command>
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
66 </refsect1>
67
10fba81b 68 &commonoptions;
d823d5b9 69
70 <refsect1>
71 <title>Examples</title>
72 <variablelist>
73 <varlistentry>
74 <term>lxc-monitor -n foo</term>
75 <listitem>
76 <para>
77 will monitor the different states for container foo.
78 </para>
79 </listitem>
80 </varlistentry>
81
82 <varlistentry>
83 <term>lxc-monitor -n 'foo|bar'</term>
84 <listitem>
85 <para>
86 will monitor the different states for container foo and bar.
87 </para>
88 </listitem>
89 </varlistentry>
90
91 <varlistentry>
92 <term>lxc-monitor -n '[f|b].*'</term>
93 <listitem>
94 <para>
95 will monitor the different states for container with the
96 name beginning with letter 'f' or 'b'.
97 </para>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry>
102 <term>lxc-monitor -n '.*'</term>
103 <listitem>
104 <para>
105 will monitor the different states for all containers.
106 </para>
107 </listitem>
108 </varlistentry>
109
110 </variablelist>
111 </refsect1>
112
113 <refsect1>
114 <title>Diagnostic</title>
115
116 <variablelist>
117
118 <varlistentry>
119 <term>The container was not found</term>
120 <listitem>
121 <para>
122 The specified container was not created before with
123 the <command>lxc-create</command> command.
124 </para>
125 </listitem>
126 </varlistentry>
127
128
129 </variablelist>
130
131 </refsect1>
132
133 <refsect1>
134 <title>See Also</title>
135
136 <simpara>
137 <citerefentry>
138 <refentrytitle>regex</refentrytitle>
139 <manvolnum>7</manvolnum>
140 </citerefentry>,
141 </simpara>
142
d823d5b9 143 </refsect1>
144
99e4008c
MN
145 &seealso;
146
d823d5b9 147 <refsect1>
148 <title>Author</title>
149 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
150 </refsect1>
151
152</refentry>
153
154<!-- Keep this comment at the end of the file
155Local variables:
156mode: sgml
157sgml-omittag:t
158sgml-shorttag:t
159sgml-minimize-attributes:nil
160sgml-always-quote-attributes:t
161sgml-indent-step:2
162sgml-indent-data:t
163sgml-parent-document:nil
164sgml-default-dtd-file:nil
165sgml-exposed-tags:nil
166sgml-local-catalogs:nil
167sgml-local-ecat-files:nil
168End:
169-->