Sun HPC ClusterTools 3.0 Administrator's Guide: With CRE

connect

Usage:

:: connect cluster-name

Available In:

Cluster

In order to access any objects or attributes in a Sun HPC cluster, you must be connected to the cluster.

However, connecting to a cluster ordinarily happens automatically, so you are not likely to ever need to use the connect command.

The environment variable SUNHPC_CLUSTER names a default cluster. If no other action is taken to override this default, any mpadmin session will connect to the cluster named by this environment variable.

If you issue the mpadmin command on a node that is part of a cluster, you are automatically connected to that cluster, regardless of the SUNHPC_CLUSTER setting.

If you are not logged in to the cluster you want to use and you do not want to use the default cluster, you can use the mpadmin -s option, specifying the name of the cluster of interest as an argument to the option. See "-s cluster-name - Connect to Specified Cluster" for a description of the -s option.


Note -

When the CRE creates a cluster, it always names it after the hostname of the cluster's master node--that is, the node on which the master daemons are running. Therefore, whenever you need to specify the name of a cluster, use the hostname of the cluster's master node.


If, for some reason, you want to use the connect command, see the following example. It shows the command being used to connect to a cluster whose master node is node0.

[hpc-demo]:: connect node0[node0]::