NAME

gettab - select table rows, based on attribute criteria, and display specific attributes.


SYNOPSIS

gettab [-H | --with-fieldname] key=value,... table.attribute ...

gettab [-? | -h | --help]


DESCRIPTION

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.


OPTIONS

-H|--with-fieldname

Always display table.attribute name next to result. By default, this is done only if more than one table.attribute is requested.

-?|-h|--help

Display usage message.


RETURN VALUE

  1. The command completed successfully.

  2. An error has occurred.


EXAMPLES


FILES

/opt/xcat/bin/gettab


SEE ALSO

nodels(1), chtab(8), tabdump(8)