QTP/UFT Support tip: Install the redundant license server
Tips and Recommendations
- The license servers in the redundant license server pool must have the same version.
- The license servers should preferably be running on the same platforms (such as, Windows only or Linux only).
- Because the leader must communicate with all other redundant license servers, the leader should be in an area of the network with good bandwidth.
- Each computer on which a redundant license server resides must have a static, fixed IP address. Therefore, do not use DHCP to dynamically allocate IP addresses for those computers.
- A server can exists only in one license pool.
- Setting up redundant license servers requires you to have access privileges to all computers and areas of the network on which license servers will be installed. If you make changes to the redundant license file, those changes will not be transferred to all license servers in the redundant license server pool unless you have network and write access to each of the redundant license server computers. If any of these computers run Windows 2000/XP/Server 2003/Vista/Server 2008, the customer must have administrator privileges to make changes that affect the license servers on those computers.
Setting up the Redundant License Server Pool
- First, install (but don’t run) the license servers on different computers on the network.
Note: The RMS license servers must be of the same version.
- Next, set each client to access the preferred license server for that client by setting the LSHOST or LSFORCEHOST environment variables on that client’s computer. (Or, if preferred, you can choose not to set this environment variable and allow the client to broadcast for an available license server.)
- If your vendor has specified that the license servers will be locked to specific computers, you will need to run echoid on each computer and record the locking code. You should also record the host name of each computer and its IP address. You will then give the locking codes, host names, and addresses to your vendor so that he or she can create the license codes for these license servers.
- You will now install the licensed applications on the end user computers.
- If any license servers are running that will be used as redundant license servers, you must shut them down before creating the redundant license file.
- After you receive the license codes from your vendor that will be serviced by the redundant license server pool, use WRlfTool or rlftool (or WlmAdmin to call WRlfTool) to create a redundant license file to:
- Add the license servers to the redundant license server pool by specifying the host name and IP address for each computer containing a redundant license server. This defines which license servers are in the redundant license server pool.
Note: Make sure that you specify IP addresses in either IPv4 or IPv6 format. A redundant pool cannot have mixed servers (both IPv4 and IPv6). Consequently, a redundant server can work either in IPv6 or IPv4 mode—as long as the server is running or not removed from the redundant pool.
- Set the preference number of the license servers. The first license server added to the pool and started up first is also known as the leader and all other license servers will be known as the followers. The preference order specifies the order in which the leader will be chosen if license servers go down.
- Use rlftool or WRlfTool to add the redundant license codes received from the vendor into the redundant license file (by default named as, lservrlf).
By using the lslic utility, redundant licenses can be added dynamically. If the requested server is the follower, it will forward the request to the leader; the leader server will then check the validity of license. If the license can be added, the leader will add that license and forward the license code to all the followers.
- Since this is the first time that the redundant license server pool has been set up, you need to copy the redundant license file to each of the computers on which the redundant license servers resides. After this, changes to any one of the redundant license files will automatically be transmitted to each redundant license server when one of the license servers is stopped and restarted.
- Bring up each of the license servers in the pool. Because the redundant license file is in the same directory as each license server, each license server will automatically start up as a redundant license server.
Using WRlfTool to Create or Edit a Redundant License File
WRlfTool is a Windows-interface program that allows you to create and maintain a redundant license file.
The WRlfTool utility by default distributes the license tokens for a redundant license among the redundant servers in the pool for high assurance.
Using Windows Explorer, navigate to the location of the wrlftool.exe file, and double-click the file to start the program. (The exact location of this file depends on your application vendor.)
Note: The changes you make to the redundant license file will not take effect until you copy the changed file to a redundant license server in the pool (or edit it directly on the license server) and then restart that server.
Creating and Maintaining the Redundant License File
- To create a new redundant license file, go to the File menu and select New.
To edit an existing redundant license file, go to the File menu and select Open and then select the desired file.
- To add a new license server to the pool, click Add Server. You are then asked to type the host name and the IP address of the computer on which that license server resides. All the license servers in the pool must use the IP address to communicate.
- Once you have added more than one license server to the pool, you can select one of the license servers and click Move Up or Move Down to adjust its order in the pool. This sets it preference order. If the license server having first preference goes down, the license server with second preference will be elected as the leader, and so on.
- At any time you can select a license server and click Delete Server to delete it from the pool.
Adding/Editing/Deleting Redundant Licenses
- To add a redundant license to the pool, click Add License.
You can access a screen that allows you to either add the license code or specify a file containing the license code.
- Once you have added the license code, you see the View License screen. It displays information about this license such as the feature/version licensed, how many license servers it is set up to use, and so on.
Note: The license distribution will show all the token in the name of the leader.