Export-HpcDHCPReservations

Saves information about the Dynamic Host Configuration Protocol (DHCP) reservations for the specified nodes to the specified XML file, or for all of the nodes in the cluster if none are specified.

Syntax

Copy Code
Parameter Set: Name

Export-HpcDHCPReservations [-Name] <String[]> -Path <String> [-Force] [-Scheduler <String> ] [ <CommonParameters>]
Parameter Set: Node

Export-HpcDHCPReservations -Node <HpcNode[]> -Path <String> [-Force] [-Scheduler <String> ] [ <CommonParameters>]


Detailed Description

Saves information about the DHCP reservations for the specified node to the specified XML file, or for all of the nodes in the cluster if none are specified. You can specify the nodes by name or by HpcNode objects that represent the nodes.

DHCP reservations of IP addresses are based on media access control (MAC) addresses. Each reserved IP address is linked to the MAC address of the network adapter to which that IP address will be assigned.

Parameters

-Force

Replaces the specified XML file if it already exists, without prompting the user.


Aliases

none

Required?

false

Position?

named

Default Value

not applicable

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String[]>

Specifies the names of the nodes for which you want to export DHCP reservations. You cannot specify both the Name and Node parameters. To see a list of nodes for the HPC cluster, use the Get-HpcNode command.


Aliases

none

Required?

true

Position?

1

Default Value

no default

Accept Pipeline Input?

false

Accept Wildcard Characters?

true

-Node<HpcNode[]>

Specifies a list of the nodes for which you want to export DHCP reservations. You cannot specify both the Node and Name parameters. To get an HpcNode object for a node, use the Get-HpcNode command.


Aliases

none

Required?

true

Position?

named

Default Value

no default

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Path<String>

Specifies a name for the XML file in which you want to save the information about the DHCP reservations for the nodes, including the full or relative path to the file, if the Export-HpcDCHPReservations cmdlet should not save the file in the current directory.


Aliases

none

Required?

true

Position?

named

Default Value

no default

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Scheduler<String>

Specifies the host name or IP address of the head node of the HPC cluster for which you want to export DHCP reservations. The value must be a valid computer name or IP address. If you do not specify the Scheduler parameter, this cmdlet uses the scheduler on the head node that the CCP_SCHEDULER environment variable specifies. To set this environment variable, run the following cmdlet:

Set-Content Env:CCP_SCHEDULER <head_node_name>


Aliases

none

Required?

false

Position?

named

Default Value

%CCP_SCHEDULER%

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • An HpcNode object

Outputs

The output type is the type of the objects that the cmdlet emits.

  • None

Notes

  • You must be a cluster administrator to run this cmdlet successfully.

  • This cmdlet is supported only for Windows HPC Server 2008 R2.

Examples

EXAMPLE 1

Saves information about the DHCP reservations for all of the compute nodes in the cluster to the file at C:\Reservations\AllNodes.xml.


  Copy Code
Export-HpcDHCPReservations –Path C:\Reservations\AllNodes.xml

EXAMPLE 2

Saves information about the DHCP reservations for the compute nodes named ComputeNode1 and ComputeNode2 to the file at C:\Reservations\ComputeNodes1and2.xml.


  Copy Code
Export-HpcDHCPReservations –Node ComputeNode1,ComputeNode2 –Path C:\Reservations\ComputeNodes1and2.xml

EXAMPLE 3

Gets the HpcNode object for the compute node named ComputeNode4, then specifies that object in the Export-HpcDHCPReservations cmdlet to save information about the DHCP reservations for that node to the file at C:\Reservations\ComputeNode4.xml. This example overwrites the file without prompting the user if the file already exists.


  Copy Code
Get-HpcNode –Name ComputeNode4 | Export-HpcDHCPReservations –Path C:\Reservations\ComputeNode4.xml -Force

Related topics