DX NetOps

 View Only
  • 1.  How to modify custom-menu-config to open multiple external tools

    Posted Jul 21, 2016 07:52 AM
      |   view attached

    Hello together,

     

    i modified my custom-menu-config.xml with the following:

       <menu name="Connections Tools">
         <item name="Launch Putty">
            <action>
            <filter>
                    <has-attribute>AttributeID.NETWORK_ADDRESS</has-attribute>
            </filter>
                    <launch-application>
                            <command>C:\\PROGRA~2\\PuTTY\\putty.exe {0}</command>
                            <validate/>
                            <param>
                                    <attribute>AttributeID.NETWORK_ADDRESS</attribute>
                                    </param>

                    </launch-application>
                    </action>

                    <toolbar-image>images/putty.gif</toolbar-image>
                    <accelerator modifiers="2">VK_S</accelerator>
            </item>
       </menu>

     

    What i like to do is to mark several entries in the Alarm List an open an connection to every network_address with putty. If i try to do this now i cannot use the above defined menu item.

     

    Regards,

    Christian



  • 2.  Re: How to modify custom-menu-config to open multiple external tools

    Posted Sep 07, 2016 09:50 AM

    I am not sure this is possible from a customization point.

    You might have to go about this another way.  Like launching a script instead perhaps?  Windows batch file might be able to do it if we can parse each selected Network Address you are on.  That is the part I am unsure of.



  • 3.  Re: How to modify custom-menu-config to open multiple external tools

    Posted Sep 07, 2016 11:34 AM

    I think it would be possible for me to create a script/batch file whatever which is able to do that. The part I am unsure of is that I don't know how to parse each selected Network Address to that script.



  • 4.  Re: How to modify custom-menu-config to open multiple external tools

    Posted Oct 11, 2017 05:17 AM

    Hi,

     

    Not sure if this still is an issue, but  have you tried to add  <run-for-multiple-alarms /> in   <launch-application>?

     

    It should let you select multiple alarms and launch the script for each alarm.

     

    Eirik