Computer Name and domain/workgroup not equal to ILO information

(imported topic written by FITZPAW91)

Hello

I am trying to write a relevance that will show me the physical HP servers that DO NOT have the same computername and/or domain/workgroup informaiton as listed in the ILO entry. I have managed to output and read my ILO information, so I can do it manually, but there must be an easier way. Here is what i get

q: computer name != (node values of attributes of selects “DNS_NAME” of it) of xpaths “/RIBCL/LOGIN/RIB_INFO/MOD_NETWORK_SETTINGS” of xml document of file “C:\EXP\ilo\ilo_config.xml”

E: A singular expression is required.

I can’t seem to figure out what it is looking for.

Help please

William

(imported comment written by BenKus)

Hi William,

This is an issue of comparing a single value to a list… If you know there will only be one value, then you can remove the “s”:

q: computer name != (node value of attributes of selects “DNS_NAME” of it) of xpath “/RIBCL/LOGIN/RIB_INFO/MOD_NETWORK_SETTINGS” of xml document of file “C:\EXP\ilo\ilo_config.xml”

Ben

(imported comment written by FITZPAW91)

Thanks Ben,

It worked perfectly. I was so close, and yet so far.

William