How to change the icon label information seen in Spectrum OneClick device models.

book

Article ID: 52633

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

By default, for device model icons, Spectrum OneClick displays the Model Name and the Device Type of the model. The solution explains how this can be changed to display additional or other information by modifying OneClick xml files.

Environment

Release: Any
Component: SPCOCK

Resolution

If you would rather display the Model Name and Network Address instead of the Model Name and the Device Type, do the following:

Several xml filestmust be modified and are located in the directory:

$SPECROOT/tomcat/webapps/spectrum/WEB-INF/topo/config.

Specifically, the following files:

  • oneclick-device-iconbase-config.xml
  • oneclick-node-iconbase-config.xml
  • oneclick-router-iconbase-config.xml
  • oneclick-snmp-iconbase-config.xml

In each of these files, there is the following:


<column-list> <field-column> <column idref="column-modelname-config"/> <column idref="column-devicetype-config"/> </field-column> </column-list>

By default, OneClick displays the Model Name and Device Type. To change it to display Model Name and Network Address, you must change the above to the following:


<column-list> <field-column> <column idref="column-modelname-config"/> <column idref="column-networkaddress-config"/> </field-column> </column-list>

Removing the Device Type and replacing it with Network Address.

After making the above changes, you must log out of OneClick and log back in to see the changes.

Best practice for OneClick customizations is to first copy the files to the $SPECROOT/custom directory structure and then modify the file in the customer directory structure.For example, copy the files:

From: $SPECROOT/tomcat/webapps/spectrum/WEB-INF/topo/config
To: the $SPECROOT/custom/topo/config directory

Then modify the files in the $SPECROOT/custom/topo/config directory.

Files in the custom directory structure take precedence over files in the default directory structure and you do not have to worry about your customizations being overwritten by future upgrades and patch installations.

Additional Information

An Example to display Network Address in addition to Model Name would be as follows:

<column-list>
        <field-column>
          <column idref=“column-modelname-config”/>
          <column idref=“column-devicetype-config”/>
          <column idref=“column-networkaddress-config”/>
        </field-column>
      </column-list>

Please reference the "OneClick Customization" section of the documentation for more information.