Gather client properties through REST API

(imported topic written by manuelra)

Hello,

IEM version is: 9.0.787

How to gather the following properties on the agents through REST API?

Serial Number

User Name

RAM

Disk Space

I’m able to gather some of the clients properties as name, cpu, id, running command:

iem get query --relevance="(name of it, operating system of it, cpu of it, id of it) of bes computers whose (name of it contains “IEM”)"

Any help will be appreciate.

Thanks in advance.

(imported comment written by JesperLarsen)

Hey

You should really go to
http://bigfix.me/search
and search for “RAM”, “HHD” and so on.

http://bigfix.me/search
is the mother repo of tested and functional relevance queries like the ones you are asking.

/J

(imported comment written by jgstew)

The BigFix.me search is a bit of a pain at times.

I typically enter into google BigFix.me

You can also do site:bigfix.me

Also, these are specifically relevant:

HDD:
http://bigfix.me/analysis/details/2994572

RAM:
http://bigfix.me/analysis/details/2994574

CPU / HW:
http://bigfix.me/analysis/details/2994635

HW / SMBIOS:
http://bigfix.me/analysis/details/2994601

HW Info (Win):
http://bigfix.me/analysis/details/2994563

(imported comment written by MattPeterson)

You can use this format to get known properties from an endpoint.
Assuming all the things you listed are actually properties on that computer, your

query would look like this:

((value of results (bes property “Serial Number”, it)), value of results (bes property “User Name”, it), value of results (bes property “RAM”, it), value of results (bes property “Disk Space”, it)) of (bes computer whose (name of it as lowercase = “computername”))