Optim Utility scripts

Optim 11.7 provides the Optim Utility scripts, optimutil.sh and optimsetenv.sh for AIX and Linux and optimutil.cmd and optimsetenv.bat for Windows, which allows the user to perform a console install of Optim 11.7, a silent install of Optim 11.7, or update the Java location used by Optim.

The syntax of the Optim Utility scripts is shown in the figure below.

  • For AIX/Linux use: optimutil.sh
  • For Windows use: optimutil.cmd
Figure 1. Optim Utility script

1 
2.1 optimutil.sh
2.1 optimutil.cmd
2.1  --adm
2.2.1 1
2.2.1 0
2.1  --roo optim_root_directory
2.1 --help
2.1 --status
2.1  --install --com
2.2.1 designer
2.2.1 runtime
2.2.1 web
2.2.1 %JRE and JVM
2.2.1 %Silent mode
2.2.1 %Advanced parameters
2.1  --console
2.2.1  --com
2.2.2.1 designer
2.2.2.1 runtime
2.2.2.1 web
2.2.1 %JRE and JVM
2.1  --java --com
2.2.1 designer
2.2.1 runtime
2.2.1 web
2.2.1 %JRE and JVM
2.2.1 %Old JRE and JVM
JRE and JVM

1  --jre jre_home_path
1  --jvm jvm_dll_path
Old JRE and JVM

1  --oje old_jre_home_path
1  --ojm old_jvm_dll_path
Silent mode

1  --del
2.1 0
2.1 1
1  --kee
2.1 0
2.1 1
1  --qua
2.1 local
2.1 remote
2.1 timestamp
1  --unv uninstall_version_number
1  --upd
2.1 0
2.1 1
1  --use
2.1 0
2.1 1
1  --ver version_number
Advanced parameters

1  --dow
2.1 0
2.1 1
1  --url url_local_network_drive
Script parameters
--adm
  • 1 - run as administrator
  • 0 - run as user.
--roo
Optim root directory. Surround the directory value with double quotes if it contains embedded spaces.
Commands
--help
Display this help then exit.
--install
Install an Optim component in silent mode.
--console
Start the IIM in console mode to install Optim.
--java
Update the JRE_HOME and JVM_PATH used by Optim.
--status
Display the status of installed components then exit
Optim component for the --java and --install commands
--com
Set to designer, runtime or web.
--jre
Value for JRE_HOME. Surround value with double quotes if it contains embedded spaces.
--jvm
Value for JVM_PATH to jvm.dll. Surround path with double quotes if it contains embedded spaces.
Additional parameters for the --java command
--oje
Old value for JRE_HOME. No embedded spaces permitted if passed as a parameter.
-ojm
Old value for JVM_PATH to jvm.dll. No embedded spaces permitted if passed as a parameter.
Additional parameters for the --install command
--del
  • 0 - uninstall then install
  • 1 - uninstall only.
--kee
  • 0 - do not keep the downloaded artifact
  • 1 - keep the downloaded artifact.
--qua
Set to 'local', 'remote' or a fully qualified timestamp. Where the qualifier is a fully qualified timestamp set to YYYYMMDD_HHSS for a tar.gz file; local for a local repository or remote to download the last created tar.gz file (internal use only).
--unv
Uninstall version. The four position major version with three decimal points. For example, 11.3.0.0
--upd
  • 0 - uninstall then install
  • 1 - update only.
--use
  • 0 - use a new repository
  • 1 - use the existing repository.
--ver
The four position version with no decimal points. For example, 11700
Advanced parameters for the --install command
--dow
  • 0 - do not download the installer from a local network drive
  • 1 - download the installer from a local network drive.
--url
URL of the local network drive.
Note: Refer to the companion ReadMe.txt file for instructions.