The config.ini file is placed in the same folder as the OC Scanner application file. The purpose of this file is to be able to overrule conventions used by OC Scanner or to add additional information for OC Scanner. If the config.ini file doesn't exist before starting OC Scanner, it will be created automatically and is usually never touched by you.
Following parameters can be set:
| INSTANCE_ID | The INSTANCE_ID value represents a unique ID for each OC Scanner instance. OC Scanner uses INSTANCE_ID to generate unique reference IDs for the generated inventory CSV. INSTANCE_ID is generated by OC Scanner automatically, if not set manually. |
|---|---|
| CONFIG_FILE_NAME | The CONFIG_FILE_NAME value is the scan file name used with the remote.cfg scan file when using the agentless multiple scanner approach. CONFIG_FILE_NAME defines which scan file OC Scanner should pick up from the OC Configurator API server. By convention, OC Scanner will use the FQDN name string of the server where it is deployed to get its scan file from the OC Configurator API server. |
Important: When you replace or move the OC Scanner .exe application to another server, always copy its own config.ini file with it to the new server. Otherwise, it could cause issues and duplicate inventory data in the OC View frontend application.