2008-03-05 16:49:19 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
2009-08-26 19:41:30 +00:00
|
|
|
B<gettab> - select table rows, based on attribute criteria, and display specific attributes.
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2008-05-19 17:59:56 +00:00
|
|
|
B<gettab> [B<-H> | B<--with-fieldname>] I<key=value,... table.attribute ...>
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
B<gettab> [B<-?> | B<-h> | B<--help>]
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2009-08-26 19:41:30 +00:00
|
|
|
The B<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 B<gettab> command can be used instead
|
|
|
|
of B<nodels> for tables that are not keyed by nodename (e.g. the B<site> table), or to select rows based
|
|
|
|
on an attribute value other than nodename.
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 10
|
|
|
|
|
2008-05-19 17:59:56 +00:00
|
|
|
=item B<-H|--with-fieldname>
|
|
|
|
|
2009-08-26 19:41:30 +00:00
|
|
|
Always display table.attribute name next to result. By default, this is done only if more than
|
|
|
|
one table.attribute is requested.
|
2008-05-19 17:59:56 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
=item B<-?|-h|--help>
|
|
|
|
|
|
|
|
Display usage message.
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 RETURN VALUE
|
|
|
|
|
|
|
|
=over 3
|
|
|
|
|
|
|
|
=item 0
|
|
|
|
|
|
|
|
The command completed successfully.
|
|
|
|
|
|
|
|
=item 1
|
|
|
|
|
|
|
|
An error has occurred.
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
|
|
|
=over 2
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2009-08-26 19:41:30 +00:00
|
|
|
To display setting for B<master> (management node) in the site table:
|
2008-03-05 16:49:19 +00:00
|
|
|
|
2009-08-26 19:41:30 +00:00
|
|
|
B<gettab -H> I<key=master site.value>
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
The output would be similar to:
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2009-08-26 19:41:30 +00:00
|
|
|
site.value: mgmtnode.cluster.com
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2009-08-26 19:41:30 +00:00
|
|
|
To display the first node or group name that has B<mgt> set to B<blade> in the nodehm table:
|
2008-03-05 16:49:19 +00:00
|
|
|
|
2009-08-26 19:41:30 +00:00
|
|
|
B<gettab> I<mgt=blade nodehm.node>
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
The output would be similar to:
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2009-08-26 19:41:30 +00:00
|
|
|
blades
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 FILES
|
|
|
|
|
|
|
|
/opt/xcat/bin/gettab
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
L<nodels(1)|nodels.1>, L<chtab(8)|chtab.8>, L<tabdump(8)|tabdump.8>
|