How to add model handle as a custom column in the OneClick
search cancel

How to add model handle as a custom column in the OneClick

book

Article ID: 402137

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

You want to add the model_handle attribute as a custom column in the OneClick list view.

Resolution

There is no out of the box xml file configured for the model handle attribute so you need to create your own custom xml.
  • If this the first time you added a custom attribute to the list view.
    1. Log into the OneClick system as the user that owns the Spectrum installation
    2. Create a new file called table-model-config.xml in the $SPECROOT/custom/common/config directory. 
    3. Add the following to this new file:
       
      <?xml version="1.0" encoding="UTF-8"?>
      <table idref="table-model-config">
           <column-list>
                <column>
                     <name>Community Name</name>
                     <content>
                           <attribute>0x10024</attribute>
                     </content>
                     <hidden-by-default>true</hidden-by-default>
                </column>
                <column>
                   <name>Model handle</name>
                     <content>
                        <attribute>0x129fa</attribute>
                     </content>
                     <hidden-by-default>true</hidden-by-default>
                </column>
           </column-list>
      </table>         
       
    4. Save the changes to this file
    5. Log back into the Oneclick console
    6. Right click on the list view column headings and model handle will be available as a new choice to add as a column.
 
  • If you  have already previously added another custom attribute to the list view:
    1. Open $SPECROOT/custom/common/config/table-model-config.xml
    2. Insert a new column after the previous </column> and before the closing </column-list> tag:
       
      </column-list>.  For example if we previously added community name, the final xml will look as follows, with our addition in bold.
      <?xml version="1.0" encoding="UTF-8"?>
      <table idref="table-model-config">
           <column-list>
                <column>
                     <name>Community Name</name>
                     <content>
                           <attribute>0x10024</attribute>
                     </content>
                     <hidden-by-default>true</hidden-by-default>
                </column>
                <column>
                   <name>Model handle</name>
                     <content>
                        <attribute>0x129fa</attribute>
                     </content>
                     <hidden-by-default>true</hidden-by-default>
                </column>
           </column-list>
      </table>  
       
       
    3. Save the changes to this file
    4. Log back into the Oneclick console
    5. Right click on the list view column headings and model handle will be available as a new choice to add as a column.

Additional Information

  • 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.
  • This will need to be done on each OneClick server where you want this column to be available/.