Programmatically apply a template to a node cluster RRS feed

  • Question

  • Hi there,

    Got a question.  I noticed quite a few PowerShell samples to perform the configuration step of the HPC.  I am interested if it is possible to perform the configuration steps in the To-do List programmatically using the HPC .NET APIs.

    ## Set network topology to public network topology
    Set-HpcNetwork -Topology Public -Public intel*
    ## Set install credential
    Set-HpcClusterProperty -InstallCredential username

    ## Set naming series
    Set-HpcClusterProperty -NodeNamingSeries MyCluster%1000%

    ## Apply the node template to all unknown compute nodes.

    Get-hpcnode -State unknown -GroupName computenodes | Assign-HpcNodeTemplate -Name defaultnode* -Confirmfalse

    ## Bring all the offline nodes to the online state.

    Get-HpcNode -State offline -GroupName computenodes | Set-HpcNodeState -State online

    Any HPC .NET pointers will be much apprciated.

    Thanks in advance,

    Wednesday, June 17, 2009 10:22 PM


  • I'm afraid management related APIs are not public and supported. So you cannot do that.

    You can call PowerShell cmdlets from C# API, but we don't gurantte PowerShell back-compatibility on binary level so your C# code will have problem working with HPC Server 2008 R2 client/cluster. (Syntax level back-compat is supported so those scripts will still run in HPC Server 2008 R2.).
    Thursday, June 18, 2009 6:52 AM