Using the wct command-line utility

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

Procedure

Invoke the command-line tool that is 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.
  • [Windows] WCT_install_root\WCT\wctcmd.bat
  • [Linux] WCT_install_root/WCT/wctcmd.sh
Syntax
[Windows]
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
[Linux]
./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
Specifies the name of the tool to launch as it is registered with the WCT command-line utility

This parameter is required.

-defLocPathname definition_location_pathname
Specifies the 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
Specifies the name of the definition location as it resides in the definition location registry
-defLocVersion definition_location_version
Specifies the version of definition location to create

This parameter is optional.

-response response_file
Specifies the 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:
  • Command-line arguments are case sensitive.
  • If an argument accepts a value containing spaces, the value must be enclosed in double quotes (" ").
Examples
Importing a definition location for the pct tool:
[Windows]
wctcmd.bat -tool pct -importDefinitionLocation -defLocName someDefLocName -defLocPathname \data\IBM\WebSphere\Plugins 
  -response C:\IBM\WebSphere\Toolbox\WCT\responsefile.txt
[Linux]
./wctcmd.sh -tool pct -importDefinitionLocation -defLocName someDefLocName -defLocPathname /data/IBM/WebSphere/Plugins 
  -response /var/IBM/WebSphere/Toolbox/WCT/responsefile.txt
Removing a definition location for the pct tool:
[Windows]
wctcmd.bat -tool pct -removeDefinitionLocation -defLocName someDefLocName -defLocPathname \data\IBM\WebSphere\Plugins
[Linux]
./wctcmd.sh -tool pct -removeDefinitionLocation -defLocName someDefLocName -defLocPathname /data/IBM/WebSphere/Plugins
Listing the available definition locations for the pct tool:
[Windows]
wctcmd.bat -tool pct -defLocPathname \data\IBM\WebSphere\Plugins -listDefinitionLocations
[Linux]
./wctcmd.sh -tool pct -defLocPathname /data/IBM/WebSphere/Plugins -listDefinitionLocations
Notes:
  • Command-line arguments are case sensitive.
  • If an argument accepts a parameter containing spaces, the parameter must be enclosed in "double quotes".
Task topic Task topic    

Terms of Use | Feedback

Last updatedLast updated: Sep 20, 2011 12:29:54 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-base-dist&topic=tins_wctcl_using
File name: tins_wctcl_using.html