I use the below query for getting the server details.
It will work for the instance where the computer name is shortname (NOT FQDN) in tool and as well bigfix console.
This query doesn’t get me the results if the server name is tagged with FQDN in bigfix console and user provides the short name.
My requirement is: If the user inputs with or without FQDN, The results will be populated from bigfix console.
((name of it) & “|” & (concatenation “” of values of results from ( bes properties whose (name of it = “OS”)) of it) & “|” & (concatenation “|” of values of results from ( bes properties whose (name of it = “Last Report Time”)) of it)) of bes computers whose ((preceding text of first “.” of (name of it as string & “.”)) is contained by set of ( “Server1”;“Server2”))
any reason you use the bes properties to get operating system and last report time ?
Those are available directly as properties of the bes computer object. (name of it, last report time of it, operating system of it) of bes computers
That clause works perfectly on my system. Are you casting for case - because it is case sensitive so you need to cast everything to the same case as @strawgate shows above.
I didn’t case the computer name to lower or upper case.
(name of it, last report time of it, operating system of it ) of bes computers whose ((preceding text of first “.” of (name of it as string & “.”)) is contained by set of ( “Server1”;“server2”))
This query fails if the user give the server name as short name, but in the bigfix console, it is given as FQDN.
(name of it, last report time of it, operating system of it ) of bes computers whose (preceding text of first "." of (name of it as lowercase & ".") is contained by set of ( "server1";"server2"))