How to enable ping, telnet and traceroute from the OneClick client instead of the OneClick server
search cancel

How to enable ping, telnet and traceroute from the OneClick client instead of the OneClick server

book

Article ID: 52803

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

How to enable ping, telnet and traceroute from the OneClick client instead of the OneClick server

Environment

Release: DX NetOps Spectrum
Component:

Resolution

There is a way within OneClick to have the ping, telnet and traceroute to be executed from the OneClick client instead of it going through the OneClick server.

You can do this by editing the "custom-menu-config" file.

The file is located in the following directory:

$SPECROOT\tomcat\webapps\spectrum\WEB-INF\console\config\custom-menu-config

This file should be copied to the following directory before making any changes:

$SPECROOT\custom\console\config\custom-menu-config

In the file you will see the following section which documents how to enable telnet locally, as well as ping and traceroute.

custom-menu-config.xml:

<!--
Below are three complete examples for local ping, local telnet, and local traceroute. 
You can uncomment one or both of them or add your own.
-->

<menu name="com.aprisma.spectrum.app.swing.window.menu.Tools">
<!--
<item name="Ping Local">
<a.ccelerator modifiers="2">VK_I</accelerator>
<action>
<filter>
<has-attribute>AttributeID.NETWORK_ADDRESS</has-attribute>
</filter>
<context>
com.aprisma.spectrum.app.topo.client.render.ModelContext
</context>
<context>
com.aprisma.spectrum.app.alarm.client.group.AlarmContext
</context>
<launch-application>
<platform>
<os-name>Windows 9x</os-name>
<command>command.com /c start "Local ping {0}" cmd.exe /c "ping.exe {0} &amp;&amp.; pause"</command>
</platform>
<platform>
<os-name>Windows</os-name>
<command>cmd.exe /c start "Local ping {0}" cmd.exe /c "ping.exe {0} &amp;&amp; pause"</command>
</platform>
<platform>
<command>/usr/dt/bin/dtterm -e ping -s {0}</command>
</platform>
<param>
<attribute>AttributeID.NETWORK_ADDRESS</attribute>
</param>
</launch-application>
</action>
</item>
-->

<!--
<item name="Telnet Local">
<accelerator modifiers="2">VK_E</accelerator>
<action>
<filter>
<has-attribute>AttributeID.NETWORK_ADDRESS</has-attribute>
</filter>
<context>
com.aprisma.spectrum.app.topo.client.render.ModelContext
</context>
<context>
com.aprisma.spectrum.app.alarm.client.group.AlarmContext
</context>
<launch-application>
<platform>
<os-name>Windows 9x</os-name>
<command>command.com /c start "Local telnet {0}" telnet.exe {0}</command>
</platform>
<platform>
<os-name>Windows 2000</os-name>
<command>cmd.exe /c start "Local telnet {0}" telnet.exe {0}</command>
</platform>
<platform>
<os-name>Windows XP</os-name>
<command>cmd.exe /c start "Local telnet {0}" telnet.exe {0}</command>
</platform>
<platform>
<os-name>Windows</os-name>
<command>cmd.exe /c start "Local telnet {0}" telnet.exe {0}</command>
</platform>
<platform>
<command>/usr/dt/bin/dtterm -e telnet {0}</command>
</platform>
<param>
<attribute>AttributeID.NETWORK_ADDRESS</attribute>
</param>
</launch-application>
</action>
</item>
-->

<!--
<item name="Traceroute Local">
<accelerator modifiers="2">VK_T</accelerator>
<action>
<filter>
<has-attribute>AttributeID.NETWORK_ADDRESS</has-attribute>
</filter>
<context>
com.aprisma.spectrum.app.topo.client.render.ModelContext
</context>
<context>
com.aprisma.spectrum.app.alarm.client.group.AlarmContext
</context>
<launch-application>
<platform>
<os-name>Windows 9x</os-name>
<command>command.com /c start "Local traceroute {0}" cm.d.exe /c "tracert.exe {0} &amp;&amp; pause"</command>
</platform>
<platform>
<os-name>Windows 2000</os-name>
<command>cmd.exe /c start "Local traceroute {0}" cmd.exe /c "tracert.exe {0} &amp;&amp; pause"</command>
</platform>
<platform>
<os-name>Windows XP</os-name>
<command>cmd.exe /c start "Local traceroute {0}" cmd.exe /c "tracert.exe {0} &amp;&amp; pause"</command>
</platform>
<platform>
<os-name>Windows</os-name>
<command>cmd.exe /c start "Local traceroute {0}" cmd.exe /c "tracert.exe {0} &amp;&amp; pause"</command>
</platform>
<platform>
<command>/usr/dt/bin/dtterm -e traceroute {0}</command>