Adding SysUpTime attribute value to alarm table list in OneClick
search cancel

Adding SysUpTime attribute value to alarm table list in OneClick

book

Article ID: 259013

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

We have the requirement to include the SysUpTime attribute as a column on Alarm list. How can that be done?

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=Wzr4FZ23K+dUkJ7DrCW8ZA==

Environment

Release : 21.2

Resolution

the steps would be a combination of the steps in

Adding columns to OneClick Alarms tab
https://knowledge.broadcom.com/external/article?articleId=47627

How to convert sysUptime for use in Spectrum OneClick customizations?
https://knowledge.broadcom.com/external/article?articleId=51482

1. Navigate to $SPECROOT/custom/alarm/config directory

2. Create a file called "alarm-table-config.xml" (or updated it if already exists)

3. Paste this code into the file: 

<?xml version="1.0" encoding="utf-8"?>
 <table idref="alarm-table-config">
  <column-list>
   <column>
     <name>System Up Time</name>
     <content>
           <attribute>0x10245</attribute>
        <renderer>com.aprisma.spectrum.app.util.render.SysUpTimeRenderer</renderer>
     </content>
   </column> 
  </column-list>
 </table>

   If the alarm-table-config.xml already exist, then just add the <column> ... </column> section inside the <column-list> tags.

4. Launch a new OneClick console to see the results. If you use OneClick WebApp, then click the X on the OneClick window to close it, and launch the OneClick WebApp again

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=3ofyBGOUtSQ4ONFbF+iZZQ==