3.24.1. General description
To configure the parameters of the interaction of the "1C:Enterprise" system with the HASP License Manager, the configuration file nethasp.ini is used.
The file is located in the directory with the 1C:Enterprise configuration files. It is optional. If this file is not in the directories of configuration files, then it is searched in the following directories:
- On Windows:
- Directory with the executable files representing the running version of 1C:Enterprise
- Current directory
- Directory %SYSTEMROOT%\System32 (for the 32-bit Windows) or %SYSTEMROOT%\SysWOW64 (for the 64-bit Windows)
- Directory %SYSTEMROOT%\System
- Directory %SYSTEMROOT%
- Directories listed in the environment variable PATH
- On Linux:
- Current directory
- User home directory
- Directory/etc
- On macOS:
- Current directory
- User home directory
- Directory/etc
The nethasp.ini file contains four sections:
- [NH_COMMON]. For general settings.
- [NH_IPX]. For IPX protocol.
- [NH_NETBIOS]. For NetBIOS protocol.
- [NH_TCPIP]. For TCP/IP protocol.
The [NH_COMMON] section contains global settings for all sections of the configuration file. All other sections contain settings affecting the performance of operations with a specific protocol.
In each section, the parameters specific to this section or overall to all sections can be used. Specifying a parameter overall to all sections in a section for one of the three protocols has a higher priority than setting in the [NH_COMMON] section (relative to this protocol).
To define additional settings for a specific protocol, the parameters specific to a particular section should be used.
Configuration files may contain comments. A comment begins with a ";" (semicolon) and continues to the end of the line.
A case of letters in parameter names does not matter.
Below is a list of parameters and their valid values which may be given in various sections of the nethasp.ini file.
When you install 1C:Enterprise, a sample of the nethasp.ini file is copied to the conf subdirectory of the 1C:Enterprise installation directory. This file is almost entirely composed of commented lines and does not override the default settings in any way but it contains at the same time the most complete list of parameters that can be used to configure the interaction of the 1C:Enterprise system with the HASP License Manager.
The parameters of each section of the configuration file are described in detail below.