Example installations

About this task

The following example shows the syntax used when using the twsinst script to install a new instance of a fault-tolerant agent.

On Windows operating systems:
cscript twsinst.vbs -new 
   -uname TWSuser1
   -password user_password
   -acceptlicense yes
   -agent fta
   -company HCL 
   -displayname thishostcomputername
   -hostname thishostname.mycompany.com
   -inst_dir "c:\Program Files\HCL\TWA_TWSuser1"
   -master TWSmdm
   -port 37124
   -thiscpu fta92
On UNIX and Linux operating systems:
./twsinst -new
   -uname TWSuser1
   -acceptlicense yes
   -agent fta
   -company HCL
   -create_link
   -hostname thishostname.mycompany.com
   -inst_dir "/opt/HCL/TWA_TWSuser1"
   -master TWSmdm
   -port 37124
   -reset_perm
   -skipcheckprereq
   -thiscpu fta92
   -work_dir "/home/TWSuser1/tmp"

The following example shows the syntax used when using the twsinst script to install a new instance of a dynamic agent and adding the Java run time for running job types with advanced options.

On Windows operating systems:
cscript twsinst.vbs -new
   -uname TWSuser1
   -password user_password
   -acceptlicense yes
   -addjruntime true
   -agent dynamic
   -displayname thishostcomputername
   -hostname thishostname.mycompany.com
   -inst_dir "c:\Program Files\HCL\TWA_TWSuser1"
   -jmport 31114
   -tdwbport 31116
   -tdwbhostname mainbroker.mycompany.com
On UNIX and Linux operating systems:
./twsinst -new
   -uname TWSuser1
   -acceptlicense yes
   -addjruntime true
   -agent dynamic
   -displayname thishostcomputername
   -hostname thishostname.mycompany.com
   -inst_dir "/opt/HCL/TWA_TWSuser1"
   -jmport 31114
   -reset_perm
   -skipcheckprereq
   -tdwbport 31116
   -tdwbhostname mainbroker.mycompany.com   

The following example shows the syntax used when running the twsinst script to install a new instance of both a fault-tolerant and a dynamic agent, and adding the Java run time for running job types with advanced options.

On Windows operating systems:
cscript twsinst.vbs -new 
   -uname TWSuser1
   -password user_password
   -acceptlicense yes
   -addjruntime true
   -agent both
   -displayname thishostcomputername
   -hostname thishostname.mycompany.com
   -inst_dir "c:\Program Files\HCL\TWA_TWSuser1"
   -jmport 31114
   -master TWSmdm
   -tdwbport 31116
   -tdwbhostname mainbroker.mycompany.com
   -thiscpu mainworkstation
On UNIX and Linux operating systems:
./twsinst -new
   -uname TWSuser1
   -acceptlicense yes
   -addjruntime true
   -agent both
   -create_link
   -displayname thishostcomputername
   -hostname thishostname.mycompany.com
   -inst_dir "/opt/HCL/TWA_TWSuser1"
   -jmport 31114
   -master TWSmdm
   -reset_perm
   -skipcheckprereq
   -tdwbport 31116
   -tdwbhostname mainbroker.mycompany.com
   -thiscpu fta92

The following example shows the syntax used when using the twsinst script to install a new instance of a dynamic agent, adding the Java run time for running job types with advanced options, and to install a gateway on the same workstation as the agent to enable communication with the master domain manager.

On Windows operating systems:
cscript twsinst.vbs -new
   -uname TWSuser1
   -password user_password
   -acceptlicense yes
   -addjruntime true
   -agent dynamic
   -displayname thishostcomputername
   -gateway local
   -gwid gateway_id
   -hostname thishostname.mycompany.com
   -inst_dir "c:\Program Files\HCL\TWA_TWSuser1"
   -jmport 31114
   -jimportssl true
   -master TWSmdm
   -skipcheckprereq
   -tdwbport 31116
   -tdwbhostname mainbroker.mycompany.com
   -thiscpu mainworkstation
On UNIX and Linux operating systems:
./twsinst -new
   -uname TWSuser1
   -acceptlicense yes
   -addjruntime true
   -agent both
   -displayname thishostcomputername
   -create_link
   -gateway local
   -gwid gateway_id
   -hostname thishostname.mycompany.com
   -inst_dir "/opt/HCL/TWA_TWSuser1"
   -jmport 31114
   -jimportssl true
   -master TWSmdm
   -reset_perm
   -skipcheckprereq
   -tdwbport 31116
   -tdwbhostname mainbroker.mycompany.com
   -thiscpu fta92

The following example shows the syntax used when downloading and deploying the certificates from the master domain manager to a dynamic agent. Ensure the certificates are available on the master domain manager in the TWA_DATA_DIR/ssl/depot path.

cscript twsinst.vbs -new
   -uname TWSuser1
   -password user_password
   -acceptlicense yes
   -addjruntime true
   -agent dynamic
   -displayname thishostcomputername
   -hostname thishostname.mycompany.com
   -inst_dir "c:\Program Files\HCL\TWA_TWSuser1"
   -jmport 31114
   -tdwbport 31116
   -tdwbhostname mainbroker.mycompany.com
   -wauser wauser
   -wapassword password
./twsinst -new
   -uname TWSuser1
   -acceptlicense yes
   -addjruntime true
   -agent dynamic
   -displayname thishostcomputername
   -hostname thishostname.mycompany.com
   -inst_dir "/opt/HCL/TWA_TWSuser1"
   -jmport 31114
   -reset_perm
   -skipcheckprereq
   -tdwbport 31116
   -tdwbhostname mainbroker.mycompany.com
   -wauser wauser
   -wapassword password