gettab - select table rows, based on attribute criteria, and display specific attributes.
gettab [-H | --with-fieldname] key=value,... table.attribute ...
gettab [-? | -h | --help]
The gettab command uses the specified key values to select a row in each of the tables requested. For each selected row, the specified attributes are displayed. The gettab command can be used instead of nodels for tables that are not keyed by nodename (e.g. the site table), or to select rows based on an attribute value other than nodename.
Always display table.attribute name next to result. By default, this is done only if more than one table.attribute is requested.
Display usage message.
The command completed successfully.
An error has occurred.
To display setting for master (management node) in the site table:
gettab -H key=master site.value
The output would be similar to:
site.value: mgmtnode.cluster.com
To display the first node or group name that has mgt set to blade in the nodehm table:
gettab mgt=blade nodehm.node
The output would be similar to:
blades
/opt/xcat/bin/gettab
nodels(1), chtab(8), tabdump(8)
Hey! The above document had some coding errors, which are explained below:
Expected text after =item, not a number