WAS v8.5 > Set up intermediary services > Implement a web server plug-in > Install and configure web server plug-ins

Configure a web server plug-in using the pct tool

We can use the WCT command, specifying the pct tool, to configure a web server to use an application server as a hosting server.

Syntax of the WCT command when invoking the pct tool

./wctcmd.sh
      -tool pct
      -defLocPathname definition_location_pathname
      -defLocName definition_location_name
      -createDefinition definition_name
      -deleteDefinition definition_name
      -response response_file
      -removeDefinitionLocation definition_location_name

Parameters of the WCT command when invoking the pct tool

-tool pct Name of the tool to launch as it is registered with the WCT command Required.
-defLocPathname definition_location_pathname Absolute path name of the existing plug-in runtime root location Required when we create or delete a definition.
-defLocName definition_location_name Logical name of the plug-in runtime root location Required when we create or delete a definition.
-createDefinition definition_name Unique web server definition name to be used with the configuration

This parameter is used when we create a new definition.

-deleteDefinition definition_name Unique web server plug-in definition to be deleted. This parameter is used when we delete an existing definition. The definition_name is required. Either one of the following parameters is also required:

  • -defLocName definition_location_name
  • -defLocPathname definition_location_pathname

If both parameter values are supplied, the first one is used. If the first value supplied does not pass the validation check, the command fails with an error message.

-response response_file Specifies the response file containing tool arguments Required when we create a definition.
-removeDefinitionLocation definition_location_name The pct toll should remove a definition location

This parameter is used when we remove a definition location.

Notes:

Examples

Use the pct tool to configure an IHS Web Server to use an application server as a hosting server:

  • wctcmd.bat -tool pct -defLocPathname C:\data\IBM\WebSphere\Plugins -defLocName someDefinitionLocationName -createDefinition someDefinitionName -response C:\IBM\WebSphere\tools\WCT\responsefile.txt
  • ./wctcmd.sh -tool pct -defLocPathname /data/IBM/WebSphere/Plugins -defLocName someDefinitionLocationName -createDefinition someDefinitionName -response /var/IBM/WebSphere/tools/WCT/responsefile.txt

The following is an example of the content of a response file for an IHS local plug-in configuration.

configType=local_standalone
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=false
ihsAdminCreateUserAndGroup=true
ihsAdminPassword=******
ihsAdminPort=8008
ihsAdminUnixUserGroup=grp101
ihsAdminUnixUserID=user1
mapWebServerToApplications=true
profileName=AppSrv01
wasExistingLocation=opt/IBM/WebSphere/AppServer85
webServerConfigFile1=opt/IBM/HTTPServer/conf/httpd.conf
webServerDefinition=webserver1
webServerHostName=local.ibm.com
webServerInstallArch=32
webServerOS=windows
webServerPortNumber=80
webServerSelected=ihs
configType=local_standalone
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=true
ihsAdminPassword=******
ihsAdminPort=8008
ihsAdminUserID=admin1
ihsWindowsPassword=******
ihsWindowsStartupType=Automatic
ihsWindowsUserID=user1
mapWebServerToApplications=true
profileName=AppSrv01
wasExistingLocation=D:\IBM\WebSphere\AppServer85
webServerConfigFile1=D:\IBM\HTTPServer\conf\httpd.conf
webServerDefinition=webserver1
webServerHostName=local.ibm.com
webServerInstallArch=32
webServerOS=windows
webServerPortNumber=80
webServerSelected=ihs

The following is an example of the content of a response file for an IHS remote plug-in configuration.

configType=remote
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=false
ihsAdminCreateUserAndGroup=true
ihsAdminPassword=******
ihsAdminPort=8008
ihsAdminUnixUserGroup=grp101
ihsAdminUnixUserID=user1
mapWebServerToApplications=true
profileName=AppSrv01
wasExistingLocation=opt/IBM/WebSphere/AppServer85
wasMachineHostname=192.168.1.2
webServerConfigFile1=opt/IBM/HTTPServer/conf/httpd.conf
webServerDefinition=webserver1
webServerHostName=remote.ibm.com
webServerInstallArch=32
webServerOS=windows
webServerPortNumber=80
webServerSelected=ihs
configType=remote
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=true
ihsAdminPassword=******
ihsAdminPort=8008
ihsAdminUserID=admin1
ihsWindowsPassword=******
ihsWindowsStartupType=Automatic
ihsWindowsUserID=user1
mapWebServerToApplications=true
profileName=AppSrv01
wasExistingLocation=D:\IBM\WebSphere\AppServer85
wasMachineHostname=192.168.1.2
webServerConfigFile1=D:\IBM\HTTPServer\conf\httpd.conf
webServerDefinition=webserver1
webServerHostName=remote.ibm.com
webServerInstallArch=32
webServerOS=windows
webServerPortNumber=80
webServerSelected=ihs

Delete a definition with the pct tool:

  • wctcmd.bat -tool pct -defLocPathname C:\data\IBM\WebSphere\Plugins -defLocName DefinitionLocationName -deleteDefinition DefinitionName
  • ./wctcmd.sh -tool pct -defLocPathname /data/IBM/WebSphere/Plugins -defLocName DefinitionLocationName -deleteDefinition DefinitionName

Remove a definition location with the pct tool:

    wctcmd.bat -tool pct -removeDefinitionLocation -defLocPathname C:\data\IBM\WebSphere\Plugins

    ./wctcmd.sh -tool pct -removeDefinitionLocation -defLocPathname /data/IBM/WebSphere/Plugins
or

    wctcmd.bat -tool pct -removeDefinitionLocation -defLocName someDefinitionLocationName

    ./wctcmd.sh -tool pct -removeDefinitionLocation -defLocName someDefinitionLocationName


+

Search Tips   |   Advanced Search