By setting the script properties, you can
specify an entering script that will be run on a Linux guest system that
joins the server complex, and/or an exiting script that will be run on a Linux guest system that leaves the server complex.
Scripts are code added by users to configure a specific environment
or application for
Linux guest systems
placed in a server complex tier.
A script can reside on the
Linux guest system or
on the Director server (from where it is sent to the
Linux guest system to
be run).
Complete the following
steps to edit
the scripts configuration domain:
- If it is not started already, start the Server Complexes
task for the z/VM system you want to work with.
- Select the server complex where you want to apply the scripts.
- Click Action → Edit Properties to open the Server
Complex Properties window and click the Scripts tab to display the
Scripts page.
- Choose whether the configuration target is the whole server complex
or a specific tier.
- If you chose the Specific tier radio button, choose the
target tier. The properties of the selected tier are displayed.
- For On the entering guest, choose either server or guest in
the Script resides on field.
- In the Script path field, type the location of the script.
If the path starts with / or \, it is considered a full path; otherwise, it
is assumed to be the script path relative to the IBM Director data directory.
- In the Script parameters field, type a list of parameters
for the script, separated by blank spaces. Words separated by blanks surrounded
by double-quotation marks (") are considered a single parameter.
- For On the leaving guest, choose either server or guest in
the Script resides on field.
- In the Script path field, type the location of the script.
- Click OK. The scripts you configured will be applied to Linux guest systems entering or leaving the
server complex. If you modified settings in any of the other
domains (except for the Scripts domain), these are also applied to the Linux
guest systems in the server complex.
- In the Guest Selection window, choose the Linux
guest systems on which to apply the reconfiguration, and click Yes.
- The Progress Indication window shows the progress of the action.
After the operation is completed, click Close to close the Progress
Indication window.