UCMDB and UD Practitioners Forum (Previously CMS)
cancel
Showing results for 
Search instead for 
Did you mean: 

OMi: EPI Groovy Script

dibe
Regular Collector

OMi: EPI Groovy Script

Hi all,
setting an EPI script after CI resolution... can I query CI attributes and than modify event with some of these values? If yes, could you give me an example?

Regards,
D

 

 

P.S. This thread has been moved from Application Perf Mgmt (BAC / BSM) Support and News Forum to CMS and Discovery Support and News Forum. - Hp Forum Moderator

1 REPLY
Highlighted
Amit Erental
Honored Contributor

Re: OMi: EPI Groovy Script

Hi,

The only problem here is to get the related CI attributes. update the event is fully documented in the examples (HPBSM\opr\examples\epi-scripts)

From a quick look at the API (/opr/api/doc/opr-external-api-javadoc.zip), it looks like you can get the related CI Id and related CI type, but not the attribute.

one option here is to use the UCMDB API from the groovy script, and get the CI properties by its ID and Type. this will work, but may cause performance issues if you will go to the UCMDB for each event.
//Add this to "OnDomLoad" event