search cancel

When running a "GET alarms" Spectrum REST API and including the Event_ID_List attribute id 0x11f52, the output shows garbage characters for the values

book

Article ID: 190759

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

When running a "GET alarms" Spectrum REST API and including the Event_ID_List attribute id 0x11f52, the output shows garbage characters for the values. For example, when running the following:

http://spectrum:8080/spectrum/restful/alarms/?attr=0x11f52

The results are as follows:

<alarm-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response" total-alarms="1" throttle="1" error="EndOfResults">
<alarm-responses>
<alarm id="5ebb89d5-d97e-1000-00e5-0080104a3984">
<attribute id="0x11f52">[[[email protected]</attribute>
</alarm>
</alarm-responses>
</alarm-response-list>

Environment

Release : ANY

Component : Spectrum Core / SpectroSERVER

Cause

The Event_ID_List attribute id 0x11f52 is a packed octet data type. The RETS API has no functionality to display packed octet attributes.

Resolution

Use the Originating_Event attribute id 0x1296e instead of the Event_ID_List attribute id 0x11f52 to display event information about the alarm. For example:

http://spectrum:8080/spectrum/restful/alarms/?attr=0x1296e

The results are as follows:

<alarm-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response" total-alarms="1" throttle="1" error="EndOfResults">
<alarm-responses>
<alarm id="5ebb89d5-d97e-1000-00e5-0080104a3984">
<attribute id="0x1296e">
High Aggregate CPU Utilization. The average CPU Utilization of 93% for all CPU instances has exceeded the 85% threshold on model device for more than the acceptable time period.
</attribute>
</alarm>
</alarm-responses>
</alarm-response-list>