Sun Java System Web Server 7.0 Update 6 Administrator's Guide

Automatically Configuring Instances

Instances can be re-configured or restarted based on scheduled events. You can set a specific time and interval for scheduling automatic instance reconfiguration.

For scheduling events, perform the following tasks:

  1. Click the Configuration tab and select the configuration.

  2. Click the General sub tab > Scheduled Events sub tab.

ProcedureTo Add a Scheduled Event

  1. Click the configuration tab and then select the configuration from the list that appears.

  2. Click General > Scheduled Events sub tab.

  3. Click the New button.

  4. Configure the following properties:

    • Event

      • Restart Instances — This scheduled event will restart all the deployed and running instances for the configuration.

      • Reconfig Instances — This scheduled event will re—configure all the deployed and running instances for the configuration.

      • Custom Command Line — Provide the absolute path to a file that will be executed.

    • Schedule

      The configured time when the event will start. Select the hour and minutes value from the drop-down box.

      • Every Day — Starts the event specified every day at the specified time.

      • Specific Days — Starts the event specified at specific days.

        1. Days — Specify any day from Sunday to Saturday.

        2. Dates — Specify any day of the month from 1 to 31 as comma separated entries. E.g. 4,23,9

      • Specific Months — Starts the event specified at the specific time and month. Specify month from January to December.

      • Interval

        Start the specified event after this time period.

        1. Every Hours — Select the number of hours from the drop-down box.

        2. Every Seconds — Enter the number of seconds in the text field.


    Note –

    Using CLI

    To schedule an event through CLI, execute the following command:


    wadm> create-event --user=admin --password-file=admin.pwd --host=serverhost 
    --port=8989 --config=config1 --time=10:10 --command=restart

    See CLI Reference, create-event(1).


ProcedureTo Remove a Scheduled Event

  1. Click the configuration tab and then select the configuration from the list that appears.

  2. Click General > Scheduled Events sub tab.

  3. Select the scheduled event and click the Delete button.