eyce9000 / iem4j

A java library that provides a wrapper to the IBM Endpoint Manager REST API and Webreports API
Apache License 2.0
4 stars 2 forks source link

Action status can not be got while it is running #3

Open ensean opened 9 years ago

ensean commented 9 years ago

//Check the action status BESAPI.ActionResults actionResults = client.getActionStatus(actionReference);

for(ComputerResultType computerResult:actionResults.getComputer()){ System.out.println( "Got status "+computerResult.getStatus()+" for computer "+computerResult.getID()); }

The size of actionResults.getComputer() will always be zero while the action is running, in other words, the status of the action can not be got while it is running

eyce9000 commented 9 years ago

Cannot test this at the moment.

Are you saying that the action results do not show a Computer until that computer is relevant / started running? If you want to see which computers are targeted by an action, you may have to use a relevance query instead. So something like:

names of computers of target set of bes action whose (id of it = 1234)

I will play around with this when I have access to my IEM environment.

ensean commented 9 years ago

During testing in my environment, the status can be get is always "The action runs successfully".(The running status only can be get accidentally...)

When the action is not done on the target computers, the size of actionResults.getComputer() is empty.