Because mpadmin interprets its input, if you issue more than one command on a line, mpadmin will execute them sequentially in the order they are input.
The following example shows how to display a list of nodes when not in the Node context. The node command switches to the Node context and the list command generates a list for that context.
[node0]:: node list node0 node1 node2 node3 [node0] Node::
The following example sets the enabled attribute on partition part1. The part1 entry acts as a command that switches the context from part0 to part1 and the set command turns on the enabled attribute.
[node0] P[part0]:: part0 set enabled[node0] P(part0)::