Creating a schedule and corresponding action

About this task

To create a schedule and corresponding action to send a message to your user ID five minutes from now, follow the steps below. In this example, you are defining the schedule and action dynamically. Typically, schedules and actions are defined in the configuration file that is loaded when Operations Manager starts.

Procedure

  1. Log on to an authorized user ID. This user ID must be authorized to define schedules and define actions. This can be done by giving the user ID configuration authority or authorization to the DEFSCHD and DEFACTN commands.
  2. To define an action to send you a message, issue the following command:
    GOMCMD OPMGRM1 DEFACTN NAME TSTACTN1 +
    COMMAND 'CP MSG userid Test Operations Mgr' +
    ENV LVM

    Replace userid with your current user ID.

  3. To define a schedule that triggers in five minutes from now, issue the following command :
    GOMCMD OPMGRM1 DEFSCHD NAME TESTSCHD +
    ACTION TSTACTN1 +
    WHEN NOW+00:05
  4. In five minutes the following message from OPMGRM1 appears:

    Test Operations Mgr