Risorse per professionisti IT > Home page del forum > Windows HPC Server Developers - General > Programmatically apply a template to a node cluster
Formula una domandaFormula una domanda
 

Con rispostaProgrammatically apply a template to a node cluster

  • mercoledì 17 giugno 2009 22.22nadebow Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     

    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,
    Natalia

Risposte

  • giovedì 18 giugno 2009 6.52yidingzMSFTMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta
    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.).

Tutte le risposte

  • giovedì 18 giugno 2009 6.52yidingzMSFTMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta
    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.).