Setting entering/exiting scripts for a server complex

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:

  1. If it is not started already, start the Server Complexes task for the z/VM system you want to work with.
  2. Select the server complex where you want to apply the scripts.
  3. Click ActionEdit Properties to open the Server Complex Properties window and click the Scripts tab to display the Scripts page.
  4. Choose whether the configuration target is the whole server complex or a specific tier.
  5. If you chose the Specific tier radio button, choose the target tier. The properties of the selected tier are displayed.
  6. For On the entering guest, choose either server or guest in the Script resides on field.
  7. 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.
  8. 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.
  9. For On the leaving guest, choose either server or guest in the Script resides on field.
  10. In the Script path field, type the location of the script.
  11. 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.
  12. In the Guest Selection window, choose the Linux guest systems on which to apply the reconfiguration, and click Yes.
  13. The Progress Indication window shows the progress of the action. After the operation is completed, click Close to close the Progress Indication window.
Note: At any time, with or without changing the property values, you can open this page and click the Apply button to directly apply the properties of this domain to Linux guest systems in the server complex. For more information, see Directly applying server complex properties in a single domain.

Table of Contents

(C) Copyright IBM Corporation 1999,2005. All Rights Reserved.