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
Expand all | Collapse all

ILMT Wb-console Property Not updating

  • 1.  ILMT Wb-console Property Not updating

    Posted Mon July 10, 2023 10:22 AM

    Hi All,

    I am using ILMT v9.2.0.31 with Ansible automation platform in my infra. here we are facing one Issue in ILMT web-console property name called "Data delayed upload" is showing "Yes" and Last Scan Attempt showing "very old date". But in endpoints cron task running for weekly base scan (Initiate scan) process. 

    Is there any way to updat the "Last scan attempt" property value in ILMT console. or how to troubleshoot the process to see the current scan date & time for the property.

    Thanks,

    Nagaraj. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------


  • 2.  RE: ILMT Wb-console Property Not updating

    Posted Mon July 10, 2023 11:04 AM

    Hello Nagarajan,

    Do you see any updates within '../logs/log.txt' file of disconnected scanner directory ?

    You've mentioned that there is cron task for weekly base scan...
    The thing is that in the Ansible case, the schedule of daily collection of scan results is done by means of 'lmt_collect_results.yml' playbook.
    Is that playbook listed in crontab setup ?


    At last, perhaps there are some import issues of that disconnected scanner package...
    to find out, it's ILMT import logs to be verified...



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

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



  • 3.  RE: ILMT Wb-console Property Not updating

    Posted Wed July 12, 2023 02:10 PM

    Hi Oktawian,

    Thanks for the reply and I am seeing below cron job in endpoint.

    Also I have verified the import log and there is no error. Import is completed successfully as per scheduled. 

    Please be waiting further updates. 

    Thanks,

    Nagaraj. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 4.  RE: ILMT Wb-console Property Not updating

    Posted Wed July 12, 2023 02:11 PM

    Hi, Cron job is scheduled for scan process. also Import is running with out any error. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 5.  RE: ILMT Wb-console Property Not updating

    Posted Thu July 13, 2023 05:59 AM

    Hello Nagarajan,

    From that output I don't see 'lmt_collect_results.yml' playbook being listed.
    Please make sure to add a cron job to cover that....
      

    For example, to schedule the command to run every day at 2:30 AM use the following syntax for crontab configuration :

    30 2 * * * "ansible-playbook <LMT_upload_playbook_files_directory>/lmt_collect_results.yml -i <LMT_upload_playbook_files_directory>/lmt_inventory.yml"
    where <LMT_upload_playbook_files_directory> is the directory where the playbook files are stored.



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

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



  • 6.  RE: ILMT Wb-console Property Not updating

    Posted Thu July 13, 2023 11:13 AM

    Hi Oktawian,

    Could we do the schedule option from collect result playbook over AAP ?

    Like we are scheduling the scan in "inventory.yml" and deploying the Install/upgrade scanner playbook right. because we have 100+ servers and below cmd need to Initiate in every endpoint?

    30 2 * * * "ansible-playbook <LMT_upload_playbook_files_directory>/lmt_collect_results.yml -i <LMT_upload_playbook_files_directory>/lmt_inventory.yml"
    where <LMT_upload_playbook_files_directory> is the directory where the playbook files are stored.

    Corrent me if I am wrong. 

    Thanks,

    Nagaraj. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 7.  RE: ILMT Wb-console Property Not updating

    Posted Thu July 13, 2023 05:38 PM

    We have manually ran the "collect result" yml job in AAP mean the scanned file not there in endpoints, maybe it moved to "data sources" directory. But the actual server I can see "Last software Scan Attempt" is running as per scheduled. 

    below are the screen shot from task scheduler from the same server. 

    The concern here I am not seeing the updated date/details in ILMT web console for "Last scan Attempt" property. it is always showing very old date even the scan running multiple times as per scheduled on endpoint. 

    Is there any advice do I need to follow to overcome this issue. 

    Thanks,

    Nagaraj. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 8.  RE: ILMT Wb-console Property Not updating

    Posted Fri July 14, 2023 06:49 AM
    Hello Nagarajan,
    So wat was the screen outcome when you manually run 'lmt_collect_results.yml' playbook ?
     
    Do you see any lines with following syntax ?
    TASK [ilmt_scanner : Fetch packages from Windows endpoints
    TASK [ilmt_scanner : Clean up packages on Windows endpoints]
    If so, do you see that aforementioned Windows endpoint listed under each of those two lines ?
    For investigation, I'd suggest to manually run 'lmt_collect_results.yml' playbook using following syntax:
     <LMT_upload_playbook_files_directory>/lmt_collect_results.yml -i <LMT_upload_playbook_files_directory>/lmt_inventory.yml -l <windows endpoint> -vvv
    When verbose mode (-vvv) is enabled you should see all the details about this Windows endpoint's under following entry : 
    TASK [ilmt_scanner : Get list of scan result packages from Windows endpoints] 
    One thing is certain, that '..\LMTScanner\output' is full of packages which have been created starting from the date which matches the "Last software Scan Attempt"...
    Thus,  'lmt_collect_results.yml' playbook was not properly executed against that node.


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

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



  • 9.  RE: ILMT Wb-console Property Not updating

    Posted Mon July 17, 2023 02:46 PM

    Hi Oktawian,

    Thanks for the update and If we see the upload (collect result) yml task from AAP mean it is working properly in ILMT property value and files also moved from endpointes to ILMT data sources. 

    So we have option to schedule the scan time using (inventory.yml) file with Install/upgrade task. like that do we have such option for collect result/upload result from playbook itself?

    Thanks,

    Nagarajan.



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 10.  RE: ILMT Wb-console Property Not updating

    Posted Tue July 18, 2023 04:33 AM

    Hello Nagarajan,

    I don't fully understand your question...
    However,  'lmt_inventory.yml' execution (to collect result/upload result) can be scheduled within crontab configuration.



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

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



  • 11.  RE: ILMT Wb-console Property Not updating

    Posted Tue July 18, 2023 08:43 AM

    Hi Oktawian,

    yeah, my question is that "how we can schedule the cronjob using "Collect result.yml" file from AAP console?
    or we have to create the cronjob manually in all the endpoints?

    Thanks,

    Nagaraj. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 12.  RE: ILMT Wb-console Property Not updating

    Posted Tue July 18, 2023 09:22 AM

    Hello Nagarajan,

    I believe that you could use a 'Ansible cron module' to automate the crontab entries via playbooks.
    (One small correction to my last post:   'lmt_inventory.yml' -> 'lmt_collect_results.yml').



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

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



  • 13.  RE: ILMT Wb-console Property Not updating

    Posted Wed July 19, 2023 09:33 AM

    Hi Oktawian,

    Are you referring the below option in AAP?

    If not, could you please share more details?

    Thanks,

    Nagaraj. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 14.  RE: ILMT Wb-console Property Not updating

    Posted Mon July 31, 2023 07:58 AM

    Hi Oktawian,

    Could you give some example where I can edit the playbook for cronjob configuration in AAP?

    " use a 'Ansible cron module' to automate the crontab entries via playbooks."

    Thanks,

    Nagarajan. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 15.  RE: ILMT Wb-console Property Not updating

    Posted Tue August 01, 2023 04:45 AM

    Hello Nagarajan,

    Sorry for a delay...

    I should clarify one thing,
    You don't have to
    create cronjobs in all the endpoints.
    'lmt_collect_results.yml' playbook needs to be scheduled on Control node...it means one endpoint.
    I'm pretty sure that you will manage to manually create a single crontab entry on Control node.



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

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



  • 16.  RE: ILMT Wb-console Property Not updating

    Posted Tue August 01, 2023 07:54 AM

    Hi Oktawian,

    Q: you don't have to create cronjobs in all the endpoints.

    A: Yeah, I will not create the cron-job in all the endpoints. but in AAP console we have option to schedule the template like below screen shot. 

    Using the screenshot option, we could schedule the Upload/collect result.yml file in AAP and Limit we could set for all the Linux platform servers. 

    So, there is no cron tab module create for it again, right?

    Thanks,

    Nagaraj. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 17.  RE: ILMT Wb-console Property Not updating

    Posted Tue August 01, 2023 08:55 AM

    Hello Nagarajan,

    Sorry, I have no access to Ansible Automation Platform.
    Thus, I wouldn't want to speculate how this whole
    Dynamic Scheduler is processed internally.
    It could be through a
    cron job or it it could be some kind of dedicated daemon which is processing all those scheduled events...

     



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

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



  • 18.  RE: ILMT Wb-console Property Not updating

    Posted Tue August 01, 2023 10:30 AM

    Hi Oktawian,

    Could you share some example for "cron job" in "lmt_collect_results.yml" edit parameter?

    I am not clear where to add what module in it. Could you share the details?

    Thanks,

    Nagarajan. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 19.  RE: ILMT Wb-console Property Not updating

    Posted Wed August 02, 2023 07:52 AM

    Hello Nagarajan,

     

    Following is simple example how to schedule the cron job to run  "lmt_collect_results.yml" playbook:

    30 2 * * * "ansible-playbook <LMT_upload_playbook_files_directory>/lmt_collect_results.yml -i <LMT_upload_playbook_files_directory>/lmt_inventory.yml"
    where <LMT_upload_playbook_files_directory> is the directory where the playbook files are stored.



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

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



  • 20.  RE: ILMT Wb-console Property Not updating

    Posted Fri August 04, 2023 12:35 AM

    Hi Oktawian,

    Excuse me for more questioning, 

    Q: <LMT_upload_playbook_files_directory> is the directory where the playbook files are stored

    A: It mean you are referring in AAP servers where the playbook stored and execute/create the cron job in AAP server itself? 

    Also, If we scheduled the cron job using "collect result.yml" file and "inventory.yml" plybook on AAP servers then how the manage node will share the results files to ILMT Datasources?

    Could you please give some more details?

    We are using AAP in Red-hat cloud platform. 

    Thanks,

    Nagarajan. 



    ------------------------------
    Nagarajan Singaram
    ------------------------------



  • 21.  RE: ILMT Wb-console Property Not updating
    Best Answer

    Posted Fri August 04, 2023 05:43 AM

    Hello Nagarajan,

    <LMT_upload_playbook_files_directory> is the directory on the control node where the playbook files have been stored.
    'lmt_collect_results.yml' playbook is executed from Control node and will collect packages with disconnected scan results from all managed nodes. 

    I'm not sure if you had a chance to look at the related documentation which describes all those elements in detail:
    https://github.com/IBM/ansible-automation-for-lmt

     



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

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