Operation overview
What is it?
The Operation section covers the scripts that OpCon uses to start, monitor, and interact with XP2 jobs. Each script is run as an OpCon job on the AIX platform where XP2 is installed. Most scripts require the [[SMAXPSetup]] property on the command line to initialize the correct Perl environment before running.
- Use these scripts to build automated workflows that submit and track XP2 jobs through OpCon
- Combine scripts — for example, run
SMACaptureDatestampbefore a job, then useSMAFetchControlNumberafter it completes — to capture output values for downstream processing
Scripts in this section
| Script | Description |
|---|---|
| Run XP Job | Starts and monitors an XP2 job. The core script for all XP2 job automation. |
| ExecuteCons | Submits a console command to the XP2 console and prints the output to the STDOUT log. |
| Maintain Logfiles | Deletes XP2 Connector log files older than a configured number of days. |
| SMACaptureDatestamp | Captures the current date and time as an OpCon property to use as a boundary for control number lookups. |
| SMACheckConsoleLog | Triggers an OpCon event when a specified key is found in the XP2 console log. |
| SMAFetchControlNumber | Retrieves a batch control number from the XP2 console log and stores it in an OpCon property. |
| SMAFetchDocNumber | Retrieves the document number of an XP2 job output file and stores it in an OpCon property. |
| SMAFetchQueuedDocNumber | Retrieves the document number of a queue entry matching specified parameters and stores it in an OpCon property. |
| SMAListRptNumbers | Finds the first and last report numbers in the DSX List and stores them in OpCon properties. |
| WaitForXPJob | Pauses an OpCon workflow until a specified XP2 child job completes. |