Just doing some tests on a new Monitor script and I’d like to mark a slave as offline. Is this possible? Had a look through the docs, managed to disable selected slaves, but not mark as offline.
[code]from System.IO import *
from System import *
from Deadline.Scripting import *
def main():
selected_slaves = MonitorUtils.GetSelectedSlaveInfos()
for slave in selected_slaves:
slaveSettings = RepositoryUtils.GetSlaveSettings(slave.SlaveName, True)
# Disable the slave
slaveSettings.SlaveEnabled = False
# How to make slave offline?
[/code]
So I have looked into this and what you need to change is the slave info option slavestate from Idle to Offline, and some sample code that would potentially be a start in writing your own code that would do this is posted at github.com/ThinkboxSoftware/Dea … rideIPs.py and the keys here are: