Deadline Slave info

Hi,
What’s the good way to Know if a slave is running or idle on host computer ? With Command ?

I try to get slave name with :
Slave = Slaves.Slaves()
slaveNames = Slave.GetSlaveNames()
for slaveName in slaveNames:
if slaveName == my_computer_name:
slaveInfo = Slave.GetSlaveInfo(slaveName, True)
Slave_State = “Slave State: %s” % slaveInfo.SlaveState
if Slave_State == ‘Rendering’:
return True
return False

But doesn’t work, i have :

from ConnectionProperty import ConnectionProperty
ModuleNotFoundError: No module named ‘ConnectionProperty’

Any idear ?

Thanks

This Problem is Solved