Sean Onion suggested "use the global alarm ID attribute" which solved my issue.
The variable is named "$GLOBAL_ALARM_ID"


From the CA Spectrum Infrastructure Manager AlarmNotifier User Guide 
(Spectrum_AlarmNotifier_User_ENU.pdf):

Global AlarmID

Specifies a unique numeric identifier assigned to the alarm by CA Spectrum. 
This differs from the AlarmID in that it is not just unique within the CA 
Spectrum environment, but can be passed as a unique identifier to other 
environments. This is useful when you need to pass a unique identifier to 
third-party software. An example of a Global AlarmID is 
406978f6-0336-1000-012c-000d5632d07e. By default, Global AlarmID is commented 
out in each of the scripts. For this parameter to be passed, the comment mark 
(#) must be removed.


Thanks Sean!
--Mark S

Mark Serencha – Inforonics Global Services, LLC – (m) +1-781-439-0519 
– Mark.Serencha_AT_inforonics.com


-----Original Message-----
From: Mark Serencha 
Sent: Thursday, June 07, 2012 12:38 PM
To: spectrum
Subject: Spectrum Web Services API and Alarm ID's

Hello Spectrum folks,

We are using alarm notifier to have Spectrum send alarm messages to a 
third-party ticketing system.
Our desire is to have the ticketing system use the Web Services API to 
acknowledge the alarm and insert the corresponding ticket number into Spectrum.

In order to ack and send the a ticket number to Spectrum, the ticket system 
will need to issue an HTTP “PUT” command to OneClick, of the form:

    PUT 
'http://hostname/spectrum/restful/alarms/4fce5641-e7e1-10c7-029d-005056b0bcef?attr=0x12022&val=ABC123&attr=0x11f4d&val=1'

This will send the ticket number "ABC123" to the Spectrum alarm uniquely 
identified by the GUID "4fce5641-e7e1-10c7-029d-005056b0bcef"
I have tested this method successfully in my lab with the "curl" command line 
program.

However, I've run into a problem.
The Web Services URL’s expect a GUID value for the alarm ID,
but the outbound email messages contain an integer value for the alarm ID 
(variable #5 passed to SetScript).

I am still researching how to translate one ID to the other, or if this 
translation can be done at all.
I will ask CA as well, but does anyone out there have any ideas ?

PS - the ticket system is BMC Remedy, in case someone has a better integration 
method in mind.
CA removed its own Remedy integration in v9.0.

Thank you,
--Mark S

Mark Serencha – Inforonics Global Services, LLC – (m) +1-781-439-0519 –  
Mark.Serencha_AT_inforonics.com 


---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body: 
unsubscribe spectrum arch...@mail-archive.com

Reply via email to