Sun HPC ClusterTools 3.0 Administrator's Guide: With CRE

Additional mpadmin Functionality

This section describes other functionality provided by mpadmin.

Multiple Commands on a Line

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)::

Command Abbreviation

You can abbreviate commands to the shortest string of at least two letters so long as it is still unique within the current context.

[node0]
Node:: pa[node0] Partition:: li      part0
      part1
      part2
      part3
[node0] Partition:: part2[node0] P(part2):: sh      set enabled
      set max_total_procs = 4
      set name = part2
      set nodes = node0 node1
[node0] P(part2)::

Note -

The names of objects cannot be abbreviated.