We have the requirement to include the SysUpTime attribute as a column on Alarm list. How can that be done?
Release : 21.2
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