Spectrum OneClick SysUpTimeRenderer renderer does not properly render the snmpEngineTime attribute id 0x230c53
search cancel

Spectrum OneClick SysUpTimeRenderer renderer does not properly render the snmpEngineTime attribute id 0x230c53

book

Article ID: 198283

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

Spectrum OneClick SysUpTimeRenderer renderer does not properly render the snmpEngineTime attribute id 0x230c35

The following entry was added to the table-model-config.xml file for the snmpEngineTime attribute id 0x230c35

<column>
   <name>SNMP Engine Time</name>
      <content>
        <attribute>0x230c53</attribute>
        <renderer>com.aprisma.spectrum.app.util.render.SysUpTimeRenderer</renderer>
      </content>
 </column>

However, the value displayed in the OneClick List tab is far to small.

Environment

Release : Any

Component : Spectrum OneClick Customization

Cause

The SysUpTimeRenderer renderer is specifically created to convert TimeTicks data type attributes like SysUpTime. The snmpEngineTime attribute id 0x230c53 is Integer not TimeTicks.

 

Resolution

We can use TimeElapsedRenderer instead of SysUpTimeRenderer.

For this example, edit

Spectrum/custom/common/config/table-model-config.xml

add the new column

<column>
   <name>SNMP Engine Time</name>
   <content>
     <attribute>0x230c53</attribute>
     <renderer>com.aprisma.spectrum.app.util.render.TimeElapsedRenderer</renderer>
   </content>
</column>

The custom column in list view looks as follows:

This matches the value in seconds in mib tools.