ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.
Adding a custom column to the List tab of Topology views for CA Spectrum OneClick
Article ID: 18985
CA SpectrumDX NetOps
The $SPECROOT/tomcat/webapps/spectrum/WEB-INF/common/config/table-model-config.xml file on the CA Spectrum OneClick system defines the attributes used in the List tab of Topology views in CA Spectrum OneClick. Custom columns can be added for attributes that already have a configured xml file in CA Spectrum OneClick or for attributes that do not currently have a configured xml file in CA Spectrum OneClick. The following are instructions for adding both.
Release: All Supported Releases
Component: SPCOCK - OneClick
Adding an attribute that already has a configured xml file in CA Spectrum OneClick
In this example, we are going to add the SNMP Community String attribute as a new column. Out of the box, the SNMP Community String is defined in the column-community-config.xml file located in the $SPECROOT/tomcat/webapps/spectrum/WEB-INF/topo/config directory.
Log into the OneClick system as the user that owns the Spectrum installation
Create a new file called table-model-config.xml in the $SPECROOT/custom/common/config directory
As per the previous example, "Community Name" will now be a selectable column for the List tab of Topology views which is hidden by default. When selected, the "Community Name" column will display.
NOTE:All customizations should be done in the $SPECROOT/custom directory area on the CA Spectrum OneClick system. This is to ensure your customizations are not overwritten during a patch install or upgrade. Modifying the xml files located in the $SPECROOT/tomcat/webapps/spectrum/WEB-INF directory area runs the risk of these files being overwritten during a patch install or upgrade.