Running the composer program
About this task
- In UNIX:
- . ./TWS_inst/TWS/tws_env.sh for Bourne and Korn shells
- . ./TWS_isnt/TWS/tws_env.csh for C shells
- In Windows:
- TWS_inst\TWS\tws_env.cmd
Then use the following syntax to run commands from the composer user interface:
composer [-file filename][connection_parameters] ["command[&[command]][...]"]
- -file filename
- Indicates an alternate custom properties file containing the settings for the connection parameters, used in place of the useropts and localopts files.
- connection_parameters
- If you are using composer from the master domain manager, the connection parameters were
configured at installation and do not need to be supplied, unless you do not want to use the default
values. If you are using composer from the command line client on another workstation, the connection parameters might be supplied by one or more of these methods:
- Stored in the localopts file
- Stored in the useropts file
- Supplied to the command in a parameter file
- Supplied to the command as part of the command string
For an overview of these options see Setting up options for using the user interfaces. For full details of the configuration parameters see the topic on configuring the command-line client access in the HCL Workload Automation: Administration Guide.
Note: If you are using composer from the command line client on another workstation, for the following subset of scheduling objects:- jobs
- job streams
- run cycle groups
- workload applications
- access control lists
- security domains
- security roles
- Parameters specified in the command string itself
- Parameters specified in the custom properties file
- Parameters specified in the useropts file
- Parameters specified in the localopts file
- Parameters specified in the jobmanager.ini file
- [-username <user_name>]
- An HCL Workload Automation user with sufficient privileges to perform the operation.
- [-password <password>]
- The password of the HCL Workload Automation user.
- [-host <hostname>]
- The name of the host that you want to access by using wappman command line.
- [-port <port_number>]
- The TCP/IP port number used to connect to the specified host.
- [-protocol {http | https}]
- The protocol used to connect to the specified host.
- [-file <custom_properties_file>]
- The custom properties file where you can specify connection parameters that override the values
specified in the useropts, localopts and jobmanager.ini files. Connection parameters specified in
the custom properties file must have the following
syntax:
HOST=<hostname> PORT=<port> PROTOCOL=<http/https> USERNAME=<username> PASSWORD=<password>
The composer command-line program is installed automatically when installing the master domain manager. It must be installed separately on top of an HCL Workload Automation agent workstation or stand-alone on a node outside the HCL Workload Automation network. The feature that installs the composer command-line program is named Command Line Client. For information about how to install the Command Line Client feature, refer to HCL Workload Automation: Planning and Installation Guide.
You can use the composer command line both in batch and in interactive mode.
composer –username admin2 –password admin2pwd
add myjobs.txt
create myjobs.txt from jobs=@
When
running composer in batch mode, you launch the composer command-line program
specifying as input parameter the command to be issued. When the command is processed, the
composer command-line program exits, for example, composer –f “c:\TWS\network\mylocalopts” add myjobs.txt
- Using double quotation marks, for example:
composer "delete dom=old_domain; noask"
- Using a space character, for example:
composer delete dom=old_domain noask
- Escaping the ; character, for example:
composer delete dom=old_domain \; noask
- Runs print and version commands, and quits:
composer "p parms&v"
- Runs print and version commands, and then prompts for a command:
composer "p parms&v&"
- Reads commands from cmdfile:
composer < cmdfile
- Pipes commands from cmdfile to composer:
cat cmdfile | composer