IBM License Metric Tool (ILMT)

IBM License Metric Tool (ILMT)

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only
  • 1.  Curl error code 26 when trying to set up the disconnected scanner - ILMT 9.2.32.0

    Posted 12 days ago

    Hi,

    I am currently emulating a migration in a test environment, I have ILMT 9.2.32.0 installed in a Windows Server 2019 with a SQL Server 2019 and my goal is to update ILMT to the latest version. I had no issue installing ILMT, but I am having a hard time trying to connect other machine (Win Server 2019 as well) using the disconnected scanner. I am facing the following error: 
    Curl error occured. Error code: 26
    Configuring Disconnected scanner failed with error 1

    Here is the full cmd pront after running setup.bat:

    C:\Users\Administrator\Downloads\LMT-DisconnectedScanner-windows-9.2.32.0-20230621-0049>setup.bat
    Starting configuration of IBM LMT Disconnected Scanner (windows 9.2.32.0)
    Disconnected Scanner will be configured in C:\Users\Administrator\Downloads\LMT-DisconnectedScanner-windows-9.2.32.0-20230621-0049\
    Upgrading isotag_config.xml config file...
    Upgrading slmtag_config.xml config file...
    Upgrading sw_config.xml config file...
    Discovered system architecture is w64
    Starting CIT installation...
    CIT installation successful
    Preparing scanner_status.yml file...
    Preparing scanner_status.yml successful
    Running initial hardware scan...
    Starting Hardware Scan script
    Starting Hardware Scan (HW)...
    Hardware Scan was successful
    Preparing/refreshing computer.yml file...
    Preparing/refreshing computer.yml successful
    Marking computer as running on public cloud: Amazon EC2
    Comparing hardware scan output with the previous one
    Hardware Scan output identical to the previous one - update not required
    Hardware Scan script finished
    Initial hardware scan successful
    Upload parameters defined. Checking connection to ILMT server....
    Curl error occured. Error code: 26
    Configuring Disconnected scanner failed with error 1

    Any suggestions or did anyone ran into the same issue?



    ------------------------------
    Vitor Prado
    ------------------------------


  • 2.  RE: Curl error code 26 when trying to set up the disconnected scanner - ILMT 9.2.32.0

    Posted 12 days ago

    Hello,


    It's kind of weird....'26' means a problem reading a local file by curl.
    But setup.bat doesn't send any files...it merely checks the HTTP connection with ILMT server by making empty HTTP POST request.

    The only logical explanation would be that somehow the Windows .bat interpreter has gone wild and the script has taken an unforeseen flow.
    To confirm that please look into the configure.log file (DisconnectedScanner logs directory) for the curl command line syntax.
    Does it has '--data-binary' param in it ?  

    If it doesn't please copy/paste the whole curl command (with all params) into a Windows command line, run it, and check the ERRORLEVEL variable (echo %ERRORLEVEL%) after that.
    Does it show the same Error code ?



    ------------------------------
    Thank you,
    Oktawian

    Oktawian Powązka, L3 Support
    IBM License Metric Tool
    ------------------------------



  • 3.  RE: Curl error code 26 when trying to set up the disconnected scanner - ILMT 9.2.32.0

    Posted 12 days ago

    Hi, Oktawian! Thank you for the answer.

    I've tried this same structure in different VMs and using different cloud providers, but the results were the same, so me may be able to discard the .bat interpreter issue.

    After checking the configure.log file, the curl command have indeed the --data-binary parameter. Here is the curl command:

    curl.exe -k -s --connect-timeout 30 -o NUL -w "%{http_code}" -H "Accept:application/json" -H "Token:{user-token}" -H "Accept-Language:en-US" -H "Content-Type:application/octet-stream" --data-binary "@filename" -X POST "https://server-adress:9081/api/sam/v2/scan_results_upload?filename=filename"



    ------------------------------
    Vitor Prado
    ------------------------------



  • 4.  RE: Curl error code 26 when trying to set up the disconnected scanner - ILMT 9.2.32.0

    Posted 11 days ago

    Hello,

    I've found the root cause...

    It was kind of a bug fixed in disconnected scanner 9.2.33 and onwards...
    That controversial part (--data-binary "@filename") has been entirely eliminated.
    Please upgrade the disconnected scanner package.



    ------------------------------
    Thank you,
    Oktawian

    Oktawian Powązka, L3 Support
    IBM License Metric Tool
    ------------------------------



  • 5.  RE: Curl error code 26 when trying to set up the disconnected scanner - ILMT 9.2.32.0

    Posted 11 days ago

    Thank you so much, Oktawian!

    But I would like to understand this a bit better.

    Due to this isue with the (--data-binary "@filename"), there is not a possible way to configure an instance of ILMT 9.2.32.0 with disconnected scanner, or there a workaround of some kind? (Maybe a fix)
    And for last, to run the disconnected scanner in version 9.2.33, I do need to update the entire ILMT infrastructure, correct?

    Thank you again for the amazing support!



    ------------------------------
    Vitor Prado
    ------------------------------



  • 6.  RE: Curl error code 26 when trying to set up the disconnected scanner - ILMT 9.2.32.0

    Posted 11 days ago

    One more thing,
    please make sure that your curl implementation is running smoothly over HTTP POST request.
    I'd suggest a following simple test from a Windows command line:
    curl.exe -k -H "Token:xxx" -X POST "https://localhost:9081/api/sam/about"

    To get API Token (xxx):
    on ILMT Server UI hover over the user icon, and click Profile.
    Then, click Show token.



    ------------------------------
    Thank you,
    Oktawian

    Oktawian Powązka, L3 Support
    IBM License Metric Tool
    ------------------------------



  • 7.  RE: Curl error code 26 when trying to set up the disconnected scanner - ILMT 9.2.32.0

    Posted 10 days ago

    Hello,

    You can use latest disconnected scanner version (9.2.39) with ILMT 9.2.33.

    Please use the following link to get this:
    http://software.bigfix.com/download/lmt/disconnected_scans/20250311-2222/LMT-DisconnectedScanner-windows-9.2.39.0-20250311-2222.zip

    At last,
    Please ignore my second post,,,
    somehow, some forum updates comes pretty delayed.



    ------------------------------
    Thank you,
    Oktawian

    Oktawian Powązka, L3 Support
    IBM License Metric Tool
    ------------------------------



  • 8.  RE: Curl error code 26 when trying to set up the disconnected scanner - ILMT 9.2.32.0

    Posted 6 minutes ago

    I just got a notice today.  9.2.40 out:
    https://www.ibm.com/support/pages/node/7237582?myns=swgother&mynp=OCSS8JFY&mync=E&cm_sp=swgother-_-OCSS8JFY-_-E



    ------------------------------
    Patrick Kelly
    ------------------------------