IBM License Metric Tool (ILMT)

 View Only
Expand all | Collapse all

Data source differentiate for Disconnected scanner VM and Ansible automation VM

  • 1.  Data source differentiate for Disconnected scanner VM and Ansible automation VM

    Posted Fri March 15, 2024 11:44 AM

    Hi Team,

    We are using ILMT v9.2.34 with Linux server Rhel8 and DB211.5 and managing 2 different tenant.

    Tenant 1 (sources 1) : VMs are managed by Ansible automation platform to install/upload/run ILMT task and get Inventory from endpoint/servers

    Tenant 2 (sources 2) : VMs are managed by ILMT disconnected scanners to get Inventory from endpoint/servers.

    In "data source" we want to different like VMs from Ansible and VMs from ILMT Disconnected scanners in computer reports (ILMT web console)

    Do we have any option to do this requirement in ILMT web console?

    Thanks,

    Nagarajan. 



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


  • 2.  RE: Data source differentiate for Disconnected scanner VM and Ansible automation VM

    Posted Fri March 15, 2024 02:08 PM

    Hi Nagarajan,

    The only possibility you get is to create two dedicated data sources :

    • One for disconnected scanner,
    • One for Ansible,

    The one for Ansible needs to be setup through 'lmt_server_datasource_path' parameter.


    Subsequently, in Computer/HW Inv reports you can filter by 'Data Source Name'... 



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

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



  • 3.  RE: Data source differentiate for Disconnected scanner VM and Ansible automation VM

    Posted Fri March 15, 2024 03:52 PM

    Hi Oktawian,

    I have created 2 data sources, but I am not seeing the VM different with data sources in report. 

    Could you help me more understanding here?

    Thanks,

    Nagarajan. 



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



  • 4.  RE: Data source differentiate for Disconnected scanner VM and Ansible automation VM

    Posted Tue March 19, 2024 11:48 AM

    Hi Nagarajan,


    I take that by 'not seeing the VM different with data sources' you mean that you just see all VMs under one 'Data Source Name', correct ?
    Which Data Source is it ?
    Which upload method are you using, 'Scan Results Upload' panel or manual copy ?


    At first, I'd check following:

    • confirm if indeed VMs from both disconnected scanner & Ansible are being discovered and reported,
    • confirm that 'lmt_server_datasource_path' parameter points out the 'Ansible data source',
    • confirm if disconnected scanner packages are being placed in 'Disconnected data source' folder,


    At last,
    if you enable 'debug_logging_for_imports' the import log itself should also give you some hint :

    DEBUG:  (ImportThread) Processing disconnected scan folder 'xxx'
    INFO:  (ImportThread) DisconnectedScannerProcessingStatistics::printStatistics::STATISTICS: Number of sucessfully processed files: 'yyy'

    You should see some processed files (yyy) from each disconnected scan folder (xxx)



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

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



  • 5.  RE: Data source differentiate for Disconnected scanner VM and Ansible automation VM

    Posted Wed March 20, 2024 06:28 PM
    Edited by Nagarajan Singaram Wed March 20, 2024 06:30 PM

    Hi Oktawian,

    Thanks for the reply and see my commands below 

    I take that by 'not seeing the VM different with data sources' you mean that you just see all VMs under one 'Data Source Name', correct ? = Yes
    Which Data Source is it ? = Name I am giving ILMT (so all the VMs showing as ILMT data sources) Even source from AAP and Disconnected scanners. 
    Which upload method are you using, 'Scan Results Upload' panel or manual copy ? = For AAP we use collect result playbook yml file and for disconnected scanners we use "direct server upload connection using 9081 port"

    At first, I'd check following:

    • confirm if indeed VMs from both disconnected scanner & Ansible are being discovered and reported, = Yes all two method VMs are reporting to ILMT sever console successfully. 
    • confirm that 'lmt_server_datasource_path' parameter points out the 'Ansible data source', = where we could see this 
    • confirm if disconnected scanner packages are being placed in 'Disconnected data source' folder,= Yes, we could see Disconnected scanner folders with the result files of VMs. 

    We need to differentiate for the VMs data sources which is coming from AAP (Ansible) and disconnected scanners.

    Could you give me any way/suggestion for this. 

    Thanks,

    Nagarajan. 



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



  • 6.  RE: Data source differentiate for Disconnected scanner VM and Ansible automation VM

    Posted Thu March 21, 2024 07:44 AM

    Hi Nagarajan,

    By  "direct server upload connection using 9081 port" I take that you are uploading by means of curl command as described here:
    https://www.ibm.com/docs/en/license-metric-tool?topic=server-uploading-disconnected-scan-results

    Correct ?

    If so, it's kind of unsupported scenario (as you can read in the above guideline: This method is supported if you have one disconnected data source)

    Anyhow, there is an undocumented switch 'DATASOURCE_NAME' which you can add to setup_config.ini file.
    but there is one catch,
    if disconnected data source name contains a space it needs to be replaced by '%20' character, as following:
    DATASOURCE_NAME=Data%20Source



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

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



  • 7.  RE: Data source differentiate for Disconnected scanner VM and Ansible automation VM

    Posted Fri March 22, 2024 07:16 AM

    Hi Oktawian,

    Thanks for your commands and Yes, I am using "CURL" method to upload the results into ILMT server "data source directory".

    Also If I use below screen shot for "Data Source variable", Is it good to see the result value on ILMT console?

    Thanks,

    Nagarajan. 



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



  • 8.  RE: Data source differentiate for Disconnected scanner VM and Ansible automation VM

    Posted Fri March 22, 2024 12:44 PM

    Hi Oktawian,

    I have added the same parameter in setup_config.ini file "Datasource_name=ILMT_CDW" 

    But the same datasource name should be exists in ILMT web-console. For my case "ILMT_CDW" should be exists then the upload is working good, otherwise we will get an error while upload the files with "Datasource" not found.

    Thanks for your help Oktawian. 

    Is there any option to do the same in AAP (ansible playbook side to define the data_source name)?

    Thanks,

    Nagarajan. 



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



  • 9.  RE: Data source differentiate for Disconnected scanner VM and Ansible automation VM

    Posted Sat March 23, 2024 03:30 AM

    Correct, that 'DATASOURCE_NAME' param looks OK.

    It should be recognized by ILMT...



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

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



  • 10.  RE: Data source differentiate for Disconnected scanner VM and Ansible automation VM
    Best Answer

    Posted Sat March 23, 2024 03:36 AM

    Hi Nagarajan,

    Answering your question:
    Is there any option to do the same in AAP (ansible playbook side to define the data_source name)?


    For ansible playbook there is this 'lmt_server_datasource_path' parameter.
    It has the default value: "{{ lmt_server_path }}\\datasource"



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

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