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.