Web Services are used to get the total count of alarms from OneClick using GET or POST methods so that we can pass the same to third party database. By default the symptom alarms are hidden in OneClick but the same are visible in Web Services output when you send a GET or POST request to SpectroSERVER.
This solution helps you with filtering these symptom alarms from the output of Web Service.
The following REST verbs are supported in the CA Spectrum Web Services API. All operations respect standard CA Spectrum user security.
We use the Alarms resource to read, modify, and delete CA Spectrum alarms. Asynchronous responses are supported.
This solution will use the Get Tunneling (POST) to filter the Symptom alarms. All the symptom alarms will have the "CauseCount" value greater than ' 1 '. In this solution you will use a condition in the xml to get the actual count of alarms in Oneclick. All the alarms reporting an issue will have the "CauseCount" equals to '0'.
This Solution uses Google Chrome rest client to execute the xml file.
URL: Give http://<OC hostname:port> /spectrum/restful/alarms? Method : POST Headers: content-type:application/xml Data: <?xml version="1.0" encoding="UTF-8"?><!-- CA Technologies, Inc. One CA Plaza Islandia, NY 11749 USA Copyright (c) 2012 CA Technologies, Inc. All rights reserved.
IN NO EVENT SHALL CA TECHNOLOGIES INCORPORATED BE LIABLE FOR ANY INCIDENTAL, INDIRECT, SPECIAL, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING BUT NOT LIMITED TO LOST PROFITS) ARISING OUT OF OR RELATED TO THIS SOFTWARE, EVEN IF CA TECHNOLOGIES INCORPORATED HAS BEEN ADVISED OF, KNOWN, OR SHOULD HAVE KNOWN, THE POSSIBILITY OF SUCH DAMAGES. --> ENVIRONMENT PROFILE EXISTS = <rs:alarm-request throttlesize="10" xmlns:rs="http://www.ca.com/spectrum/restful/schema/request" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../xsd/Request.xsd"><!-- This xml can be posted to the Alarms URL to obtain attributes on the specified alarms --><!-- Attributes of Interest --><rs:attribute-filter><search-criteria xmlns="http://www.ca.com/spectrum/restful/schema/filter"><filtered-models><equals><attribute id="0x12a07"><value>0</value></attribute></equals></filtered-models></search-criteria></rs:attribute-filter><rs:requested-attribute id="0x11f53" /><rs:requested-attribute id="0x10000" /><rs:requested-attribute id="0x11f56" /><rs:requested-attribute id="0x12b4c" /><rs:requested-attribute id="0x11f4d"/><!-- Alarms of Interest --></rs:alarm-request>Click on send.
The output is displayed in the data column at the bottom of the same page. This contains the actual alarms displayed after filtering the symptom alarms. The output can be fed into the third part database or dashboard with some sort of scripting.