2008-02-06 14:45:20 +00:00
|
|
|
=head1 NAME
|
2008-03-08 14:14:00 +00:00
|
|
|
|
|
|
|
B<nodech> - Changes nodes' attributes in the xCAT cluster database.
|
|
|
|
|
|
|
|
|
2008-02-06 14:45:20 +00:00
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
B<nodech> I<noderange> I<table.column=value> [I<...>]
|
|
|
|
|
|
|
|
B<nodech> {B<-d> | B<--delete>} I<noderange> I<table> [I<...>]
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
B<nodech> {B<-v> | B<--version>}
|
|
|
|
|
|
|
|
B<nodech> [B<-?> | B<-h> | B<--help>]
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
The nodech command changes the specified attributes for the given nodes. Normally, the given
|
|
|
|
value will completely replace the current attribute value. But if ",=" is used instead of "=",
|
2009-09-30 22:15:43 +00:00
|
|
|
the specified value will be prepended to the attribute's comma separated list, if it is not already
|
2008-03-08 14:14:00 +00:00
|
|
|
there. If "^=" is used, the specified value will be removed from the attribute's comma separated list,
|
|
|
|
if it is there. You can also use "^=" and ",=" in the same command to essentially replace one item
|
|
|
|
in the list with another. (See the Examples section.)
|
|
|
|
|
2008-09-08 02:11:55 +00:00
|
|
|
Additionally, as in nodels, boolean expressions can be used to further limit the scope of nodech from
|
|
|
|
the given noderange. The operators supported are the same as nodels (=~, !~, ==, and !=).
|
|
|
|
|
|
|
|
With these operators in mind, the unambiguous assignment operator is '=@'. If you need, for example, to set
|
|
|
|
the nodelist.comments to =foo, you would have to do I<nodech n1 nodelist.comments=@=foo>.
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
See the B<xcatdb> man page for an overview of each table.
|
|
|
|
|
|
|
|
The nodech command also supports some short cut names as aliases to common attributes. See the
|
|
|
|
B<nodels> man page for details.
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
=over 10
|
|
|
|
|
|
|
|
=item B<-d|--delete>
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
Delete the nodes' row in the specified tables.
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
=item B<-v|--version>
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
Command Version.
|
|
|
|
|
|
|
|
=item B<-?|-h|--help>
|
|
|
|
|
|
|
|
Display usage message.
|
|
|
|
|
|
|
|
=back
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 RETURN VALUE
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
=over 3
|
|
|
|
|
|
|
|
=item 0
|
|
|
|
|
|
|
|
The command completed successfully.
|
|
|
|
|
|
|
|
=item 1
|
|
|
|
|
|
|
|
An error has occurred.
|
|
|
|
|
|
|
|
=back
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
=over 2
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2012-04-23 17:40:41 +00:00
|
|
|
To update nodes in noderange node1-node4 to be in only group all:
|
2008-03-08 14:14:00 +00:00
|
|
|
|
2012-04-23 17:40:41 +00:00
|
|
|
B<nodech> I<node1-node4 groups=all>
|
2008-03-08 14:14:00 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2008-09-08 02:11:55 +00:00
|
|
|
To put all nodes with nodepos.rack value of 2 into a group called rack2:
|
|
|
|
|
2012-04-23 17:40:41 +00:00
|
|
|
B<nodech> I<all> nodepos.rack==2 groups,=rack2
|
2008-09-08 02:11:55 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
To add nodes in noderange node1-node4 to the nodetype table with os=rhel5:
|
|
|
|
|
2012-04-23 17:40:41 +00:00
|
|
|
B<nodech> I<node1-node4 groups=all,rhel5 nodetype.os=rhel5>
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
=item *
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2012-04-23 17:40:41 +00:00
|
|
|
To add node1-node4 to group1 in addition to the groups they are already in:
|
2008-03-08 14:14:00 +00:00
|
|
|
|
2012-04-23 17:40:41 +00:00
|
|
|
B<nodech> I<node1-node4 groups,=group1>
|
2008-03-08 14:14:00 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
To put node1-node4 in group2, instead of group1:
|
|
|
|
|
2012-04-23 17:40:41 +00:00
|
|
|
B<nodech> I<node1-node4 groups^=group1 groups,=group2>
|
2008-03-08 14:14:00 +00:00
|
|
|
|
|
|
|
=back
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 FILES
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
/opt/xcat/bin/nodech
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
=head1 SEE ALSO
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-09-08 02:11:55 +00:00
|
|
|
L<nodels(1)|nodels.1>, L<nodeadd(8)|nodeadd.8>, L<noderange(3)|noderange.3>
|