How to find Oneclick service model-type related XML files

book

Article ID: 131883

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

How to find the Device (model-type) related OC-service related XML-file(s) to use for customization tasks? 

Customizing Spectrum OneClick Console view.

Environment

This applies to all supported CA Spectrum platforms.

Resolution

Find first the related model-type - then find the related XML-files references. 

  • Find related model-type-handle - and use the Attribute Tab under Device Component Details. Once the model-type-handle is known - search for this.
  • Use "bash -login"/shell from $SPECROOT/tomcat/webapps/spectrum to find the XML-files per command:


            find . -name "*.xml" -exec grep -il <model-type-handle> {} \;

Sample:

============== find model-type handle ================= 
per spectrum install owner - connect via CLI to the SpectroSERVER - then find per: 
./connect 
./show types | grep -i <expresssion> 


i.e.: 
[[email protected] vnmsh]$ ./show types | grep -i atlas_
0x6700001 Atlas_Rtr V,I,D 



============== find model-type handle in XML files =========== 
$SPECROOT/tomcat/webapps/spectrum directory - as all default files are covered in the subdirs: 

i.e.: 
[[email protected] spectrum]$ pwd 
/usr/spectrum/tomcat/webapps/spectrum 
[[email protected] spectrum]$ find . -name "*.xml" -exec grep -il 0x6700001 {} \; 
./WEB-INF/devman/config/contrib/teldat-app-config.xml 
./WEB-INF/devman/config/devman-app-config.xml 



From this point - follow-up the customization as explained in the Customization Guide: 
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/10-4-2/customizing/oneclick-customization/customizing-a-model-s-information-view.html

You may find better customization info via old documentation - please check here: 
https://support.ca.com/cadocs/0/CA%20Spectrum%209%203%200-ENU/Bookshelf_Files/PDF/Spectrum_OneClick_Customization_User_ENU.pdf 
(Search for "Extend or Modify an Information View").