I’m writing a script through SOAP using perl that needs the following list of information pulled using the Computer Name:
CPU
Computer Model
Last Report Time
User Name
OS
RAM
Currently I have the below relevance which is the closest I’ve been able to pull but only works for ‘Last Report Time’ and ‘User Name’ out of the values I need.
values of results from (bes property whose (name of it = “Last Report Time”)) of (bes computer whose (name of it as lowercase = “hostname”))
This also only pulls one value at a time. I’m not sure if it’s possible to pull multiple items at once, but that would be preferable. I only started reading up on relevance in the last week or two so any suggestions/tips are more than welcome.
(
values of results from (bes property whose (name of it = “CPU”)) of it,
values of results from (bes property whose (name of it = “Computer Model - Windows”)) of it,
values of results from (bes property whose (name of it = “Last Report Time”)) of it,
values of results from (bes property whose (name of it = “User Name”)) of it,
values of results from (bes property whose (name of it = “OS”)) of it,
values of results from (bes property whose (name of it = “RAM”)) of it
) of (bes computer whose (name of it as lowercase = “traders”))
There are a few items which are properties of the BES Computer class, so it is also possible to do this:
(
cpu of it,
values of results from (bes property whose (name of it = “Computer Model - Windows”)) of it,
last report time of it,
values of results from (bes property whose (name of it = “User Name”)) of it,
operating system of it,
values of results from (bes property whose (name of it = “RAM”)) of it
) of (bes computer whose (name of it as lowercase = “traders”))
How do we find out about the properties available for the Session Relevance inspectors/classes?
Great, that will work for what I’m trying to do. The only problem I’m running into with it now is for RAM. There are multiple names in the RAM properties in Web Reports.
ie RAM in Web Reports has four different listings:
RAM
RAM (Hardware Information)
RAM (*** Hardware Information)
RAM (Workstation Inventory)
Under Site (where I the reserved comes from with OS and CPU) it says ‘Predefined’ I’ve tried just throwing it in like served but that did not work.
This is the code right now with RAM being the only thing not working.
(
values of results from (bes property whose (name of it = “CPU” AND reserved flag of it = true)) of it,
values of results from (bes property whose (name of it = “Computer Model - Windows”)) of it,
values of results from (bes property whose (name of it = “Last Report Time”)) of it,
values of results from (bes property whose (name of it = “User Name”)) of it,
values of results from (bes property whose (name of it = “OS” AND reserved flag of it = true)) of it,
values of results from (bes property whose (name of it = “RAM”)) of it,
values of results from (bes property whose (name of it = “Computer Name”)) of it
) of (bes computer whose (name of it as lowercase = “hostname”))
Thanks for the information about the search page. I have been playing with the Session Relevance Tester but had not noticed the Inspector Reference tab so that also helped.