This set of commands displays information about
The specified object.
If no object is specified, the current context.
Usage:
:: dump [object-name]
Available In:
Cluster, Node, Partition
The dump command displays the current state of the attributes of the specified object or of the current context. The object can be
The entire cluster.
A specific partition.
All partitions in the cluster.
A specific node.
All nodes in the cluster.
The dump command outputs objects in a specific order that corresponds to the logical order of assignment when a cluster is configured. For example, nodes are output before partitions because, when a cluster is configured, nodes must exist before they can be assigned to a partition.
The dump command executes in this hierarchical manner so it can be used to back up cluster configurations in a format that allows them to be easily restored at a later time.
The following example shows the dump command being used in this way. In this example, it is invoked using the -c option on the mpadmin command line, with the output being directed to a backup file.
# mpadmin -c dump > sunhpc.configuration
Later, when it was time to restore the configuration, mpadmin could read the backup file as input, using the -f option.
# mpadmin -f sunhpc.configuration
If you wanted to modify the configuration, you could edit the backup file before before restoring it.
The following example shows the dump command being used to output the attribute states of the partition part0.
[node0] Partition:: dump part0 set nodes = node1 node2 node3 set max_total_procs = 4 set name = part0 set enabled unset no_login [node0] Partition::
Each attribute is output in the form of a set or unset command so that the dump output functions as a script.
If you are within the context of the object whose attributes you want to see, you don't have to specify its name.
[node0] P(part0):: dump set nodes = node1 node2 node3 set max_total_procs = 4 set enabled set name = part0 [node0] P(part0)::
Usage:
:: list
Available In:
Cluster, Node, Partition, Network
The list command lists all of the defined objects in the current context. The following example shows that there are three partitions defined in the Partition context.
[node0] Partition:: list part0 part1 part2 [node0] Partition::
Usage:
:: show [object-name]
Available In:
Cluster, Node, Partition, Network
The show command displays the current state of the attributes of the specified object object-name. The following example displays the attributes for the partition part0.
[node0] Partition:: show part0 set nodes = node0 node1 node2 node3 set max_total_procs = 4 set name = part0 set enabled unset no_login [node0] Partition::
If the object whose attributes you want to see is in the current context, you don't have to specify its name. For example:
[node0] P(part0):: show set nodes = node0 node1 node2 node3 set max_total_procs = 4 set enabled set name = part0 [node0] P(part0)::