Running the IBM License Metric Tool(ILMT) disconnected scans

Disconnected scans allow for discovering software and hardware inventory on computers that do not have connection to the BigFix server. Scripts that are provided in the disconnected scanner package initiate software and capacity scans, and create a package with scan results that you later upload to IBM License Metric Tool.

  1. Preparing the disconnected scanner package for the Linux on IBM Z, extract the file into a directory, e.g., /root/LMT. For further information, please refer to Downloading the disconnected scanner package.

  2. Before running the scanner, please make sure the Access global performance data option has been turned on from the Linux on IBM Z HMC, you can navigate to Partition Details-->Controls->Access global performance data to check its value.

  3. Installing the disconnected scanner and gathering initial data:

    [root@computenode1 LMT]# ./setup.sh
    (2021-02-01 07:26:12) Starting configuration of Disconnected Scanner (linux 9.2.22.0)
    (2021-02-01 07:26:12) Initializing configuration parameters of Disconnected Scanner
    (2021-02-01 07:26:12) Disconnected Scanner will be configured in /root/LMT
    (2021-02-01 07:26:12) User info: uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
    (2021-02-01 07:26:12) System info (uname): Linux computenode1 4.18.0-193.el8.s390x #1 SMP Fri Mar 27 14:43:09 UTC 2020 s390x s390x s390x GNU/Linux
    (2021-02-01 07:26:12) Starting CIT installation (linux-s390x)...
    (2021-02-01 07:26:13) CIT installation successful
    (2021-02-01 07:26:13) Preparing computer.yml file...
    (2021-02-01 07:26:13) Preparing computer.yml finished
    (2021-02-01 07:26:13) Preparing scanner_status.yml file...
    (2021-02-01 07:26:13) Preparing scanner_status.yml finished
    (2021-02-01 07:26:13) Running initial Hardware Scan...
    (2021-02-01 07:26:13) Starting Hardware Scan script (linux 9.2.22.0)
    (2021-02-01 07:26:13) Initializing configuration parameters of Disconnected Scanner
    (2021-02-01 07:26:13) Starting Hardware Scan (HW)...
    (2021-02-01 07:26:14) Hardware Scan was successful
    (2021-02-01 07:26:15) Hardware Scan script finished
    (2021-02-01 07:26:15) Initial Hardware Scan successful
    (2021-02-01 07:26:15) Initializing configuration parameters of Disconnected Scanner
    (2021-02-01 07:26:15) Checking if Hardware Scan is scheduled
    (2021-02-01 07:26:15) Checking if Software Scan is scheduled
    (2021-02-01 07:26:15) Checking if /root/LMT/automation/pack_results.sh is scheduled
    (2021-02-01 07:26:15) Adding scheduled task for Hardware Scan
    (2021-02-01 07:26:15) Hardware Scan schedule added successfully
    (2021-02-01 07:26:15) Disconnected Scanner was succesfully configured
    (2021-02-01 07:26:15) Script has finished installing and configuring Disconnected Scanner   

    For further information, please refer to Installing the disconnected scanner and gathering initial data.

  4. Log onto the management nodes and compute nodes and run software scans and gathering scan results:

    [root@computenode1 LMT]# ./run_sw_and_pack.sh
    (2021-02-01 07:26:22) Starting Software Scan script (linux 9.2.22.0)
    (2021-02-01 07:26:22) Initializing configuration parameters of Disconnected Scanner
    (2021-02-01 07:26:22) Docker Scan is disabled and will be skipped.
    (2021-02-01 07:26:44) Starting Catalog Based Scan (SW)...
    (2021-02-01 07:27:09) Catalog Based Scan was successful
    (2021-02-01 07:27:09) Starting ISO-tag Scan (SW)...
    (2021-02-01 07:27:10) ISO-tag Scan was successful
    (2021-02-01 07:27:10) ISO-tag archive creation was successful
    (2021-02-01 07:27:10) Starting SLM Scan (SW)...
    (2021-02-01 07:27:14) SLM Scan was successful
    (2021-02-01 07:27:14) Current SLM-tags were not found
    (2021-02-01 07:27:14) Starting Package Scan (SW)...
    (2021-02-01 07:27:15) Package Scan was successful
    (2021-02-01 07:27:21) All scanners of Software Scan finished
    (2021-02-01 07:27:21) Starting Scan Results Packaging script (linux 9.2.22.0)
    (2021-02-01 07:27:21) Initializing configuration parameters of Disconnected Scanner
    (2021-02-01 07:27:21) Preparing the output package with scan results...
    (2021-02-01 07:27:22) Scan Results Packaging was successful
    (2021-02-01 07:27:22) Cleaning up the output directories...
    (2021-02-01 07:27:22) Package 202102011227-computenode1-1612117572.tar.gz created in the output directory - upload it to ILMT

    For further information, please refer to Running software scans and gathering scan results.

Note: z/VM® compute nodes need special environment viarable when license model is engine. The environment variable will be set while adding host. If the environment variable is not configured due to some reason, following command can be used to correct this issue:

[root@mgmtnode]#icic-config compute license --fix
Node BOEIAAS4
Environment variable is configured successfully!
Node BOEIAAS3
Environment variable is configured successfully!