KSC Open API
Kaspersky Security Center API description
array UserDevicesApi::GetCommands ( int  lDeviceId)

Acquires states of active commands (not completed, not failed, etc.) posted to the specified device.

Parameters:
lDeviceId(int) device id
Returns:
(array) array, each element describes the command and its state (see Device commands)