Highlighted
Super Contributor.
Super Contributor.
131 views

Count a list of Strings in a CI Attribute

Hi All,

Quick question, is it possible to use an Enrichment rule to count a list of strings contained within an attribute of the same CI?

If so how is this done as I'm not seeing how this can be done at present. if you have to use another mechaism to an Enrichment rule that is fine, but I'd just like to count the entries in a list of strings for a CI attribute.

Thanks,

Dave

0 Likes
3 Replies
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Count a list of Strings in a CI Attribute

Hi Dave,

It's not directly doable with enrichments. That's also not the best way performance wise.

If this list of strings is discovered, then it could be good to patch the discovery job, in order to fill the attribute at discovery time.

If it's user handled, then it's probably better to do the same on the push/report that you expect to use.

Could you share a little bit more about the usage you'll have of it ?

Regards.

 

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: Count a list of Strings in a CI Attribute

Hi Xavier,

Basically its to do with our service modelling. We are using excel spreadsheets to import our Business Service, Business Application, Owner and then the nodes that make up the Business Application. There is then the relationship sheet that creates all the links.

Once the spreadsheet is imported there are enrichment rules to workout if the nodes existed as a discovered server or if it was created as part of the import by spreadsheet. If it wasn't found and was created by the spreadsheet import its added to the missing node attribute part of the Business Application. There is also an enrichment rule to remove any nodes from this attribute when discovery does actually discover the missing node.

All I'm looking to do is count how many nodes exist in Missing Node attribute for Business Application.

Thanks,

Dave

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Count a list of Strings in a CI Attribute

Hi, 

 

You can use reports and the export functionality. You can create a simple view for your specific CIT and in the reports tab, you can select the attribute in question for having it in the layout of the view's report. 

Then in the reports module, you can export to csv or xls containing all the values for that attribute. After that you can create a count function in an external tool. 

 

Best regards,

Radu A.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.