This post describes how to customize CA Spectrum to support launching CA Performance Center in context from your OneClick topology view models.
Special thanks to Bill Donoghue who shared the following with us:
>
<!-- The XML below adds a context based link to the CA Performance Center. It launches for most all devices in spectrum based on the following model classes (Model_Class attribute): Switch, Router, Switch-Router, Workstation-Server, Pingable, SNMP, Firewall, Wireless, SAN, Printer, Power Supply, Load Balancer.
To implement:
1. On the OneClick webserver copy the $SPECROOT/tomcat/webapps/spectrum/WEB-INF/console/config/custom-menu-config.xml file to $SPECROOT/custom/console/config
2. Copy the xml below to the copied custom-menu-config.xml
NOTE: this needs to be added to the end of the file preceding the </root> tag. This implements the launch point in the OneClick Tools Menu, if customizations have already been made to the Tools menu, the menu tags below are not needed.
3. Change CAPCHOST to that of the hostname or IP address of your CA Performance Center system.
4. Restart your OneClick instance.
You will now see a right-click menu option off a device or an alarm for all devices of the model classes mentioned above (regardless if they exist in CA Performance Center or not).
-->
<menu name="com.aprisma.spectrum.app.swing.window.menu.Tools">
<item name="Device Performance Page (CAPC)">
<popup-visibility>when-enabled</popup-visibility>
<action>
<filter>
<and>
<has-attribute>AttributeID.NETWORK_ADDRESS</has-attribute>
<attribute-list id="AttributeID.MODEL_CLASS">
2,
3,
4,
9,
12,
14,
27,
40,
45,
48,
103,
111,
120
</attribute-list>
</and>
</filter>
<context>
com.aprisma.spectrum.app.topo.client.render.ModelContext
</context>
<context>
com.aprisma.spectrum.app.alarm.client.group.AlarmContext
</context>
<launch-browser>
<url>http://CAPCHOST:8181/pc/redirector?ItemTypeName=device&Address={0}</url>
<param>
<attribute>AttributeID.NETWORK_ADDRESS</attribute>
</param>
</launch-browser>
</action>
</item>
</menu>