Targeted Computers of Bes Action

(imported topic written by SystemAdmin)

Hey all,

I was wondering what the relevance statement would be if I am trying to find what computers were targeted by an action. What I have right now isn’t quite working…

targeted computers of bes action whose (id of it = 972)

Thanks,

Ilithis

(imported comment written by Lee Wei)

Hi Ilithis,

How is the statement not working? What is the error and what are you expecting?

There are 3 different ways to target while issuing an Action, and there are flags to indicate the targeting method.

If the targeting method is “Property”, then targeted computers will be empty, and we should look at the “Targeting Relevance”.

The flags are:

targeted by id flag

targeted by list flag

targeted by property flag

Example statement:

(if (targeted by id flag of it) then (concatenation "; " of names of targeted computers of it) else (“Not targeted by computers”)) of bes actions

Lee Wei

(imported comment written by SystemAdmin)

Hey Lee,

Sorry for being so vague. In the presentation debugger, the error I get is:

Error: The operator “string” is not defined.

I want to get the hostnames of the computers that were targeted by the action. Say I go to a fixlet and take an action with the name “Microsoft Word” and action id of 972 and target a computer with the hostname LobbyComputer. I want to pass the id or name of the action and get the hostname in return where, in this example, the hostname is LobbyComputer.

I hope that helps describe what I want >.<

Thanks,

Ilithis

(imported comment written by jeremylam)

The message is trying to say (unclearly) that an object of the type “bes computer”, which the "targeted computers of " inspector returns, does not directly return a string. If you want to see the targeted computers, you’ll have to be more specific about what data you want:

names of targeted computers of bes action whose (id of it = 207)

ids of targeted computers of bes action whose (id of it = 207)

etc.

You can see the things you can inspect from a bes computer type by typing into the presentation debugger:

properties of type “bes computer”

Or with the Inspector Search Page results for

bes computer