IBM License Metric Tool (ILMT)

 View Only
  • 1.  "Error Code 5" when scanning Windows servers

    Posted Tue April 25, 2023 01:27 PM

    We've deployed the lmt_scanner to our environment and the Linux servers are scanning perfectly (HW & SW). The problem we are having is with our Windows servers (all virtual). We are not receiving any results for the SW scans. We have found an "Error Code 5" in the "run_sw.log" file, but can't seem to find details on that error code. Has anyone seen this before?

    The IBM software for these Windows servers (they are all alike) is on the "J:" drive (not the typical C: or D: drives) or is there something we need to do to extend the scanning this deep. Is the lmt_scanner able to scan this far down the alphabet and it that possibly related to the 'Error Code 5'.

    Thanks,



    ------------------------------
    Gary Latter
    Solution Architect
    Peraton
    CA
    ------------------------------


  • 2.  RE: "Error Code 5" when scanning Windows servers

    Posted Tue April 25, 2023 05:04 PM

    Hello Gary,

    "Error Code 5" means some problems with the scanner input file...
    It could be an issue with accessing Catalog file ('catalog_scan.xml'), one of the 'xxx_scan.xml' config files or some file system related problem.

    In the 'logs' folder you should see couple of traceCITx.log files...those are files keeps log entries from CIT binaries (wscansw/wscanfs).
    I'd start with investigation of all entries between the SW scan startup (---START--- xxx scan started) and finish line (---STOP--- xxx scan finished with return code).

    Anyhow, we are happy to help with the investigation process...just open up the support ticket.

    Thanks,



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

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



  • 3.  RE: "Error Code 5" when scanning Windows servers

    Posted Tue April 25, 2023 06:27 PM

    Thank you for the quick response.
    We have looked at the servers and cannot find the "catalog_scan.xml" file anywhere under the LMTScanner directory (the location where we install our software). Based upon the information we found in the logs, this file should be located in the "/work" subdirectory. How do we install that file? We also checked our Linux servers to see if that file existed, however, the Linux directory structure appears to be slightly different.

    I included the output from the recent scan showing our errors.

    2023-04-25T21:24:00Z) "Starting run_sw.bat (windows 9.2.30.0)"
    (2023-04-25T21:24:00Z) "Checking console successful"
    (2023-04-25T21:24:00Z) "Running command: .\..\cit\bin\wscanfs.exe -reset"
    (2023-04-25T21:24:01Z) "Starting Catalog Based Scan (SW)..."
    (2023-04-25T21:24:01Z) "Running command: .\..\cit\bin\wscansw.exe -s -c .\..\config\sw_config.xml -i .\..\config\CIT_catalog_WINDOWS.xml -o .\..\work\catalog_scan.xml -e .\..\logs\catalog_scan_CIT_warnings.log"
    (2023-04-25T21:24:01Z) "Catalog Based Scan failed with return code: 5"
    (2023-04-25T21:24:01Z) "Starting ISO-tag Scan (SW)..."
    (2023-04-25T21:24:01Z) "Running command: .\..\cit\bin\wscanfs.exe -s -c .\..\config\isotag_config.xml -o .\..\work\isotag_scan.xml -i"
    (2023-04-25T21:24:01Z) "ISO-tag Scan failed with return code: 5"
    (2023-04-25T21:24:02Z) "Starting SLM-tag Scan (SW)..."
    (2023-04-25T21:24:02Z) "Running command: .\..\cit\bin\wscanfs.exe -s -c .\..\config\slmtag_config.xml -o .\..\work\slmtag_scan.xml -i"
    (2023-04-25T21:24:02Z) "SLM-tag Scan failed with return code: 5"
    (2023-04-25T21:24:02Z) "Running command: .\..\cit\bin\wscanfs.exe -reset"
    (2023-04-25T21:24:02Z) "Starting Package Scan (SW)..."
    (2023-04-25T21:24:02Z) "Running command: CSCRIPT //Nologo .\..\bin\packageData.vbs .\..\work\package_scan.xml"
    (2023-04-25T21:24:03Z) "Package Scan was successful"
    (2023-04-25T21:24:03Z) "Software Scan script finished"

    Thanks again for all the help!



    ------------------------------
    Gary Latter
    Solution Architect
    Peraton
    CA
    ------------------------------



  • 4.  RE: "Error Code 5" when scanning Windows servers

    Posted Wed April 26, 2023 01:04 AM

    Hello,

    Sorry for misleading suggestion... 
    "catalog_scan.xml" file is an output file...you will not find this file until soft scan is finished successfully.

    The problem seems to be with accessing any soft scan related input file ("Error Code 5" shows up for wscansw & wscanfs).
    At first, pls. verify the content of "/config" subdirectory....you should see six '.xml' input files.
    If any of those is missing you need to recover from the disconnected scanner package (I'm sending the link just in case):
    http://software.bigfix.com/download/lmt/disconnected_scans/20221206-1315/LMT-DisconnectedScanner-windows-9.2.30.0-20221206-1315.zip

    Nevertheless, if all those '.xml' input files are in place please try to run the scanner manually.
    execute the following directly from the disconnected scanner folder :
    cit\bin\wscanfs.exe -s -c config\isotag_config.xml -o isotag_scan.xml
    Next, check the exit code :
    echo %errorlevel%

    At last,
    any potential problems with '.xml' input file access should be reported in traceCITx.log files.



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

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