AWS Thinkbox Discussion Forums

Restart machine after current task via Deadline command?

Is there a flag I can use so I get this behaviour the same way I could get from right-clicking in monitor? The checked the /help and it seems to only have RestartMachine as is?

deadlinecommand.exe RemoteControl Slave-Name RestartMachine

You can use something like deadlinecommand.exe RemoteControl MACHINE-NAME OnLastTaskComplete RestartSlave

Here’s the whole help file snippet for RemoteControl, pulled from the output of deadlinecommand.exe -help:

RemoteControl
Send the remote command to the Deadline Launcher running on the specified
machine(s).
[Machine Name(s)] The machine name, or a list of machine names
separated by commas.
[Remote Command] The remote command. The available commands are
StopLauncher, LaunchSlave, LaunchAllSlaves,
LaunchNewSlave, RemoveSlave, LaunchSlaveDelay,
StopSlave, RelaunchSlave, ForceStopSlave,
ForceRelaunchSlave, OnLastTaskComplete,
LaunchPulse, StopPulse, RestartPulse,
RemotePulseCommand, LaunchProxyServer,
StopProxyServer, RestartProxyServer,
LaunchBalancer, StopBalancer, RestartBalancer,
RemoteBalancerCommand, LaunchMonitor,
StopMonitor, StopConfig, RestartMachine,
StartMachine, ShutdownMachine, Execute,
ExecuteNoWait
[Argument] The argument for LaunchSlave, LaunchNewSlave,
and RemoveSlave is the name of the Worker. The
argument for Execute and ExecuteNoWait is the
command to execute. Valid arguments for
OnLastTaskComplete are Continue, StopSlave,
RestartSlave, CheckForTasks, CancelTask,
ClearFailureCache, ShutdownMachine [comment] and
RestartMachine [comment]. [comment] is a message
that can be sent to explain why the shutdown or
restart machine command was executed. It will be
recorded in the machines event log. Valid
arguments for RemotePulseCommand are
HouseCleaning, PendingJobScan, RepositoryRepair,
and PowerManagement. Valid arguments for
RemoteBalancerCommand are Balancing.

1 Like

Something for those a little less computer savvy. You can get that whole dump stuffed into a text file if you run:

deadlinecommand.exe -help > deadlinehelp.txt

That’ll make it a lot easier to use inside of a text editor like Notepad.

1 Like
Privacy | Site terms | Cookie preferences