WAS v8.0 > Install the application serving environment > Distributed operating systems > Install and using the WebSphere Customization Toolbox


Use the wct command-line utility

The wct command-line utility invokes the command-line tool specified by the -tool parameter.


Procedure

Invoke the command-line tool specified by the -tool parameter.

Location of the utility

The product includes the following script that sets up the environment and invokes the wct command-line utility.

  • WCT_install_root\WCT\wctcmd.bat
  • WCT_install_root/WCT/wctcmd.sh

Syntax

wctcmd.bat
      -tool tool_ID
      -defLocPathname definition_location_pathname
      -createDefinitionLocation definition_location_name
      -importDefinitionLocation definition_location_name
      -removeDefinitionLocation definition_location_name
      -defLocName definition_location_name
      -defLocVersion definition_location_version
      -response response_file
      -listDefinitionLocations
      -deleteDefinition definition_name
      -listDefinitions

./wctcmd.sh
      -tool tool_ID
      -defLocPathname definition_location_pathname
      -createDefinitionLocation definition_location_name
      -importDefinitionLocation definition_location_name
      -removeDefinitionLocation definition_location_name
      -defLocName definition_location_name
      -defLocVersion definition_location_version
      -response response_file
      -listDefinitionLocations
      -deleteDefinition definition_name
      -listDefinitions

Parameters

-tool tool_ID

Name of the tool to launch as it is registered with the WCT command-line utility

This parameter is required.

-defLocPathname definition_location_pathname

Absolute path name of the definition location to use when the specified tool is launched

This parameter is required.

-createDefinitionLocation definition_location_name

Specifies that the WCT command-line utility should create a definition location

This parameter is optional.

-importDefinitionLocation definition_location_name

Specifies that the WCT command-line utility should import a definition location

This parameter is optional.

-removeDefinitionLocation definition_location_name

Specifies that the WCT command-line utility should remove a definition location

This parameter is optional.

-defLocName definition_location_name

Name of the definition location as it resides in the definition location registry

-defLocVersion definition_location_version

Version of definition location to create

This parameter is optional.

-response response_file

Response file containing tool arguments

This parameter is optional.

-listDefinitionLocations

Lists the available definition locations.

-deleteDefinition definition_name

Specifies that the WCT command-line utility should delete a definition

This parameter is optional.

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.

-listDefinitions

Lists the available definitions at a specified definition location or definition location path name

Either one of the following parameters is 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.

Notes:

Examples

Import a definition location for the pct tool:

wctcmd.bat -tool pct -importDefinitionLocation -defLocName someDefLocName -defLocPathname \data\IBM\WebSphere\Plugins
  -response C:\IBM\WebSphere\Toolbox\WCT\responsefile.txt
./wctcmd.sh -tool pct -importDefinitionLocation -defLocName someDefLocName -defLocPathname /data/IBM/WebSphere/Plugins
  -response /var/IBM/WebSphere/Toolbox/WCT/responsefile.txt
Remove a definition location for the pct tool:

wctcmd.bat -tool pct -removeDefinitionLocation -defLocName someDefLocName -defLocPathname \data\IBM\WebSphere\Plugins
./wctcmd.sh -tool pct -removeDefinitionLocation -defLocName someDefLocName -defLocPathname /data/IBM/WebSphere/Plugins
List the available definition locations for the pct tool:

wctcmd.bat -tool pct -defLocPathname \data\IBM\WebSphere\Plugins -listDefinitionLocations
./wctcmd.sh -tool pct -defLocPathname /data/IBM/WebSphere/Plugins -listDefinitionLocations

Notes:

+

Search Tips   |   Advanced Search