Programmatically apply a template to a node cluster<p>Hi there,<br/><br/>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.<br/><br/>## Set network topology to public network topology<br/>Set-HpcNetwork -Topology Public -Public intel*<br/>## Set install credential<br/>Set-HpcClusterProperty -InstallCredential username</p> <p>## Set naming series<br/>Set-HpcClusterProperty -NodeNamingSeries MyCluster%1000%<br/> <br/><br/>## Apply the node template to all unknown compute nodes.</p> <p>Get-hpcnode -State unknown -GroupName computenodes | Assign-HpcNodeTemplate -Name defaultnode* -Confirmfalse</p> <p>## Bring all the offline nodes to the online state.</p> <p>Get-HpcNode -State offline -GroupName computenodes | Set-HpcNodeState -State online<br/><br/>Any HPC .NET pointers will be much apprciated.<br/><br/>Thanks in advance,<br/>Natalia</p>© 2009 Microsoft Corporation. All rights reserved.Thu, 25 Jun 2009 02:00:25 Z306c4ae6-1b97-490a-b8a6-908e4ae5d735http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/306c4ae6-1b97-490a-b8a6-908e4ae5d735#306c4ae6-1b97-490a-b8a6-908e4ae5d735http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/306c4ae6-1b97-490a-b8a6-908e4ae5d735#306c4ae6-1b97-490a-b8a6-908e4ae5d735nadebowhttp://social.microsoft.com/Profile/en-US/?user=nadebowProgrammatically apply a template to a node cluster<p>Hi there,<br/><br/>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.<br/><br/>## Set network topology to public network topology<br/>Set-HpcNetwork -Topology Public -Public intel*<br/>## Set install credential<br/>Set-HpcClusterProperty -InstallCredential username</p> <p>## Set naming series<br/>Set-HpcClusterProperty -NodeNamingSeries MyCluster%1000%<br/> <br/><br/>## Apply the node template to all unknown compute nodes.</p> <p>Get-hpcnode -State unknown -GroupName computenodes | Assign-HpcNodeTemplate -Name defaultnode* -Confirmfalse</p> <p>## Bring all the offline nodes to the online state.</p> <p>Get-HpcNode -State offline -GroupName computenodes | Set-HpcNodeState -State online<br/><br/>Any HPC .NET pointers will be much apprciated.<br/><br/>Thanks in advance,<br/>Natalia</p>Wed, 17 Jun 2009 22:22:00 Z2009-06-17T22:22:00Zhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/306c4ae6-1b97-490a-b8a6-908e4ae5d735#aeb89e3e-e8dc-4a42-9101-ab00c3bb7d7fhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/306c4ae6-1b97-490a-b8a6-908e4ae5d735#aeb89e3e-e8dc-4a42-9101-ab00c3bb7d7fyidingzhttp://social.microsoft.com/Profile/en-US/?user=yidingzProgrammatically apply a template to a node clusterI'm afraid management related APIs are not public and supported. So you cannot do that.<br/><br/>You can call PowerShell cmdlets from C# API, but we don't gurantte PowerShell back-compatibility on <strong>binary level</strong> so your C# code will have problem working with HPC Server 2008 R2 client/cluster. (Syntax level back-compat is supported so those <strong>scripts</strong> will still run in HPC Server 2008 R2.).Thu, 18 Jun 2009 06:52:30 Z2009-06-18T06:52:30Z