共用方式為


cluscfg listenvs

 

Applies To: Microsoft HPC Pack 2012, Microsoft HPC Pack 2012 R2

Displays the values of the cluster-wide environment variables.

For examples of how to use this command, see Examples.

Syntax

cluscfg listenvs [/scheduler:<name>]

cluscfg listenvs {/? | /help}

Parameters

Parameter

Description

/scheduler:<name>

Specifies the host name or IP address of the head node for the cluster for which you want to list the values of the cluster-wide environment variables. The value must be a valid computer name or IP address. If you do not specify the /scheduler parameter, this command uses the scheduler on the head node that the CCP_SCHEDULER environment variable specifies.

/?

Displays Help at the command prompt.

/help

Displays Help at the command prompt.

Remarks

  • The CCP_CLUSTER_NAME, CCP_MPI_NETMASK, CCP_SERVICEREGISTRATION_PATH, and WCF_NETWORKPREFIX environment variables are present by default.

  • The CCP_CLUSTER_NAME environment variable specifies the name of the cluster, which is the same as the name of the computer that serves as the head node.

  • The CCP_MPI_NETMASK environment variable specifies the network mask for the network interface that the Message Passing Interface (MPI) process uses.

  • The CCP_SERVICEREGISTRATION_PATH environment variable specifies the location where the configuration files for the service-oriented architecture (SOA) services should be placed to register the services. This location is \\%CCP_CLUSTER_NAME%\HpcServiceRegistration by default.

  • The WCF_NETWORKPREFIX environment variable specifies the prefix for the network that the Windows Communication Foundation (WCF) broker and service use for internal traffic.

  • You can set the value of these environment variables and create your own environment variables by using the cluscfg setenvs command.

Examples

To display the values of the cluster-wide environment variables on the HPC cluster with a head node named HEADNODE, use the following command:

cluscfg listenvs /scheduler:HEADNODE

Additional references