Poser une questionPoser une question
 

TraitéeProgrammatically apply a template to a node cluster

  • mercredi 17 juin 2009 22:22nadebow Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     

    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

Réponses

  • jeudi 18 juin 2009 06:52yidingzMSFTMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    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.).

Toutes les réponses

  • jeudi 18 juin 2009 06:52yidingzMSFTMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    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.).