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.
gettab -H key=master site.value
The output would be similar to:
site.value: mgmtnode.cluster.com
gettab mgt=blade nodehm.node
The output would be similar to:
blades
/opt/xcat/bin/gettab