DX NetOps

  • 1.  Custom menu app run on OneClick Server

    Posted Jul 20, 2018 09:12 AM

    Good day,

     

    We try to create a custom menu app to run script on Oneclick Server, but we have very strange behavoir from console.

    Only ping command have output results to stdout... any other that we tested (date /T, dir c:, ifconfig, netstat -na e.t.c) return nothing, only green progress bar run...

    For example our two configuration:

     

    <item name="Remote Ping1">
    <action>
    <context>com.aprisma.spectrum.app.topo.client.render.ModelContext </context>
    <context>com.aprisma.spectrum.app.alarm.client.group.AlarmContext </context>
    <launch-web-server-script>
    <command>netstat -na</command>
    <display-output stdout="t"/>
    </launch-web-server-script>
    </action>
    </item>


    <item name="Remote Ping2">
    <action>
    <context>com.aprisma.spectrum.app.topo.client.render.ModelContext </context>
    <context>com.aprisma.spectrum.app.alarm.client.group.AlarmContext </context>
    <launch-web-server-script>
    <command>ping /?</command>
    <display-output stdout="t"/>
    </launch-web-server-script>
    </action>
    </item>

     

    ...config the same... but results are different

     

     

    May be somebody have the same issue?

     



  • 2.  Re: Custom menu app run on OneClick Server

    Posted Jul 20, 2018 01:27 PM

    What OS is the OneClick server and what version of Spectrum?



  • 3.  Re: Custom menu app run on OneClick Server

    Posted Jul 22, 2018 11:14 AM

    Hello Joseph,

    MS Windows 2008 Server... and Spectrum the last version 10.2.3



  • 4.  Re: Custom menu app run on OneClick Server

    Broadcom Employee
    Posted Jul 23, 2018 11:57 AM

    Hi Maxim,

     

    I think this may be a network or OS permissions issue.

     

    I am running Spectrum 10.2.3 on Windows 2012 and I used the following in my <SPECROOT>/console/config/custom-menu-config file and as you can see I am able to run netstat without an issue.

     

    <menu name="Testing">
    <item name="Remote Ping1">
    <action>
    <context>com.aprisma.spectrum.app.topo.client.render.ModelContext </context>
    <context>com.aprisma.spectrum.app.alarm.client.group.AlarmContext </context>
    <launch-web-server-script>
    <command>netstat -na</command>
    <display-output stdout="t"/>
    </launch-web-server-script>
    </action>
    </item>
    <item name="Remote Ping2">
    <action>
    <context>com.aprisma.spectrum.app.topo.client.render.ModelContext </context>
    <context>com.aprisma.spectrum.app.alarm.client.group.AlarmContext </context>
    <launch-web-server-script>
    <command>ping /?</command>
    <display-output stdout="t"/>
    </launch-web-server-script>
    </action>
    </item>
    </menu>

     

     

    I would check with the server/network team and see if there is an application or network restriction that is not allowing the commands to be run. Everything in Spectrum is configured properly so I do not see that being the issue.

     

    Best,

     

    Harold



  • 5.  Re: Custom menu app run on OneClick Server

    Posted Jul 25, 2018 03:34 AM

    Hello Harold,

    I am tested on other 2008 and 2012... result the same. I think need to debug this problem with CA support.



  • 6.  Re: Custom menu app run on OneClick Server
    Best Answer

    Posted Jul 25, 2018 05:06 AM

    I am resolve this issue. (Thank You GLENN SHOEMAKE).

    Regarding to this topic: Perl Script from Spectum menu 

    ...

    Also if a program has been just added, a OneClick tomcat restart is required, as Tomcat will scan this file custom-menu-config.xml on startup and create a list of programs that it will allow to run. This has been done as enhancing security since Spectrum 9.4.0.

    ...

    After Spectrum Tomcat was restarted all other command run as the ping.