Usage:
:: set attribute[=value]
Available In:
Cluster, Node, Partition, Network
The set command sets the specified attribute of the current object.
You must be within the context of the target object to set its attributes. For example, to change an attribute of a specific partition, you must be in that partition's context.
To set a literal or numeric attribute, specify the desired value. The following example sets the node attribute for partition part0. Setting a partition's node attribute identifies the set of nodes that are members of that partition.
[node0] P(part0):: set node=node1 node2[node0] P(part0)::
To change the value of an attribute that has already been set, simply set it again. The following example adds node3 to partition part0.
[node0] P(part0):: set node=+node3[node0] P(part0)::
As shown by this example, if the value of an attribute is a list, items can be added to or removed from the list using the + and - symbols, without repeating items that are already part of the list.
To set a Boolean attribute, specify the name of the Boolean attribute to be activated. Do not include =value in the expression. The following example enables partition part0.
[node0] P(part0):: set enabled[node0] P(part0)::
If you mistakenly set a Boolean attribute to a value--that is, if you follow a Boolean attribute's name with the =value field, mpadmin will ignore the value assignment and will simply consider the attribute to be active.