2ronwalf<!--
2ronwalf
2ronwalflxc: linux Container library
2ronwalf
2ronwalf(C) Copyright IBM Corp. 2007, 2008
2ronwalf
2ronwalfAuthors:
2ronwalfDaniel Lezcano <daniel.lezcano at free.fr>
2ronwalf
2ronwalfThis library is free software; you can redistribute it and/or
2ronwalfmodify it under the terms of the GNU Lesser General Public
2ronwalfLicense as published by the Free Software Foundation; either
2ronwalfversion 2.1 of the License, or (at your option) any later version.
2ronwalf
2ronwalfThis library is distributed in the hope that it will be useful,
2ronwalfbut WITHOUT ANY WARRANTY; without even the implied warranty of
2ronwalfMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2ronwalfLesser General Public License for more details.
2ronwalf
2ronwalfYou should have received a copy of the GNU Lesser General Public
2ronwalfLicense along with this library; if not, write to the Free Software
2ronwalfFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2ronwalf
2ronwalfTranslated into Japanese
2ronwalfby KATOH Yasufumi <karma at jazz.email.ne.jp>
2ronwalf
2ronwalf-->
2ronwalf
2ronwalf<!DOCTYPE refentry PUBLIC @docdtd@ [
2ronwalf
2ronwalf<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
2ronwalf<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
2ronwalf]>
2ronwalf
2ronwalf<refentry>
2ronwalf
2ronwalf <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
2ronwalf
2ronwalf <refmeta>
2ronwalf <refentrytitle>lxc-monitor</refentrytitle>
2ronwalf <manvolnum>1</manvolnum>
2ronwalf </refmeta>
2ronwalf
2ronwalf <refnamediv>
2ronwalf <refname>lxc-monitor</refname>
2ronwalf
2ronwalf <refpurpose>
2ronwalf <!--
2ronwalf monitor the container state
2ronwalf -->
2ronwalf コンテナの状態の監視
2ronwalf </refpurpose>
2ronwalf </refnamediv>
2ronwalf
2ronwalf <refsynopsisdiv>
2ronwalf <cmdsynopsis>
2ronwalf <command>lxc-monitor</command>
2ronwalf <arg choice="opt">-n <replaceable>name</replaceable></arg>
2ronwalf <arg choice="opt">-Q <replaceable>name</replaceable></arg>
2ronwalf </cmdsynopsis>
2ronwalf </refsynopsisdiv>
2ronwalf
2ronwalf <refsect1>
2ronwalf <title><!-- Description -->説明</title>
2ronwalf
2ronwalf <para>
2ronwalf <!--
2ronwalf <command>lxc-monitor</command> monitors the state of containers. The
2ronwalf <replaceable>name</replaceable> argument may be used to specify
2ronwalf which containers to monitor. It is a regular expression, conforming
2ronwalf with posix2, so it is possible to monitor all the containers,
2ronwalf several of them or just one. If not specified,
2ronwalf <replaceable>name</replaceable> will default to '.*' which will
2ronwalf monitor all containers in <command>lxcpath</command>.
2ronwalf -->
2ronwalf <command>lxc-monitor</command> はコンテナの状態を監視します。
2ronwalf <replaceable>name</replaceable> をモニタ対象のコンテナを指定するために使うことも可能です。
2ronwalf これは posix2 準拠の正規表現であり、全てのコンテナの監視を行ったり、いくつかのコンテナの監視を行ったり、1 つだけのコンテナの監視を行ったりすることが可能です。
2ronwalf <replaceable>name</replaceable> を指定しない場合、デフォルトで '.*' となり、<command>lxcpath</command> 以下の全てのコンテナの監視を行います。
2ronwalf </para>
2ronwalf
2ronwalf <para>
2ronwalf <!--
2ronwalf The <option>-P, &#045;&#045;lxcpath</option>=PATH option may be specified multiple
2ronwalf times to monitor more than one container path. Note however that
2ronwalf containers with the same name in multiple paths will be
2ronwalf indistinguishable in the output.
2ronwalf -->
2ronwalf 1 つ以上のコンテナパスをモニタリングするために、複数回の <option>-P, --lxcpath</option>=PATH オプションを指定することが可能です。
2ronwalf しかし、複数のパスに同じ名前のコンテナが存在する場合は、出力の見分けがつかない事に注意が必要です。
2ronwalf </para>
2ronwalf
2ronwalf </refsect1>
2ronwalf
2ronwalf <refsect1>
2ronwalf <title><!-- Options -->オプション</title>
2ronwalf
2ronwalf <variablelist>
2ronwalf <varlistentry>
2ronwalf <term>
2ronwalf <option>-Q, --quit</option>
2ronwalf </term>
2ronwalf <listitem>
2ronwalf <para>
2ronwalf <!--
2ronwalf Ask the lxc-monitord daemon on each given <command>lxcpath</command>
2ronwalf to quit. After receiving this command, lxc-monitord will exit
2ronwalf immediately as soon as it has no clients instead of waiting the
2ronwalf normal 30 seconds for new clients. This is useful if you need to
2ronwalf unmount the filesystem <command>lxcpath</command> is on.
2ronwalf -->
2ronwalf 指定したそれぞれの <command>lxcpath</command> に対する lxc-monitord デーモンを終了させる要求を行います。
2ronwalf lxc-monitord は通常は新しいクライアントを 30 秒待ちますが、このコマンドを受け取ると、クライアントがいなくなるとすぐに終了します。
2ronwalf このオプションは、<command>lxcpath</command> のファイルシステムをアンマウントする必要があるときに役に立ちます。
2ronwalf </para>
2ronwalf </listitem>
</varlistentry>
</variablelist>
</refsect1>
&commonoptions;
<refsect1>
<title><!-- Examples -->例</title>
<variablelist>
<varlistentry>
<term>lxc-monitor -n foo</term>
<listitem>
<para>
<!--
will monitor the different states for container foo.
-->
foo という名前のコンテナの様々な状態を監視します。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>lxc-monitor -n 'foo|bar'</term>
<listitem>
<para>
<!--
will monitor the different states for container foo and bar.
-->
foo と bar という名前のコンテナの様々な状態を監視します。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>lxc-monitor -n '[f|b].*'</term>
<listitem>
<para>
<!--
will monitor the different states for container with the
name beginning with letter 'f' or 'b'.
-->
'f' もしくは 'b' という文字で始まるコンテナの様々な状態を監視します。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>lxc-monitor -n '.*'</term>
<listitem>
<para>
<!--
will monitor the different states for all containers.
-->
全てのコンテナの様々な状態を監視します。
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title><!-- Diagnostic -->診断</title>
<variablelist>
<varlistentry>
<term>The container was not found</term>
<listitem>
<para>
<!--
The specified container was not created before with
the <command>lxc-create</command> command.
-->
指定したコンテナが <command>lxc-create</command> で作成されておらず存在しません。
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>See Also</title>
<simpara>
<citerefentry>
<refentrytitle>regex</refentrytitle>
<manvolnum>7</manvolnum>
</citerefentry>,
</simpara>
</refsect1>
&seealso;
<refsect1>
<title><!-- Author -->作者</title>
<para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->