WAS v8.5 > Set up intermediary services > Implement a web server plug-in > Install and configure web server plug-insConfigure 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.
WCT_install_root\WCT\wctcmd.bat
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_nameParameters 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:
- Command-line arguments are case sensitive.
- If an argument accepts a value containing spaces, the value must be enclosed in double quotes (" ").
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=ihsconfigType=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=ihsThe 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=ihsconfigType=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