Improve the documentation of query output fields
The gnt-node and gnt-instance list commands have a customizable list of output fields, but the list is not up to date (in the man page) and not easily understandable from the ‘--help’ output. This patch updates the man pages and adds the available fields and default fields in the ‘--help’ output, as part of the description. Example: Usage ===== gnt-node list 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. Reviewed-by: imsnah,ultrotter
Showing
- lib/cli.py 2 additions, 1 deletionlib/cli.py
- man/gnt-instance.sgml 19 additions, 0 deletionsman/gnt-instance.sgml
- man/gnt-node.sgml 25 additions, 2 deletionsman/gnt-node.sgml
- scripts/gnt-instance 6 additions, 1 deletionscripts/gnt-instance
- scripts/gnt-node 5 additions, 1 deletionscripts/gnt-node
Please register or sign in to comment