Hello,
I want to write a python script that could get the slave information. The information I want to get is when a slave is stalled, offline, or disabled. I want to automate the process. Then I want to be able to print out the automation.
Thank You,
Sreyeesh
I’ve done almost exactly the same thing recently.
Check out running ‘deadlinecommand getslaves true’, this will write out an INI file in the deadline temp folder which you can then parse and read if slaves are stalled etc. You can also use deadlinecommand remotecontrol {slave} ForceReLaunchSlave to try to fix some machines, but often the connection is dead and this won’t work. What I did was to make our monitoring script write a temp file to say a slave had stalled and deadline couldn’t fix it, and then have another script which runs on each blade to periodically check to see if it’s listed as stalled by checking for this temp file.
1 Like
I’m a little new to python. Do you have an example how you started to layout the script ?
There’s this handy thing I wrote in 2015: