Operation Integer getDeviceStatus (String devicename, String system_name), in Class Device

Documentation
return the status of the device
0 OK
-1 bad