Hello.
I want to get the ip-addresses of all Linux machines. Here's my query using curl
query=["=", "name", "ipaddress"],["in", "certname",["extract", "certname", ["select-nodes",["and",["=", "name", "kernel"],["=", "value", "Linux"]]]]]
This returns me the ipaddresses of all the machines. If I add an and condition to the two blocks, it returns a query malformed error. Essentially, I want to get nodes that match factA=B and factC=D and return factX. and factY of each matched node.
How do I go about doing this?
--
Abhi