AIOps

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

    Posted Wed April 17, 2024 04:45 AM

    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 Thu April 18, 2024 10:03 AM

    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 Fri April 19, 2024 06:33 AM

    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ń
    ------------------------------