Using the configuration files to fine tune the operation of the Network licence manager
Most Network setups work Ok with the standard install of the Optimising program and the Network key software (Network licence manager).
However for some Network setups some fine tuning is necessary.
Whenever the Optimising program is started and randomly whilst it is running the program checks for the security key and that a valid licence is available. To do this the program must look at the computer where the network key is located and the Licence manger software is running.
Some Network setups can cause this search to be slow or prevent it from working reliably if the default Network key setup is used.
These problems are fixed by fine tuning how the Optimising program searches for the security key and how the Licence manager is running on the Network.
Two files are used for this.
NetHasp.ini - by default this is NOT installed as it is usually not required. A copy of this file is located on the Optimising program CD-ROM or Distribution in the directory: ..\Networks\Other\. To use it take a copy and place it in the Program directory for the Optimising program (where the optimising program is installed).
Nhsrv.ini - this is created automatically by the LMSETUP program when the Network key software is installed and is located on the server or PC where the licence manager is running. Typically in the directory: ..\Program Files\Aladdin\HASP LM
These files control each end of the link between the Optimising program and the Licence manager.
Optimising program ---> NetHasp.ini <----> Nhsrv.ini <--- Licence manager
It is best to use NetHasp.ini to try and fix any problems - but in some cases both files need adjusting.
The files are ASCII files that can be edited by a text editor such as Notepad - always take a backup copy of each file before making any changes.
NetHasp.ini
An example of the file is shown below.
;
; NetHASP Configuration file syntax.
;
;
; Note:
;
; All text lines were commented.
; Remove comments in the lines you want to use.
;
[NH_COMMON]
;
; Section-specific Keywords
;
;
; You can set either of the following three Keywords to "Enabled"!
;
;;NH_IPX = Enabled or Disabled ; Use the IPX protocol
;;NH_NETBIOS = Enabled or Disabled ; Use the NETBIOS protocol
;;NH_TCPIP = Enabled or Disabled ; Use the TCP/IP protocol
;
; General Keywords
;
;;NH_SESSION = <Num> ; See Adapting the Timeout Length
;;NH_SEND_RCV = <Num> ; in the HASP Programmer's Guide.
[NH_IPX]
;
; Section-specific Keywords for the IPX protocol.
;
;;NH_USE_BINDERY = Enabled or Disabled ; Use IPX with bindery.
; Default: Disabled
; Ignored under Win32 API.
; This switch replaces older switch
; named NH_USE_SAP.
;;NH_USE_BROADCAST = Enabled or Disabled; Use IPX Broadcast mechanism.
; Default: Enabled
;;NH_BC_SOCKET_NUM = <Number> ; Broadcast socket number (HEX).
; Default: 7483H
;;NH_USE_INT = 2F_NEW or 7A_OLD ; 2F_NEW means that IPX protocol will
; use interrupt 2Fh ONLY.
; 7A_OLD means that IPX protocol will
; use interrupt 7Ah ONLY.
; Default: 2F_NEW.
;;NH_SERVER_NAME = <Name1>, <Name2>,.. ; Communicate with the NetHASP
; Server with the specified name.
; Maximum: 6 names, up to 7
; case-insensitive characters each.
;;NH_SEARCH_METHOD = Localnet or Internet ; See Local Networks and
; Internetworks in the HASP
; Programmer's Guide.
;;NH_DATFILE_PATH = <path> ; Specify the location of the NetHASP
; License Manager's address file.
;
; General Keywords
;
;;NH_SESSION = <Num> ; See Adapting the Timeout Length
;;NH_SEND_RCV = <Num> ; in the HASP Programmer's Guide.
[NH_NETBIOS]
;
; Section-specific Keywords for the NetBIOS protocol.
;
;;NH_NBNAME = <Name> ; Assign a name to the NetHASP
; License Manager.
; 1 name possible, up to 8
; case-insensitive characters.
;;NH_USELANANUM = <Num> ; Assign a lana number to be used
; as a communication channel.
;
; General Keywords
;
;;NH_SESSION = <Num> ; See Adapting the Timeout Length
;;NH_SEND_RCV = <Num> ; in the HASP Programmer's Guide.
[NH_TCPIP]
;
; NetHASP does not support TCP/IP under DOS.
;
;
; Section-specific Keywords for the TCP/IP protocol.
;
;;NH_SERVER_ADDR = <Addr1>, <Addr2> ; IP addresses of all the NetHASP
; License Managers you want to search.
; Unlimited addresses and multiple
; lines are possible.
;
; Possible address format examples:
; IP address: 192.114.176.65
; Local Hostname: ftp.aladdin.co.il
;;NH_PORT_NUMBER = <Num> ; Set the TCP/IP port number. This is
; optional. The default number is 475.
;;NH_TCPIP_METHOD = TCP or UDP ; Send a TCP packet or UDP packet
; Default: UDP
;;NH_USE_BROADCAST = Enabled or Disabled; Use TCPI/IP Broadcast mechanism.
; Default: Enabled
;;NH_SERVER_NAME = <Name1>, <Name2>, ; Communicate with the NetHASP
; Server with the specified name.
; Maximum: 6 names, up to 7
; case-insensitive characters each.
;
; General Keywords.
;
;;NH_SESSION = <Num> ; See Adapting the Timeout Length
;;NH_SEND_RCV = <Num> ; in the HASP Programmer's Guide.
In the file on the CD all the commands are inactive; that is, they are all preceded by ;;
To activate a command simply remove the ';;' text in front of the command.
Some problems
(1) V12 does not always start and the number of Licences available is not correct
This can occur where the PC is linked to more than one network, for example, if the PC is linked to a hard wired internal network and also has a wireless broadband link to the Internet.
In this case the search for the key and licences can be directed to the Wireless Network which may be slow or unreliable and take time to return a failed search.
The problem can be solved by directing the search to the hard wired LAN network where it is known the key/licence manager is located.
To do this:-
• Identify the IP address for the computer with the key running the licence manager on the hard wired Network (usually the server)
• Set the configuration file to look only at that address.
Locate the following commands in the nethasp.ini file and activate the commands by removing the ;; text at the start of the relevant commands:-
NH_TCPIP = Enabled ; Use the TCP/IP protocol
NH_SERVER_ADDR = 192.114.176.65 ; IP addresses NetHASP
NH_USE_BROADCAST = Disabled
• Copy the modified file to the V12 program directory of the V12 users.
(2) Using the Licence Manager over a Wide Area Network (WAN)
On the server:-
• Load Nethasp Licence Manager with -tcpip switch
On each Local PC:-
Locate the following commands in the nethasp.ini file and activate the commands by removing the ;; text at the start of the relevant commands:-
NH_TCPIP = Enabled ; Use the TCP/IP protocol
NH_TCPIP_METHOD = UDP
NH_SERVER_ADDR = 192.114.176.65 ; IP addresses NetHASP
NH_USE_BROADCAST = Disabled
On the remote PC's
This method will only work if the HOST PC's IP address is static
Copy the edited nethasp.ini file to a location accessible by V12 (program directory).
(3) User has more than one Network key on the same system
In the (quite rare) case where a customer has two network keys, each user should be assigned to a specific key by setting the licence manager's IP address in the nethasp.ini file:
;NH_SERVER_ADDR = <Address> ; IP address of the LM
If this is not done, random program failures may result.
Notes
- V12 searches for the licence manager as follows:-
Program directory
User directory
Windows system directory
Windows directory
Path environment
- To locate the IP address of a PC. At the PC:-
Move to the command line prompt
Enter: ipconfig
- To check that an IP address can be seen from a PC
Move to the command line prompt
Enter: ping <ip address> e.g. ping 192.01.10.56
Nhsrv.ini
Check with your supplier before attempting to adjust this file
An example of the file is as follows:-
;*******************************************************************************
;*
;* NetHASP License Manager sample configuration file.
;*
;* boolean switches may have the values
;* 1, yes, true, enabled
;* 0, no, false, disabled
;*
;*******************************************************************************
; ------------------------------------------------------------------------------
; global LM settings
; ------------------------------------------------------------------------------
[NHS_SERVER]
NHS_USERLIST = 250 ; maximum number of concurrent logins
; to this LM (default=250, max = 65520)
;NHS_SERVERNAMES = cad, test1, ; server names to match the name a client
; LM017, ; requests (max 6 names, max 7 chars/name)
; oefibla
NHS_HIGHPRIORITY = no ; run LM at high priority (default=no)
; ------------------------------------------------------------------------------
; settings for the IP protocol
; ------------------------------------------------------------------------------
[NHS_IP]
NHS_USE_UDP = enabled ; enabled or disabled (default: enabled)
NHS_USE_TCP = enabled ; enabled or disabled (default: enabled)
NHS_IP_portnum = 475 ; IP port number (default: 475 (IANA registered))
; CAUTION: clients must use the same port !
;NHS_IP_LIMIT = 10.24.2.18-99, 10.1.1.9/16, 10.25.0.0/24,
; 192.0.0.*, 194.0.*.*, 11.*.*.*,
; 10.24.7.8-12 /30, 10.24.2.17
; specifies the range of stations that are allowed to access the LM
; the LAST byte may be a range (e.g., 10-120)
; the 4th, the 4th and 3rd, or the 4th and 3rd and 2nd byte may be an asterisk,
; acting as wildcard (e.g., 10.*.*.*, but NOT 10.*.20.1)
; an additional bitmask can be specified as number of one-bits (e.g., 10.0.0.0/8)
; ------------------------------------------------------------------------------
; settings for the IPX protocol
; ------------------------------------------------------------------------------
[NHS_IPX]
NHS_USE_IPX = enabled ; enabled or disabled (default: enabled)
;NHS_addrpath = c:\temp ; pathname for haspaddr.dat (default: current dir)
NHS_AppendAddr = no ; append to haspaddr.dat (default: replace)
NHS_usesap = enabled ; enabled or disabled (default: enabled)
NHS_ipx_socketnum = 0x7483 ; IPX socket number (default: 0x7483)
; CAUTION: clients must use the same number !
; ------------------------------------------------------------------------------
; settings for the NetBios protocol
; ------------------------------------------------------------------------------
[NHS_NETBIOS]
NHS_USE_NETBIOS = enabled ; enabled or disabled (default: enabled)
;NHS_NBNAME = MyNBName ; use another than predefined NetBios name
; CAUTION: clients must use the same name !
;NHS_use_lana_nums = 3,0,7,2 ; default = all (automatic)
; ------------------------------------------------------------------------------
; end of file
; ------------------------------------------------------------------------------
Details of the settings and the operation of the file are in the help file provided: nhsrvw.hlp.