Software scan return codes

If the software scan fails, an error code that indicates why the scan failed is returned. Check what is the possible cause of scan failure that is indicated by each code and how to solve the problem.

Locating the return codes

  • On computers with the BigFix® client.

    Return codes are available in the results of the Software Scan Status analysis.

  • On computers with the disconnected scanner.
    Return codes are available in the scanner_status.yml file that is located in the following directory. It is also added to every scan results package.
    • UNIX <disconnected_scanner_install_dir>/work
    • Windows <disconnected_scanner_install_dir>\work

Software scan return codes

Table 1. Software scan return codes
Return code Possible cause and solutions
0 No errors.
1 Windows Scan data was not gathered. To verify what is the cause of the problem, go to the computer where the problem occurred, open the command prompt and run the following command.
cscript
The command should return one of the following errors.
  • 'cscript' is not recognized as an internal or external command, operable program or batch file.
    The message indicates that the Windows cscript is not recognized as an internal or external command, operable program or batch file. To solve the problem, perform the following steps. The exact steps might differ depending on the version of Windows that you are using.
    1. On the computer where the problem occurred, open the Control Panel, and go to System and Security > System > Advanced system settings.
    2. Click Environment Variables.
    3. In the System Variables section, find the Path variable. At the end of the variable, add ;C:\windows\system32.
    4. Restart the BigFix client.
  • CScript Error: Can't find script engine "VBScript" for script ...
    The message indicates that the Windows VBScript.dll script is not registered. To solve the problem, perform the following steps.
    1. On the computer where the problem occurred, click the Start button, and type cmd. In the search results, right-click the Command Prompt, and click Run as administrator.
    2. In the command prompt, type %windir%\system 32, and press Enter.
    3. Type regsvr32 vbscript.dll, and press Enter.
    4. Type regsvr32 jscript.dll, and press Enter.
    If the registration completed successfully, the following message is displayed: DllRegisterServer in vbscript.dll succeeded.
2 The scanner configuration file is corrupted. Reinstall or upgrade the scanner. For more information, see the following links.
3 A signature file could not be parsed. Reinstall or upgrade the scanner to redeploy the software catalog on computers where the problem occurred. For more information, see the following links.
4 Scan output file could not be saved to the output directory. Ensure that the scan output directory is writable. By default, the directory is in the following location.
  • On computers with the BigFix client.
    • UNIX /var/opt/BESClient/LMT/CIT
    • Windows C:\Program Files (x86)\BigFix Enterprise\BESClient\LMT\CIT
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/work
    • Windows <disconnected_scanner_install_dir>\work
5 The user that runs the scan does not have read permission to the scanner configuration file. Ensure that the user has the read and write permissions to the following directory.
  • On computers with the BigFix client.
    • UNIX /opt/tivoli/cit/config/
    • Windows C:\Program Files\tivoli\cit\config
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/cit/config
    • Windows <disconnected_scanner_install_dir>\cit\config
6 Scanner catalog does not exist on the endpoint. Reinstall or upgrade the scanner to redeploy the software catalog on computers where the problem occurred. For more information, see the following links.
8 Scanner internal error occurred. Gather scanner logs and contact IBM Support. By default, the log files are in the following directory.
  • On computers with the BigFix client.
    • UNIX /usr/ibm/tivoli/common/CIT/logs or /var/ibm/tivoli/common/CIT/logs
    • IBM i /etc/cit/logs
    • Windows C:\Program Files\ibm\tivoli\common\CIT\logs
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/logs
    • Windows <disconnected_scanner_install_dir>\logs
9 The scanner timed out. Perform the following tasks.
If all other options fail, reinstall the scanner. For more information, see the following links.
10 The scanner is being upgraded. Wait until the upgrade finishes.
11 Scan output file or directory is read only. Ensure that the scan output file or directory is writable. By default, the directory is in the following location.
  • On computers with the BigFix client.
    • UNIX /var/opt/BESClient/LMT/CIT
    • Windows C:\Program Files (x86)\BigFix Enterprise\BESClient\LMT\CIT
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/work
    • Windows <disconnected_scanner_install_dir>\work
12 The cit.ini file was not found. Install the scanner. By default, the cit.ini file is located in the following directory.
  • UNIX /etc/cit
  • Windows C:\Windows\cit
13 The scanner configuration file was not found. Reinstall or upgrade the scanner. For more information, see the following links.
14 The scanner trace file was not found. Reinstall or upgrade the scanner. For more information, see the following links.
18 One of the scanner files could not be open. Ensure that the administrator or root of the computer on which the problem occurred has the read and write permissions to the following files.
Scanner configuration file CitHWConfig.xml, scanner properties file Cit.properties, and scanner trace file CitTrace.properties, which by default are in the following directory.
  • On computers with the BigFix client.
    • UNIX /opt/tivoli/cit/config/
    • Windows C:\Program Files\tivoli\cit\config
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/cit/config
    • Windows <disconnected_scanner_install_dir>\cit\config
19 One of the scanner files could not be renamed. Ensure that the administrator or root of the computer on which the problem occurred has the read and write permissions to the following files.
Scanner configuration file CitHWConfig.xml, scanner properties file Cit.properties, and scanner trace file CitTrace.properties, which by default are in the following directory.
  • On computers with the BigFix client.
    • UNIX /opt/tivoli/cit/config/
    • Windows C:\Program Files\tivoli\cit\config
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/cit/config
    • Windows <disconnected_scanner_install_dir>\cit\config
20 One of the scanner files could not be deleted. Ensure that the administrator or root of the computer on which the problem occurred has the read and write permissions to the following files.
Scanner configuration file CitHWConfig.xml, scanner properties file Cit.properties, and scanner trace file CitTrace.properties, which by default are in the following directory.
  • On computers with the BigFix client.
    • UNIX /opt/tivoli/cit/config/
    • Windows C:\Program Files\tivoli\cit\config
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/cit/config
    • Windows <disconnected_scanner_install_dir>\cit\config
21 The scanner configuration file is corrupted. Reinstall or upgrade the scanner. For more information, see the following links.
22 The scanner trace file is corrupted. Reinstall or upgrade the scanner. For more information, see the following links.
28 A required shared library file is not available. Reinstall or upgrade the scanner. For more information, see the following links.
29 The scanner timed out. Perform the following tasks.
If all other options fail, reinstall the scanner. For more information, see the following links.
30 The scanner query failed. Gather scanner logs and contact IBM Support. By default, the log files are in the following directory.
  • On computers with the BigFix client.
    • UNIX /usr/ibm/tivoli/common/CIT/logs or /var/ibm/tivoli/common/CIT/logs
    • IBM i /etc/cit/logs
    • Windows C:\Program Files\ibm\tivoli\common\CIT\logs
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/logs
    • Windows <disconnected_scanner_install_dir>\logs
31 The scan process was interrupted. On computers with the BigFix client, stop the running scan action and start the scans again. On computers with the disconnected scanner., rerun the scan.
37 Scanner internal error occurred. Gather scanner logs and contact IBM Support. By default, the log files are in the following directory.
  • On computers with the BigFix client.
    • UNIX /usr/ibm/tivoli/common/CIT/logs or /var/ibm/tivoli/common/CIT/logs
    • IBM i /etc/cit/logs
    • Windows C:\Program Files\ibm\tivoli\common\CIT\logs
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/logs
    • Windows <disconnected_scanner_install_dir>\logs
40 An error occurred while creating the warning file during the software scan. Ensure that the administrator or root of the computer on which the problem occurred has the read and write permissions to the following directory.
  • On computers with the BigFix client.
    • UNIX /var/opt/BESClient/LMT/CIT
    • Windows C:\Program Files (x86)\BigFix Enterprise\BESClient\LMT\CIT
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/work
    • Windows <disconnected_scanner_install_dir>\work
41 Scanner process initialization failed. Gather scanner logs and contact IBM Support. By default, the log files are in the following directory.
  • On computers with the BigFix client.
    • UNIX /usr/ibm/tivoli/common/CIT/logs or /var/ibm/tivoli/common/CIT/logs
    • IBM i /etc/cit/logs
    • Windows C:\Program Files\ibm\tivoli\common\CIT\logs
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/logs
    • Windows <disconnected_scanner_install_dir>\logs
42 The signature catalog schema cannot be found. Reinstall or update the scanner. For more information, see the following links. If it does not help, gather scanner logs and contact IBM Support. By default, the log files are in the following directory.
  • On computers with the BigFix client.
    • UNIX /usr/ibm/tivoli/common/CIT/logs or /var/ibm/tivoli/common/CIT/logs
    • IBM i /etc/cit/logs
    • Windows C:\Program Files\ibm\tivoli\common\CIT\logs
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/logs
    • Windows <disconnected_scanner_install_dir>\logs
49 The user that runs the scan does not have the read permission to the scanner properties file cit.properties. Ensure that the administrator or root of the computer on which the problem occurred has the read permissions to this file. By default, the file is in the following directory.
  • On computers with the BigFix client.
    • UNIX /opt/tivoli/cit/config/
    • Windows C:\Program Files\tivoli\cit\config
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/cit/config
    • Windows <disconnected_scanner_install_dir>\cit\config
51 The scanner configuration file was not found. Reinstall or upgrade the scanner. For more information, see the following links.
52 Scanner internal error occurred. Gather scanner logs and contact IBM Support. By default, the log files are in the following directory.
  • On computers with the BigFix client.
    • UNIX /usr/ibm/tivoli/common/CIT/logs or /var/ibm/tivoli/common/CIT/logs
    • IBM i /etc/cit/logs
    • Windows C:\Program Files\ibm\tivoli\common\CIT\logs
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/logs
    • Windows <disconnected_scanner_install_dir>\logs
54 The scan file cannot be compressed. Ensure that the administrator or root of the computer on which the problem occurred has the read and write permissions to the following directory.
  • On computers with the BigFix client.
    • UNIX /var/opt/BESClient/LMT/CIT
    • Windows C:\Program Files (x86)\BigFix Enterprise\BESClient\LMT\CIT
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/work
    • Windows <disconnected_scanner_install_dir>\work
56 The scan output signature file cannot be created. Ensure that the administrator or root of the computer on which the problem occurred has the read and write permissions to the following directory.
  • On computers with the BigFix client.
    • UNIX /var/opt/BESClient/LMT/CIT
    • Windows C:\Program Files (x86)\BigFix Enterprise\BESClient\LMT\CIT
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/work
    • Windows <disconnected_scanner_install_dir>\work
57 UNIX One of the following environment variables is not set.
  • LD_LIBRARY_PATH
  • DYLD_LIBRARY_PATH
  • SHLIB_PATH
  • LIBPATH
The variables should specify the path to the scanner binary folder. By default, the folder is in the following location: /opt/tivoli/cit/bin. To solve the problem, set the environment variables and run the software scan again.
9.2.30 123 The return code is applicable only to computers with the disconnected scanner. It is not applicable to computers with the BigFix client.
The scan was interrupted because another software scan is in progress. Go to the computer where the problem occurred and verify if any of the following processes is running:
  • wscansw
  • wscanfs
Gather scanner logs and contact IBM Support. By default, the log files are in the following directory.
  • UNIX <disconnected_scanner_install_dir>/logs
  • Windows <disconnected_scanner_install_dir>\logs
125 Memory allocation failed. Gather scanner logs and contact IBM Support. By default, the log files are in the following directory.
  • On computers with the BigFix client.
    • UNIX /usr/ibm/tivoli/common/CIT/logs or /var/ibm/tivoli/common/CIT/logs
    • IBM i /etc/cit/logs
    • Windows C:\Program Files\ibm\tivoli\common\CIT\logs
  • On computers with the disconnected scanner.
    • UNIX <disconnected_scanner_install_dir>/logs
    • Windows <disconnected_scanner_install_dir>\logs
255 The return code is applicable only to computers with the disconnected scanner. It is not applicable to computers with the BigFix client.
Scanner internal error occurred. Gather scanner logs and contact IBM Support. By default, the log files are in the following directory.
  • UNIX <disconnected_scanner_install_dir>/logs
  • Windows <disconnected_scanner_install_dir>\logs

Return codes greater than 128 or 256

Unix Some return codes are triggered by problems that are signaled by the operating system. These are the return codes greater than 128 in case of bash and 256 in case of ksh. To check what is the system signal, use the following calculations:
  • For bash: return code - 128 = operating system signal
  • For ksh: return code - 256 = operating system signal
To identify the issue, check the meaning of the signal in the operating system documentation.
The following table presents the list of the most common return codes, their possible cause and solution.
Table 2. Scanner return codes greater than 128
Return code Signal Possible cause and solution
134 6 - SIGABRT There might not be enough memory available for the process to work. Increase the memory limit for this process by changing ulimit for data seg size: ulimit -d. If the problem persists, contact IBM Support.
138 10 - SIGBUS There is not enough disk space on the computer. Free some disk space. If the problem persists, ensure that you use the latest version of the scanner.
139 11 - SIGSEGV There might not be enough memory available for the process to work. Increase the memory limit for this process by changing ulimit for data seg size: ulimit -d. If the problem persists, contact IBM Support.