We need to enrich Spectrum alarms in UIM. The data is available via Spectrum REST call - did anybody manage to code a Spectrum REST call in an ems "action"?
If yes - could I see some samples how to do that, please?
Yes, similar, only I would like to add a REST call there, to retrieve some attribute values from Spectrum, which I would then put into custom_n fields.
I did some testing, added following code into an action rule:
client = new RESTClient( 'http://192.168.1.139:8080/spectrum/restful' )
I am getting syntax error - the class RESTClient cannot be resolved.
Does anybody know, which classes are supported by the ems Groovy?
Perhaps this will help:
ems Rule Method Reference - CA Unified Infrastructure Management Probes - CA Technologies Documentation
I know the documentation, it shows all the additional classes, CA added for UIM support. REST is a "standard" Groovy class, but it has to be, in normal case "imported" to be available. It seems to me, after doing some testing, "import" is not allowed. So the question ist - which parts of the Groovy language are available at all.
Or is only avialable what the docu shows?
and if not REST, what abour SQL - could I retrieve some Device-Attributes from the UIM Database?
Yes, device attribute info is kept in the database.
I know that, but is there a SQL support in ems?
ems support all the alarm calls only.
for info on a system the webservices rest can be used.
Computer System Calls - CA Unified Infrastructure Management Probes - CA Technologies Documentation
Retrieving data ...