This procedure assumes that you have used default installation and configuration values for im_svr_base and im_runtime_base. If you installed using the default values, the original runtime directory would be as follows:
Solaris: /var/opt/SUNWiim/default
Linux: /var/opt/sun/im/default
If you used paths other than the defaults, you will need to substitute your paths for the paths used in this procedure.
Create a runtime directory for the new instance:
For example, to create a new runtime directory for instance xyz:
Solaris: mkdir /var/opt/SUNWiim/xyz
Linux: mkdir /var/opt/sun/im/xyz
Create a log directory for the new instance:
For example, to create a new log directory for instance xyz:
Solaris: mkdir /var/opt/SUNWiim/xyz/log
Linux: mkdir /var/opt/sun/im/xyz/log
Create a lock directory for the new instance:
For example, to create a new lock directory for instance xyz:
Solaris: mkdir /var/opt/SUNWiim/xyz/lock
Linux: mkdir /var/opt/sun/im/xyz/lock
Create a database directory (im_db_base) for the new instance:
For example, to create a new database directory for instance xyz:
Solaris: mkdir /var/opt/SUNWiim/xyz/db
Linux: mkdir /var/opt/sun/im/xyz/db
Copy the contents of the runtime directory and all of its subdirectories into the newly created directories:
For example:
Solaris: cp -r /etc/opt/SUNWiim/default /etc/opt/SUNWiim/xyz
Linux: cp -r /etc/opt/sun/im/default /etc/opt/sun/im/xyz
Open the new instance's imadmin script in a text editor.
By default, this script is stored in the /config directory under the runtime directory you just created for the new instance:
Solaris: /etc/opt/SUNWiim/xyz/config/imadmin
Linux: /etc/opt/sun/im/xyz/config/imadmin
In the imadmin script, change the configuration file path to the path for the new configuration file for the new instance
For example:
On Solaris, change /etc/opt/SUNWiim/default/config/iim.conf to /etc/opt/SUNWiim/xyz/config/iim.conf.
On Linux, change /etc/opt/sun/im/default/config/iim.conf to /etc/opt/sun/im/xyz/config/iim.conf.
Save and close the imadmin script.
Open the new instance's iim.conf file in a text editor.
By default, the iim.conf file is stored in the /config directory under the runtime directory you created for the new instance:
Solaris: /etc/opt/SUNWiim/xyz/config/iim.conf
Linux: /etc/opt/sun/im/xyz/config/iim.conf
Modify the port number so that it does not conflict with the original instance.
If necessary, modify iim.instancedir to point to the installation directory root where the shared binaries are stored.
Modify iim.instancevardir to point to the runtime directory for the new instance.
For example:
On Solaris, change /etc/opt/SUNWiim/default to /etc/opt/SUNWiim/xyz.
On Linux, change /etc/opt/sun/im/default to /etc/opt/sun/im/xyz.
Save and close iim.conf.
Ensure that file and directory ownership and permissions are the same for all instances.
Make renamed copies of im_svr_base/html/iim.html iim.jnlp index.html and modify the copies to point to the new instance's port number.