nodech - Changes nodes' attributes in the xCAT cluster database.
nodech noderange table.column=value [...]
nodech {-d | --delete} noderange table [...]
nodech {-v | --version}
nodech [-? | -h | --help]
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 added 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.)
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.
Delete the nodes' row in the specified tables.
Command Version.
Display usage message.
The command completed successfully.
An error has occurred.
To add nodes in noderange node1-node4 with group all:
nodech node1-node4 groups=all
To add nodes in noderange node1-node4 to the nodetype table with os=rhel5:
nodech node1-node4 groups=all,rhel5 nodetype.os=rhel5
To add node1-node4 to group1:
nodech node1-node4 groups,=group1
To put node1-node4 in group2, instead of group1:
nodech node1-node4 groups^=group1 groups,=group2
/opt/xcat/bin/nodech
nodels(1), nodeadd(1), noderange(5)