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.  How to fix error status_code=401

    Posted 05/30/22 07:50 AM

    Dear Support,

    I set up the link between ILMT and License Service Reporter following the documentation, ; https://www.ibm.com/support/pages/node/6333487

    and get the error each time I try to refresh data from ILMT:

    2022-05-30 08:17:08,584 [ERROR] advisor: date=2022-03-01 status_code=401

    2022-05-30 08:17:08,584 [ERROR] Failed connection (PUT). Next try in 15 min

    2022-05-30 08:34:14,766 [ERROR] advisor: date=2022-03-01 status_code=401

    2022-05-30 08:34:14,766 [ERROR] Failed connection (PUT). Next try in 15 min

    2022-05-30 08:51:20,669 [ERROR] advisor: date=2022-03-01 status_code=401

    2022-05-30 09:06:20,770 [ERROR] Couldn't establish connection

    No data from ILMT is refreshed in the License Service Reporter dashboard.

    Can you please help me to fix that error ?



    #AIX
    #Support
    #SupportMigration


  • 2.  RE: How to fix error status_code=401

    Posted 05/30/22 09:59 AM

    Hello,

    It meas the connection to ILMT is not working properly. The 401 means unauthorized. Please double-check ILMT URL with its token token using some simple REST API request.

    e.g.

    https://localhost:9081/api/sam/about?token=6a8534233c401bfbe8c9c84cfa2ebfe8aec18eec

    https://www.ibm.com/docs/en/license-metric-tool?topic=api-rest-retrieving-license-metric-tool-version

    Regards,



    #AIX
    #Support
    #SupportMigration


  • 3.  RE: How to fix error status_code=401

    Posted 05/30/22 10:11 AM

    Hi Piotr,

    I didn't send you the entire logs, but the connection is running for other days. here an extract of the log:

    2022-05-30 08:51:12,140 [INFO] LMT bundled products: date=2022-05-23 status_code=OK

    2022-05-30 08:51:12,592 [INFO] LMT products: date=2022-05-24 status_code=OK

    2022-05-30 08:51:13,483 [INFO] LMT bundled products: date=2022-05-24 status_code=OK

    2022-05-30 08:51:13,942 [INFO] LMT products: date=2022-05-25 status_code=OK

    2022-05-30 08:51:14,897 [INFO] LMT bundled products: date=2022-05-25 status_code=OK

    2022-05-30 08:51:15,363 [INFO] LMT products: date=2022-05-26 status_code=OK

    2022-05-30 08:51:16,348 [INFO] LMT bundled products: date=2022-05-26 status_code=OK

    2022-05-30 08:51:16,793 [INFO] LMT products: date=2022-05-27 status_code=OK

    2022-05-30 08:51:17,664 [INFO] LMT bundled products: date=2022-05-27 status_code=OK

    2022-05-30 08:51:18,113 [INFO] LMT products: date=2022-05-28 status_code=OK

    2022-05-30 08:51:19,045 [INFO] LMT bundled products: date=2022-05-28 status_code=OK

    2022-05-30 08:51:19,527 [INFO] LMT products: date=2022-05-29 status_code=OK

    2022-05-30 08:51:20,450 [INFO] LMT bundled products: date=2022-05-29 status_code=OK

    2022-05-30 08:51:20,481 [INFO] putting products data to license advisor

    2022-05-30 08:51:20,669 [ERROR] advisor: date=2022-03-01 status_code=401

    2022-05-30 09:06:20,770 [ERROR] Couldn't establish connection

    Guillaume



    #AIX
    #Support
    #SupportMigration


  • 4.  RE: How to fix error status_code=401

    Posted 05/30/22 10:48 AM

    It means the connection stopped working. Try the REST API to confirm.



    #AIX
    #Support
    #SupportMigration


  • 5.  RE: How to fix error status_code=401

    Posted 05/30/22 12:18 PM

    Piotr,

    I restarted the import, and as soon as the error occured I run the REST API with success:

    2022-05-30 14:15:53,674 [INFO] LMT products: date=2022-05-27 status_code=OK

    2022-05-30 14:15:54,611 [INFO] LMT bundled products: date=2022-05-27 status_code=OK

    2022-05-30 14:15:55,020 [INFO] LMT products: date=2022-05-28 status_code=OK

    2022-05-30 14:15:55,892 [INFO] LMT bundled products: date=2022-05-28 status_code=OK

    2022-05-30 14:15:56,377 [INFO] LMT products: date=2022-05-29 status_code=OK

    2022-05-30 14:15:57,301 [INFO] LMT bundled products: date=2022-05-29 status_code=OK

    2022-05-30 14:15:57,331 [INFO] putting products data to license advisor

    2022-05-30 14:15:57,480 [ERROR] advisor: date=2022-03-01 status_code=401

    2022-05-30 14:15:57,480 [ERROR] Failed connection (PUT). Next try in 15 min


    curl -k https://localhost:9081/api/sam/about?token=bc03911c9cca0d8e6f58fe045b8bb73512e4d72a

    {"product":"IBM License Metric Tool","version":"9.2.27.0-20220317-0046"}


    Any advice ?




    #AIX
    #Support
    #SupportMigration


  • 6.  RE: How to fix error status_code=401

    Posted 05/30/22 12:48 PM

    Piotr,

    I fixed the issue: the token was renewed on License Service Reporter side.

    Thanks for your advice.

    Guillaume



    #AIX
    #Support
    #SupportMigration