Hi,
I am trying to populate number of CPUs discovered for Unix node to a custom attribute(For Unix, CPU will be discovered as related CI). How can I achieve this.
Regards,
Sridhara.
Cybersecurity
DevOps Cloud
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it!  Learn more
Hi,
I am trying to populate number of CPUs discovered for Unix node to a custom attribute(For Unix, CPU will be discovered as related CI). How can I achieve this.
Regards,
Sridhara.
Hi Sridhara,
Usually, the Enrichment Rule is aimed to do this. However, for your request, it cannot be achieved by a single enrichment rule. Here is an 'ugly' approach.
Create an enrichment rule with the following query conditions.
Define a rule to update the custom attribute to 2.
The above enrichment rule will detect nodes which have exactly 2 related CPU CIs and set the custom attribute on node to 2. Since this is hardcoded, you need to create multiple enrichment rules for different cardinality.
Below is the enrichment rule I created for your reference.
Thanks,
Leslie