Enabling network access for DevOps Code ClearCase server processes

You must register DevOps Code ClearCase® server processes with the firewall by using the Windows Firewall Control panel or netsh firewall add allowedprogram command.

About this task

Figure 1 and Figure 2 show sample batch scripts to register and unregister processes in all scopes and profiles.

Example

Figure 1: RegisterCCServers.bat

@echo off
SETLOCAL

if X%1%==X goto usage

set CLEARCASEHOME=%*

netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\albd_server.exe" ^
name="Location Broker"  ENABLE scope=ALL profile=ALL
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\view_server.exe" ^
name="View Server" ENABLE scope=ALL profile=ALL^
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\vob_server.exe" ^
name="VOB Server" ENABLE scope=ALL profile=ALL^
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\db_server.exe" ^
name="DB Server" ENABLE scope=ALL profile=ALL
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\promote_server.exe ^"
name="Promote Server" ENABLE scope=ALL profile=ALL
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\vobrpc_server.exe ^"
name="VOB RPC Server" ENABLE scope=ALL profile=ALL
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\shipping_server.exe ^"
name="Shipping Server" ENABLE scope=ALL profile=ALL
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\credmap_server.exe ^"
name="CredMap Server" ENABLE scope=ALL profile=ALL
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\admin_server.exe ^"
name="Admin Server" ENABLE scope=ALL profile=ALL
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\ccfs_server.exe ^"
name="CCFS  Server" ENABLE scope=ALL profile=ALL
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\msadm_server.exe ^"
name="MultiSite Admin Server" ENABLE scope=ALL profile=ALL
netsh firewall add allowedprogram program="%CLEARCASEHOME%\bin\bbmsadm_server.exe ^"
name="IBM® Rational®
                    ClearQuest®
MultiSite Admin Server" ENABLE scope=ALL profile=ALL

goto done

:usage
echo Usage: %0 ClearCase-Install-Dir
echo Please use the following directory as ClearCase-Install-Dir without the quotes.
reg query HKLM\Software\Atria\ClearCase\CurrentVersion  \
/v ProductHome | findstr /i /c:ProductHome

:done
ENDLOCAL

Figure 2: UnregisterCCServers.bat

@echo off
SETLOCAL

if X%1%==X goto usage

set CLEARCASEHOME=%*

netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\albd_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\view_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\vob_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\db_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\promote_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\vobrpc_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\shipping_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\credmap_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\admin_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\ccfs_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\msadm_server.exe" ALL
netsh firewall delete allowedprogram ^
program="%CLEARCASEHOME%\bin\bbmsadm_server.exe" ALL

goto done

:usage
echo Usage: %0 ClearCase-Install-Dir
echo Please use the following directory as ClearCase-Install-Dir without the quotes.
reg query HKLM\Software\Atria\ClearCase\CurrentVersion \
/v ProductHome | findstr /i /c:ProductHome

:done
ENDLOCAL