2014-05-21 02:32 PM
Hello All,
The documentation for 10.3 is very confusing when creating a rule, and you want to add a Then Statement to the Rule.
Example: Inventory Rule
Select: alias.host
Where: server exists
The: lookup_and_add('alias.ip')
I get an error for Syntax error as listed below:
Rule action lookup_and_add('alias.ip') contains syntax errors
Does anybody have a very detailed Syntax Rule Guideline, or a sample configuration?
Any help is greatly appreciated.
2014-05-23 02:33 PM
It seems to be you are missing a field in order to have the syntax completed
lookup_and_add (string select, string field)
lookup_and_add (string select, string field, int limit)
lookup_and_add (string select, string field, int limit, boolean inherit)
lookup_and_add (string select, string field, int limit, boolean inherit, string extraWhere)