I'm having some difficulties with these operators.
Here's my scenario:
I have OVOW creating tickets in SD Incident using sd_event command parameters.
One of the parameter is the nodename of the server which triggered the msg. The nodename is intended to map with the CI in SD.
So far I have been unable to just extract the hostname of the server, it keeps sending the FQDN. I cant seem to find the variable.
So instead, Ive created another field(CI Trunc) where I can trim off parts of the FQDN and map it to CI. BUT I would like to add in another condition where if only
CI Trunc field contains the words "domain.com" then only trigger the truncation. As there are some node names which are without the FQDN.
After new item has been opened OR After existing item has been opened where NOT (Temp CI is empty) AND Solution contains domain Truncate (Update Data) CI Name Trunc set to (Trim righthand characters of [Temp CI] Number of Chars 16)
If I remove this condition "AND Solution contains domain" it works. But doesnt compare b4 truncating.
Are you saying you want one field in a CI to have the FQDN and CI Trunc to have the this trimmed to remove the "@domain" and you are using a UI rule to do this? If so, I cannot see why this is failing so what does the log file say if you put rule debug on?
Are you doing this so that the incident raised by sd_event can be linked to the correct CI? If this second reason, can you use an import mapping to resolve this; (use the reference to option)?
If you have a field which contains whatever OVOW might pass across, say call it OVOWName, then you can define a mapping which refers to this in the import mapping that sd_event uses. For example, for some of your nodes OVOWName would have the FQDN and for others just the node name.
So when you define the mapping for the CI in the incident, you then use the "A reference to item" option and select the OVOWName field.
This should mean that when sd_event uses this mapping it should work.