PVCS License Server的端口问题,以及通过防火墙访问的办法

来源:互联网 发布:魔兽正义长袍数据库 编辑:程序博客网 时间:2024/05/22 03:25

PVCS License Server使用2个端口,27000是server daemon的默认端口,而vendor daemon的端口是动态的。

如果需要通过防火墙访问License Server,需要设置vendor daemon到一个静态的端口上。方法为:

打开./License Sever/serena.lic(使用记事本,里面的回车换行符是Unix的,只有/n不是Windows的/r/n),找到VENDOR merant这一字串,将之改变为VENDOR merant port=nnnnn,这里nnnnn是要指定的静态端口号。

然后重启license server的服务就好了。

在log里面如果能看到这样的内容,就说明成功了:

13:05:35 (lmgrd) Starting vendor daemons ...
13:05:35 (lmgrd) Starting vendor daemon at port 27001
13:05:35 (lmgrd) Using vendor daemon port 27001 specified in license file

 

关于server daemon,其实也是可以自定义端口的。下面转载Serena官方站上的解决方法:

Connect to License Server through firewall resolution:

Two TCP ports are used by License Manager, the server daemon and the vendor daemon.  The server daemon uses port 27000 by default and is fixed and the vendor daemon port is dynamic, assigned at startup.  If required the server daemon can be assigned a different port and the vendor daemon can be assigned a static port.  To assign the vendor daemon to a static port do the following:

1. Open ./License Sever/serena.lic in Notepad to ensure the formatting is not lost.

2. Find "VENDOR merant".

3. Modify it to read "VENDOR merant port=nnnnn" where nnnnn is a port number. 

 

To assign a different port to the server daemon requires modification of two files, serena.lic and the clients islv.ini.

1. Open ./License Sever/serena.lic in Notepad to ensure the formatting is not lost.

2. On the first line add the desired port to the end of the string, i.e. "SERVER pvcs.domain.com 000874357 25000"

3. On each client machine open islv.ini for Windows, .islvrc for Unix.

4. Modify SERVER=@flexlm-server in the [Licensing] section to read SERVER=25000@flexlm-server

 

By default the islv.ini is located in the ./windows directory, however it may also be located in ./Documents and Settings/user_ID/windows.  On Unix the .islvrc in the users $HOME directory.  If VM I-Net is in use the appropriate file for that system must also be modified.