Previous Topic

Next Topic

Book Contents

Book Index

Adding a New Method to Control-O/COSMOS

A sample Method database and Method rules are supplied with Control-O/COSMOS. However, additional methods are needed to implement Control-O/COSMOS management of objects in your operating environment.

A method must exist for each action Control-O/COSMOS may be required to perform. If a new object is defined, you must verify that methods for bringing that object UP and DOWN exist. If they do not, you must create them.

Creation of a new method involves:

When a Control-O/COSMOS method is selected, Control-O/COSMOS rule COSFSMAC is triggered first to automatically point to the object to be modified. Therefore, Method rules need only indicate actions to perform on the actual object (resource) to be modified. For more information, see COSFSMAC Rule.

Example

The following sample Method rule can be used to stop started tasks:

Figure 14 Sample Method Rule

    -----------------------------------------------------------------------------

     ON RULE     = COSMET02

     OWNER IOAADMIN GROUP      MODE  PROD    RUNTSEC

     DESCRIPTION STOP A STARTED TASK

     DESCRIPTION

     ===========================================================================

     DO COMMAND  = P %%OBJECT

        WAIT        SYSTEM   CONSOLE   CONSOLEID

        WAITMODE   N

     DO

     ===========================================================================

After creating a new Method rule, add an appropriate row in the relevant Method database. This is accomplished using the Variable Database Definition screen (screen IV).

Note: Each variable in the current row can be accessed using the name of the relevant column prefixed by %%. For example, %%MODE refers to the value in the MODE column of the current row in the Object database. To enable immediate use of a new Method rule, issue command COSBOUNZ, described in COSBOUNZ Command – Bring Down and Restart Control-O/COSMOS. This command brings Control-O/COSMOS down, reloads all Control-O/COSMOS databases, and restarts Control-O/COSMOS.

For more information about the Variable Database Definition facility, see the online facilities chapter of the Control-O User Guide.

Parent Topic

Creating and Maintaining Method Databases