Examples
About this task
This section contains examples of twsinst scripts that you can use to upgrade an agent.
To upgrade
an agent installed in the user home directory that does not have the
dynamic scheduling capabilities and the Java™ run
time to run job types with advanced options:
./twsinst -update -uname twsuser -acceptlicense yes
To upgrade an agent installed in the path /opt/IBM/TWA on
UNIX operating systems and in the path C:\Program Files\IBM\TWA on
Windows operating systems, and give it dynamic scheduling capabilities,
but not the Java™ run time to
run job types with advanced options:
- On Windows™ operating systems:
-
cscript twsinst -update -uname TWS_user -password password -acceptlicense yes -tdwbhostname mybroker.mycompany.com -tdwbport 31116 -inst_dir "c:\Program Files\IBM\TWA"
- On UNIX™ and Linux™ operating systems:
-
./twsinst -update -uname twsuser -acceptlicense yes -tdwbhostname mybroker.mycompany.com -tdwbport 31116 -inst_dir /opt/IBM/TWA
To upgrade an agent and give it both dynamic scheduling capabilities and the Java™ run time to run job types with advanced options. The run
time environment is used to run application job plug-ins on the agent and to enable the
capability to remotely run, from the agent, the dynamic workload broker resource command on the
server:
- On Windows™ operating systems:
-
cscript twsinst -update -uname TWS_user -password password -acceptlicense yes -tdwbhostname mybroker.mycompany.com -tdwbport 31116 -addjruntime true -inst_dir "c:\Program Files\IBM\TWA"
- On UNIX™ and Linux™ operating systems:
-
./twsinst -update -uname twsuser -acceptlicense yes -tdwbhostname mybroker.mycompany.com -tdwbport 31116 -addjruntime true
Note: Only for version 10.1 and
subsequent fix packs, the addjruntime parameter is ignored and Java
runtime is always installed
automatically.