How to determine if running on a MS HPC headnodeHi,<br/><br/>I am developing a Python tool for submitting jobs (reservoir simulation case) to Microsoft Compute Cluster (CCS1 and HPC) or running directly on a Windows machine. <br/>The tool runs fine when submitting jobs with 'job submit' command, however user is also able to run an executable directly on a Windows machine and here the problem starts - I need to check if I am running on a headnode to pick up different executable (the one which uses MS MPI rather than MPI).<br/><br/>In the past I was checkng for presence of CcsScheduler process running, but it doesn't seem to be the best approach since HPC renamed the process and my condition is no longer valid.<br/><br/>I will appreciate any help.<br/><br/>Thanks,<br/>Krzysztof© 2009 Microsoft Corporation. All rights reserved.Wed, 24 Jun 2009 22:06:49 Z801196fe-b250-4f2b-b7f7-c91a81de7056http://social.microsoft.com/Forums/en-US/windowshpcsched/thread/801196fe-b250-4f2b-b7f7-c91a81de7056#801196fe-b250-4f2b-b7f7-c91a81de7056http://social.microsoft.com/Forums/en-US/windowshpcsched/thread/801196fe-b250-4f2b-b7f7-c91a81de7056#801196fe-b250-4f2b-b7f7-c91a81de7056Krzysztof Szawalahttp://social.microsoft.com/Profile/en-US/?user=Krzysztof%20SzawalaHow to determine if running on a MS HPC headnodeHi,<br/><br/>I am developing a Python tool for submitting jobs (reservoir simulation case) to Microsoft Compute Cluster (CCS1 and HPC) or running directly on a Windows machine. <br/>The tool runs fine when submitting jobs with 'job submit' command, however user is also able to run an executable directly on a Windows machine and here the problem starts - I need to check if I am running on a headnode to pick up different executable (the one which uses MS MPI rather than MPI).<br/><br/>In the past I was checkng for presence of CcsScheduler process running, but it doesn't seem to be the best approach since HPC renamed the process and my condition is no longer valid.<br/><br/>I will appreciate any help.<br/><br/>Thanks,<br/>KrzysztofThu, 28 May 2009 14:44:55 Z2009-05-28T14:44:55Zhttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/801196fe-b250-4f2b-b7f7-c91a81de7056#b23595a4-ab5e-465f-9ec8-86cb86222e64http://social.microsoft.com/Forums/en-US/windowshpcsched/thread/801196fe-b250-4f2b-b7f7-c91a81de7056#b23595a4-ab5e-465f-9ec8-86cb86222e64Josh Barnardhttp://social.microsoft.com/Profile/en-US/?user=Josh%20BarnardHow to determine if running on a MS HPC headnodeI believe the v2 scheduler process is HPCScheduler if that helps at all.  You can also try running cluscfg view (or from PSH Get-HpcClusterOverview) which will provide you the name of the scheduler you are connecting too . . . you can just compare that to the name of the machine you're currently running on.<br/><br/>Thanks,<br/>Josh<hr class="sig">-JoshThu, 28 May 2009 19:10:35 Z2009-05-28T19:10:35Zhttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/801196fe-b250-4f2b-b7f7-c91a81de7056#ea33eaa0-d791-441b-ac68-d3d58070977ahttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/801196fe-b250-4f2b-b7f7-c91a81de7056#ea33eaa0-d791-441b-ac68-d3d58070977aKrzysztof Szawalahttp://social.microsoft.com/Profile/en-US/?user=Krzysztof%20SzawalaHow to determine if running on a MS HPC headnodeHi Josh,<br/><br/>Thanks for reply.<br/><br/>Another question emerges: 'is Cluster Name always the same as headnode machine's name?'.<br/>I have seen quite a few CCS/HPC clusters and in every case the cluster's and headnode's name were the same, however is it always the case?<br/><br/>Regards,<br/>KrzysztofFri, 29 May 2009 08:48:22 Z2009-05-29T08:48:22Zhttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/801196fe-b250-4f2b-b7f7-c91a81de7056#1f87ecb8-c399-4871-969a-37982c74bd4ahttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/801196fe-b250-4f2b-b7f7-c91a81de7056#1f87ecb8-c399-4871-969a-37982c74bd4aDon Patteehttp://social.microsoft.com/Profile/en-US/?user=Don%20PatteeHow to determine if running on a MS HPC headnodeYep, we use the name of the head node to identify the cluster.Wed, 24 Jun 2009 22:06:44 Z2009-06-24T22:06:44Z