This KB will show you how to use a REST Client to send a query that would return a specific alarm ID that are current.
The example we will be using here is the "0x10701" Management Agent Lost Alarm
We will also be using Postman desktop application but this can be done using any REST Client, including "curl".
<?xml version="1.0" encoding="UTF-8"?> <!-- CA Technologies a Broadcom Company One CA Plaza Islandia, NY 11749 USA Copyright (c) 2015 CA Technologies a Broadcom Company All rights reserved. IN NO EVENT SHALL BROADCOM 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. --> <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 "> <rs:attribute-filter> <search-criteria xmlns="http://www.ca.com/spectrum/restful/schema/filter"> <filtered-models> <and><or> <equals> <attribute id="0x11f50"> <value>0x10701</value> </attribute> </equals> </or></and> </filtered-models> </search-criteria> </rs:attribute-filter> <!-- Attributes of Interest --> <rs:requested-attribute id="0x12b4c" /> <!-- Alarm Title --> <rs:requested-attribute id="0x1006e" /> <!-- Model Name --> <rs:requested-attribute id="0x1295d" /> <!-- ismanage (false when in maintanence mode) --> <rs:requested-attribute id="0x129fa" /> <!-- model handle --> </rs:alarm-request>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <alarm-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response" error="EndOfResults" throttle="1" total-alarms="1"> <alarm-responses> <alarm id="59a20b6b-2c38-1083-02b0-005056830acd"> <attribute id="0x12b4c">MANAGEMENT AGENT LOST</attribute> <attribute id="0x1006e">Sim26259:<deviceName></attribute> <attribute id="0x1295d">true</attribute> <attribute id="0x129fa">0x100c1c</attribute> </alarm> </alarm-responses> </alarm-response-list>