help="Print sizes in human readable format")
FIELDS_OPT = make_option("-o", "--output", dest="output", action="store",
- type="string", help="Select output fields",
+ type="string", help="Comma separated list of"
+ " output fields",
metavar="FIELDS")
FORCE_OPT = make_option("-f", "--force", dest="force", action="store_true",
</simpara>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>sda_size</term>
+ <listitem>
+ <simpara>the size of the instance's first disk</simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>sdb_size</term>
+ <listitem>
+ <simpara>the size of the instance's second disk</simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>vcpus</term>
+ <listitem>
+ <simpara>the number of VCPUs allocated to the
+ instance</simpara>
+ </listitem>
+ </varlistentry>
</variablelist>
</para>
</listitem>
</varlistentry>
<varlistentry>
- <term>pinst</term>
+ <term>pinst_cnt</term>
<listitem>
<simpara>the number of instances having this node as
primary</simpara>
</listitem>
</varlistentry>
<varlistentry>
- <term>sinst</term>
+ <term>pinst_list</term>
+ <listitem>
+ <simpara>the list of instances having this node as
+ primary, comma separated</simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>sinst_cnt</term>
<listitem>
<simpara>the number of instances having this node as a
secondary node</simpara>
</listitem>
</varlistentry>
<varlistentry>
+ <term>sinst_list</term>
+ <listitem>
+ <simpara>the list of instances having this node as a
+ secondary node, comma separated</simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
<term>pip</term>
<listitem>
<simpara>the primary ip of this node (used for cluster
allocations</simpara>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>bootid</term>
+ <listitem>
+ <simpara>the node bootid value; this is a linux specific
+ feature that assigns a new UUID to the node at each boot
+ and can be use to detect node reboots (by tracking
+ changes in this value)</simpara>
+ </listitem>
+ </varlistentry>
</variablelist>
</para>
"Show information on the specified instance"),
'list': (ListInstances, ARGS_NONE,
[DEBUG_OPT, NOHDR_OPT, SEP_OPT, USEUNITS_OPT, FIELDS_OPT],
- "", "Lists the instances and their status"),
+ "", "Lists the instances and their status. The available fields"
+ " are (see the man page for details): oper_state, oper_ram,"
+ " name, os, pnode, snodes, admin_state, admin_ram, disk_template,"
+ " ip, mac, bridge, sda_size, sdb_size, vcpus. The default field"
+ " list is (in order): name, os, pnode, admin_state, oper_state,"
+ " oper_ram."),
'reinstall': (ReinstallInstance, ARGS_ONE, [DEBUG_OPT, FORCE_OPT, os_opt],
"[-f] <instance>", "Reinstall the instance"),
'remove': (RemoveInstance, ARGS_ONE,
"[<node_name>...]", "Show information about the node(s)"),
'list': (ListNodes, ARGS_NONE,
[DEBUG_OPT, NOHDR_OPT, SEP_OPT, USEUNITS_OPT, FIELDS_OPT],
- "", "Lists the nodes in the cluster"),
+ "", "Lists the nodes in the cluster. The available fields"
+ " are (see the man page for details): name, pinst_cnt, pinst_list,"
+ " sinst_cnt, sinst_list, pip, sip, dtotal, dfree, mtotal, mnode,"
+ " mfree, bootid. The default field list is (in order): name,"
+ " dtotal, dfree, mtotal, mnode, mfree, pinst_cnt, sinst_cnt."),
'remove': (RemoveNode, ARGS_ONE, [DEBUG_OPT],
"<node_name>", "Removes a node from the cluster"),
'volumes': (ListVolumes, ARGS_ANY,