How to use C shell and Korn shell to manage a Windows HPC Server cluster?

(On behalf of Christina Carter)

 

Did you know you can use the familiar C shell and Korn shell under SUA (Subsystem for UNIX-based Applications) to call our PowerShell commands? If you have Windows Server 2003 R2, Windows Server 2008 or Windows Vista Ultimate and Enterprise editions, then you can install SUA and try it out.

 

Here are the steps:

1. Install SUA via Add/Remove Windows Components. See this post for how to do that on Vista, and see this one for Windows Server 2003 R2.

2. Here are a few commands you can use in C Shell (You need to substitute "headnode" with your head node name)

 

cd /dev/fs/C/Windows/System32/WindowsPowerShell/v1.0/
./powershell.exe -command get-hpcnode -scheduler headnode
alias nodelist ./powershell.exe -command get-hpcnode -scheduler headnode
nodelist
nodelist | grep Online

 

See this post on more info about how PowerShell and SUA work together. There's a comment in this blog also talks about using class UNIX commands in SUA. (Search for the "SUA" wording)