How to implement workload automation with Rexx

Source: Internet
Author: User
Tags db2 implement syslog

Background:

Typically, the host user publishes the command manually, and then decides whether to reply to the message based on the result returned. When the command is executed, the user examines the results of the command execution by viewing the syslog. If the database is modified, the user also selects through Spufi, comparing the changes in the database before and after the command to confirm that the command was properly executed.

When the operation of the command more, the frequency is also relatively high, how to automatically handle these interactions in a timely manner, become a big challenge. This article takes the implementation of OAM workload automation as an example of how to use Rexx to publish commands, handle syslog and Joblog, and use REXX to process the contents of the database before and after, thereby greatly improving productivity.

Applicable scenario:

1. Automatic release of the system command: through REXX automatically publish commands, monitor the resulting message, to check whether the normal execution of the order.

2. Automatic Response System message: Use REXX to monitor messages that need to reply to a message, reply with Rexx, and check the results.

3. Automated testing: For some needs to view the Syslog,joblog and through the DB2 query database, and to compare the scene before and after.

Noun Explanation:

Oam:object Access method to store and manage objects (that is, byte streams).

Osmc:object Storage Management Cycle, a storage-cycle management of the object's Storage group.

Recovery: When the volume of an object is not available, such as tape, use the Recovery command to restore the objects inside the volume. If the recovered volume is a tape, the system publishes a message cbr9810d, confirms whether to continue, replies ' Go ', the command continues, and returns a message cbr9863i indicating the result of the recovery object.

How to use:

This article takes the OAM OSMC RECOVERY command as an example to demonstrate how to automate using REXX.

1. Use the TSO command to store the object first

2. Use SQL statements to query the data table of the stored objects in DB2: G222s.osm_obj_dir

3. Invoke the REXX program MSGOSMC to run the OSMC operation and confirm that the command was executed successfully.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.