Forcing the rmi registry to use a specific port, Hafm_sc.bat – HP StorageWorks 2.32 Edge Switch User Manual

Page 172

Advertising
background image

Configuring HAFM through a firewall

172

Forcing server and client to export port number

” on page 173

NOTE:

You must configure both the server and client export port numbers.

If the firewall prevents the server from connecting to arbitrary ports on the client, then configure

the export port of the client in ”

Forcing server and client to export port number

” on page 173.

Forcing the RMI registry to use a specific port

To force the RMI registry to use a specific TCP port for an RMI server, configure the

Dsmp.registry.port=XXXX

parameter in the following files in the

HAFM 8.x\bin

directory

(typically in

c:\Program Files\HAFM 8.x\bin

):

The client and server portion of the

HAFM_sc.bat

file

HAFM_c.bat

file (if installed)

The

HAFM_sc.bat

file starts both the client and server and is installed on a computers with the

HAFM appliance software. The

HAFM_c.bat

file starts the client only and is installed with the

client software.

HAFM_sc.bat

Place the parameter

-Dsmp.registry.port=XXXX

, where

XXXX

is any TCP port number not

being used by another application after the

%CLASSPATH%

parameter.

The following example shows the edited file with the added parameter in bold:

setlocal

pushd %~dp0\..

call bin\set_cp.bat

...............

rem HAFM Server

start %JAVA_HOME%\bin\HAFMServer.exe -server -Xmx512m -Xminf.15 -Xmaxf.35
-classpath %CLASSPATH% -Dsmp.Mp.max=512 -Dsmp.autodiscovery=false
-Dsmp.mpi.test -Dsmp.deployment.prefix=Server/ -Dsmp.zoning=legacy
-Dsmp.zoning.wait.timeout=180000 -Dsmp.webServer -Dsmp.registry.port=XXXX
-Dsmp.flavor=%APP_FLAVOR% Server

rem HAFM Server Debug Mode

rem start %JAVA_HOME%\bin\HAFMServerD.exe -server -Xmx512m -Xminf.15
-Xmaxf.35 -classpath %CLASSPATH%
-Dsmp.Mp.max=512 -Dsmp.autodiscovery=false -Dsmp.mpi.test
-Dsmp.deployment.prefix=Server/ -Dsmp.zoning=legacy
-Dsmp.zoning.wait.timeout=180000 -Dsmp.debug -Dsmp.webServer
-Dsmp.registry.port=XXXX

-Dsmp.flavor=%APP_FLAVOR% Server

:client

rem HAFM Client

start %JAVA_HOME%\bin\HAFMClient.exe -Xmx256m -Xminf.15 -Xmaxf.35 -classpath
%CLASSPATH% -Dsun.java2d.noddraw=true -Dsmp.fabricPersistenceEnabled=true
-Dsmp.Mp.max=256 -Dsmp.deployment.prefix=Client/ -Dsmp.registry.port=XXXX
-Dsmp.flavor=%APP_FLAVOR% Client

rem HAFM Client Debug Mode

rem start %JAVA_HOME%\bin\HAFMClientD.exe -Xmx256m -Xminf.15 -Xmaxf.35
-classpath %CLASSPATH% -Dsun.java2d.noddraw=true

Advertising