DX NetOps

  • 1.  Local telnet in Windows 7

    Posted Oct 09, 2013 07:39 AM
    I have the following in my custom-menu-config.xml (see below)

    I have local tracert and local ping which works on W7 fine

    Local Telnet works for all OS's except windows 7 where it gives a message that "telnet.exe" cannot be found.

    I had to enable telnet in W7 and add the following section

    <platform>
    <os-name>Windows 7</os-name>
    <command>cmd.exe /c start "Local telnet {0}" telnet.exe {0}</command>
    </platform>

    If i run : cmd.exe /c start "Local telnet {0}" telnet.exe {0} from cmd prompt it works as expected.

    If i change the Windows 7 section to the following :

    <platform>
    <os-name>Windows 7</os-name>
    <command>C:\\Windows\\System32\\telnet.exe {0}</command>
    </platform>

    I then get

    SPC-OCC-10262: Error launching
    C:\\Windows\\System32\\telnet.exe 10.0.1.254:
    java.io.IOException: Cannot run program
    "C:\Windows\System32\telnet.exe": CreateProcess error=2,
    The system cannot find the file specified

    Any idea whats going on ? Cheers.

    <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 Server 2008 R2</os-name>
    <command>cmd.exe /c start "Local telnet {0}" cmd.exe /c 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 7</os-name>
    <command>cmd.exe /c start "Local telnet {0}" telnet.exe {0}</command>
    </platform>

    <platform>
    <os-name>Windows Vista</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>


  • 2.  RE: Local telnet in Windows 7

    Posted Oct 09, 2013 08:00 AM
    A bit more digging seems to be there is an issue with a 32bit application (java) trying to launch a 64bit application (cmd.exe) as its looking for the file in the sysWOW64 folder !

    Still investigating - but if anyone has any ideas ..


  • 3.  RE: Local telnet in Windows 7

    Posted Oct 09, 2013 08:10 AM
    Copying the telnet .exe file into the sysWOW46 folder has resolved the issue.