Run Command Wake Up

Where does the “Run Command” run for power management? Does it run on Pulse? Will it also run on workstations that are running Monitor? Is it a Shell command? Is it a Python command? Is there some documentation for this field?

I’m trying to do something like:

$VMHost = Deadline.Slaves[$SLAVE_NAME].UserField1 if (VMHost != "") SendWOL($VMHost) else SendWOL($SLAVE_MAC)

Do I just make that a powershell/python script with some arguments: sendWOL.ps1 {SLAVE_NAME} {SLAVE_MAC}?

Thanks!

The command is a path to an executable and any command line arguments it uses, and it’s only run on Pulse.

So you could wrap your command in a batch file or python script, and pass the necessary arguments to it. For example:

path\to\file.bat {SLAVE_NAME} {SLAVE_MAC}

We’ll make a note to improve the documentation for this.

Cheers,
Ryan

Any chance that could be extended to include more properties like {USERFIELD_1}?

That could get out of hand if we exposed every possible slave property. :slight_smile:

What if you wrote a python script that runs with “deadlinecommand -executescript”? You could set up your command line this:

"C:\Program Files\Thinkbox\Deadline7\bin\deadlinecommand.exe" -ExecuteScript "\\path\to\script.py" {SLAVE_NAME}

Your script.py file could then load the Slave object (since it’s running in the context of Deadline) and pull any additional information it needs.

Cheers,
Ryan