The following figure shows the basic operation flow for Systemwalker scripts.
Creating Systemwalker scripts
|
Testing and debugging scripts
|
Operating jobs with Systemwalker Operation Manager
Creating Systemwalker scripts
Create a Systemwalker script.
Using a text editor such as notepad or "vi," create a Systemwalker script by following the syntax rules for Systemwalker scripts, and save the script with the "swt" file extension. Before saving the script, insert calls to the trace extension command at certain key points in the script so that it can be debugged. Fujitsu recommends setting calls to the trace extension command in all routes.
For information about creating scripts, refer to the Systemwalker Operation Manager Reference Guide.
Testing and debugging scripts
Use the swotclsh command (the script execution command) to run the script that has been created alone. The trace extension commands that were added when the script was created will output information to a trace file, making it possible to check whether the script is running as expected and make corrections if necessary.
Operating jobs with Systemwalker Operation Manager
Systemwalker scripts can be executed as Systemwalker Operation Manager jobs.
Systemwalker scripts can be used as scheduled jobs or demand jobs, in the same way as batch files and JCL scripts.
Register Systemwalker scripts as jobs in job nets. In this case, the job net must have the Job Execution Control attribute. Systemwalker scripts cannot be used within job nets with other attributes.
Once a script has been registered as a job, it can be operated in the same way as for other Systemwalker Operation Manager jobs with the Job Execution Control attribute. For information about how to define job nets and perform other Systemwalker Operation Manager operations (such as monitoring), refer to the Systemwalker Operation Manager User's Guide and the Systemwalker Operation Manager Online Help.
Systemwalker scripts can be submitted as demand jobs. Systemwalker scripts can also be registered in job folders and executed in the same way as batch files and JCL scripts.
The procedure for submitting Systemwalker scripts as demand jobs is the same as for batch files and JCL scripts. For more information, refer to the Systemwalker Operation Manager User's Guide and the Systemwalker Operation Manager Online Help.