Hafm_sc.bat – HP StorageWorks 2.140 Director Switch User Manual

Page 196

Advertising
background image

Configuring HAFM through a firewall

200

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.

NOTE:

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

force the export port of the client (

-Dsmp.client.export.port=YYYY

).

HAFM_sc.bat

Place the parameter

-Dsmp.server.export.port=XXXX

in the server area of the file, and the

parameter

-Dsmp.client.export.port=YYYY

, in the client area of the file, where

XXXX

and

YYYY

are any TCP port numbers not used by another application. Although the server port number

XXXX

could match the client port number

YYYY

, this is not necessary. Add the parameters after the

%CLASSPATH%

parameter.

The following example shows the edited file with the added parameters 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.server.export.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.server.export.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.client.export.port=YYYY

?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
-Dsmp.fabricPersistenceEnabled=true -Dsmp.Mp.max=256
-Dsmp.deployment.prefix=Client/ -Dsmp.debug -Dsmp.client.export.port=YYYY
?Dsmp.flavor=%APP_FLAVOR% Client

:end

popd

endlocal

Advertising