Re: OMi: EPI Groovy Script (712 Views)
Reply
Frequent Advisor
dibe
Posts: 91
Registered: ‎11-10-2003
Message 1 of 2 (723 Views)

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

Honored Contributor
Amit Erental
Posts: 1,128
Registered: ‎07-05-2009
Message 2 of 2 (712 Views)

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.