Editing Man/vzlist.8

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 17: Line 17:
  
 
<p style="margin-top: 1em">[<b>-a</b> | <b>-S</b>]
 
<p style="margin-top: 1em">[<b>-a</b> | <b>-S</b>]
[<b>-n</b>] [<b>-H</b>] [<b>-t</b>] [<b>-j</b>]
+
[<b>-n</b>] [<b>-H</b>]
 
[<b>-o&nbsp;</b><i>name</i>[,<i>name</i>...] | <b>-1</b>]
 
[<b>-o&nbsp;</b><i>name</i>[,<i>name</i>...] | <b>-1</b>]
 
[<b>-s&nbsp;</b>[<b>-</b>]<i>name</i>]
 
[<b>-s&nbsp;</b>[<b>-</b>]<i>name</i>]
Line 52: Line 52:
 
displayed.</p>
 
displayed.</p>
  
<p style="margin-left:11%; margin-top: 1em">For some fields
+
<p style="margin-left:11%; margin-top: 1em">For the fields
that can have long values (e.g. <b>ip</b>, <b>hostname</b>,
+
that can have many values (e.g. <b>ip</b>), all the values
<b>description</b> or <b>features</b>), the value string is
+
are displayed only for the last (i.e. leftmost) column;
trimmed to some predefined width (in order not to break the
+
otherwise, only the first value is shown.</p>
columned layout), unless this field is the last one. So, in
 
order to get the full non-trimmed value for such a field,
 
put the field name last in the list of fields for <b>-o</b>
 
option. If using <b>vzlist</b> from a script, add <b>-t</b>
 
to disable trimming.</p>
 
  
 
== OPTIONS ==
 
== OPTIONS ==
Line 84: Line 79:
  
 
<p style="margin-left:22%;">Suppress displaying the header
 
<p style="margin-left:22%;">Suppress displaying the header
row. Usable for scripts.</p>
+
row.</p>
 
 
<p style="margin-left:11%;"><b>-t</b>, <b>--no-trim</b></p>
 
 
 
<p style="margin-left:22%;">Suppress trimming long fields.
 
Usable for scripts.</p>
 
 
 
<p style="margin-left:11%;"><b>-j</b>, <b>--json</b></p>
 
 
 
<p style="margin-left:22%;">Output in JSON format. By
 
default, all possible fields are printed.</p>
 
  
 
<p style="margin-left:11%;"><b>-o</b>, <b>--output</b>
 
<p style="margin-left:11%;"><b>-o</b>, <b>--output</b>
Line 100: Line 85:
  
 
<p style="margin-left:22%;">Display only the specified
 
<p style="margin-left:22%;">Display only the specified
<i>field</i>s (see <b>Possible fields</b> subsection
+
<i>field</i>s (see <b>Standard fields</b> subsection
 
below).</p>
 
below).</p>
  
Line 159: Line 144:
  
 
<p style="margin-left:22%;">list all available format
 
<p style="margin-left:22%;">list all available format
specifiers that can be used for both output (<b>-o</b>,
+
specifiers that can be used for both output both output
<b>--output</b>) and the sorting order (<b>-s</b>,
+
(<b>-o</b>, <b>--output</b>) and the sorting order
<b>--sort</b>).</p>
+
(<b>-s</b>, <b>--sort</b>).</p>
  
<p style="margin-left:11%; margin-top: 1em">For the user
+
<p style="margin-left:22%; margin-top: 1em">For the user
 
beancounter fields, if suffix is not specified, current
 
beancounter fields, if suffix is not specified, current
 
usage (a.k.a. &quot;held&quot;) value is show. One can also
 
usage (a.k.a. &quot;held&quot;) value is show. One can also
Line 171: Line 156:
 
       cellspacing="0" cellpadding="0">
 
       cellspacing="0" cellpadding="0">
 
<tr valign="top" align="left">
 
<tr valign="top" align="left">
<td width="11%"></td>
+
<td width="22%"></td>
 
<td width="3%">
 
<td width="3%">
  
 
<p><b>.m</b></p></td>
 
<p><b>.m</b></p></td>
<td width="8%"></td>
+
<td width="7%"></td>
<td width="18%">
+
<td width="19%">
  
 
<p>maxheld</p></td>
 
<p>maxheld</p></td>
<td width="60%">
+
<td width="49%">
 
</td></tr>
 
</td></tr>
 
<tr valign="top" align="left">
 
<tr valign="top" align="left">
<td width="11%"></td>
+
<td width="22%"></td>
 
<td width="3%">
 
<td width="3%">
  
 
<p><b>.b</b></p></td>
 
<p><b>.b</b></p></td>
<td width="8%"></td>
+
<td width="7%"></td>
<td width="18%">
+
<td width="19%">
  
 
<p>barrier</p></td>
 
<p>barrier</p></td>
<td width="60%">
+
<td width="49%">
 
</td></tr>
 
</td></tr>
 
<tr valign="top" align="left">
 
<tr valign="top" align="left">
<td width="11%"></td>
+
<td width="22%"></td>
 
<td width="3%">
 
<td width="3%">
  
 
<p><b>.l</b></p></td>
 
<p><b>.l</b></p></td>
<td width="8%"></td>
+
<td width="7%"></td>
<td width="18%">
+
<td width="19%">
  
 
<p>limit</p></td>
 
<p>limit</p></td>
<td width="60%">
+
<td width="49%">
 
</td></tr>
 
</td></tr>
 
<tr valign="top" align="left">
 
<tr valign="top" align="left">
<td width="11%"></td>
+
<td width="22%"></td>
 
<td width="3%">
 
<td width="3%">
  
 
<p><b>.f</b></p></td>
 
<p><b>.f</b></p></td>
<td width="8%"></td>
+
<td width="7%"></td>
<td width="18%">
+
<td width="19%">
  
 
<p>fail counter</p></td>
 
<p>fail counter</p></td>
<td width="60%">
+
<td width="49%">
 
</td></tr>
 
</td></tr>
 
</table>
 
</table>
  
<p style="margin-left:11%; margin-top: 1em">For the disk
+
<p style="margin-left:22%; margin-top: 1em">For the disk
 
quota fields, if suffix is not specified, current usage is
 
quota fields, if suffix is not specified, current usage is
 
shown. One can also use the following suffixes:</p>
 
shown. One can also use the following suffixes:</p>
Line 223: Line 208:
 
       cellspacing="0" cellpadding="0">
 
       cellspacing="0" cellpadding="0">
 
<tr valign="top" align="left">
 
<tr valign="top" align="left">
<td width="11%"></td>
+
<td width="22%"></td>
 
<td width="3%">
 
<td width="3%">
  
 
<p style="margin-top: 1em"><b>.s</b></p></td>
 
<p style="margin-top: 1em"><b>.s</b></p></td>
<td width="8%"></td>
+
<td width="7%"></td>
<td width="15%">
+
<td width="16%">
  
 
<p style="margin-top: 1em">soft limit</p></td>
 
<p style="margin-top: 1em">soft limit</p></td>
<td width="63%">
+
<td width="52%">
 
</td></tr>
 
</td></tr>
 
<tr valign="top" align="left">
 
<tr valign="top" align="left">
<td width="11%"></td>
+
<td width="22%"></td>
 
<td width="3%">
 
<td width="3%">
  
 
<p><b>.h</b></p></td>
 
<p><b>.h</b></p></td>
<td width="8%"></td>
+
<td width="7%"></td>
<td width="15%">
+
<td width="16%">
  
 
<p>hard limit</p></td>
 
<p>hard limit</p></td>
<td width="63%">
+
<td width="52%">
 
</td></tr>
 
</td></tr>
 
</table>
 
</table>
 
<p style="margin-left:11%; margin-top: 1em">Note that for
 
JSON output suffixes are not allowed.</p>
 
  
 
== EXAMPLES ==
 
== EXAMPLES ==
Line 258: Line 240:
 
kmemsize usage.</p>
 
kmemsize usage.</p>
  
== EXIT STATUS ==
+
== DIAGNOSTICS ==
  
 
<p style="margin-left:11%; margin-top: 1em">Returns 0 upon
 
<p style="margin-left:11%; margin-top: 1em">Returns 0 upon

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)