NAME

nodech - Changes nodes' attributes in the xCAT cluster database.


SYNOPSIS

nodech noderange table.column=value [...]

nodech {-d | --delete} noderange table [...]

nodech {-v | --version}

nodech [-? | -h | --help]


DESCRIPTION

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 ``='', the specified value will be prepended to the attribute's comma separated list, if it is not already 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.)

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 nodech n1 nodelist.comments=@=foo.

See the 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 nodels man page for details.


OPTIONS

-d|--delete

Delete the nodes' row in the specified tables.

-v|--version

Command Version.

-?|-h|--help

Display usage message.


RETURN VALUE

  1. The command completed successfully.

  2. An error has occurred.


EXAMPLES


FILES

/opt/xcat/bin/nodech


SEE ALSO

nodels(1), nodeadd(8), noderange(3)