Management

 View Only
  • 1.  How do I debug script tools in Omnibus WebGUI?

    Posted 25 days ago

    Hi,

    I'm working on creating JavaScript-based script tools in Omnibus WebGUI (https://www.ibm.com/docs/en/netcoolomnibus/8.1?topic=tools-script-tool-examples). I would like to see some logging when launching the tools as things are not working properly but can't figure out which logs contain such data.

    What is the way to configure some debug logging for script tools in WebGUI and which logs from the wide set of logs are responsible to contain such logging.

    Documenation doesn't help here at all

    regards,

    Szymon



    ------------------------------
    Szymon Trocha
    Poznań Supercomputing and Networking Center
    Poznań
    ------------------------------


  • 2.  RE: How do I debug script tools in Omnibus WebGUI?
    Best Answer

    IBM TechXchange Speaker
    Posted 24 days ago

    Hi Szymon,

    Javascript tools run in the browser - so there aren't any logs at the server side.

    Try the browser's debugging function and/or use window.alert("xxx") to display something in an alert box.

    When there are syntax errors, I often use an online JS syntax checker - you might have to modify the script when you use {} placeholders.

    Good luck,

    Michael



    ------------------------------
    Michael Troitzsch
    Solution Architect
    DICOS GmbH
    Darmstadt
    ------------------------------



  • 3.  RE: How do I debug script tools in Omnibus WebGUI?

    Posted 23 days ago

    Indeed! Thank a lot for advice Michael!

    Seems my script is facing CORS error so now I know what's happening

    Regards,

    Szymon



    ------------------------------
    Szymon Trocha
    Poznań Supercomputing and Networking Center
    Poznań
    ------------------------------