Top
Systemwalker Runbook Automation Reference Guide
Systemwalker

1.4.21 swrba_scheduleexport (Schedule Definition Export Command)

Description

This command exports Schedule Definitions and Schedule Patterns common to all process groups.

Synopsis

swrba_scheduleexport [-pg process group ID [-sd Schedule Definition name| -sp Schedule Pattern name]] -d export directory

Options

-pg process group ID

Specify the process group ID for which Schedule Definitions and Schedule Patterns common to all process groups are to be exported. An error will occur if the specified process group does not exist. Nothing will be output if there are no Schedule Definitions or Schedule Patterns in the specified process group. If this option is omitted, all of the Schedule Definitions and Schedule Patterns that have been defined on the Systemwalker Runbook Automation Management Server will be exported.

-sd Schedule Definition name

Specify the name of the Schedule Definition to be exported. Specify a Schedule Definition that exists in the process group specified by the "-pg" option. An error will occur if the process definition specified by this option does not exist in the process group specified by the "-pg" option. Similarly, an error will occur if this option is specified without specifying the "-pg" option.

-sp Schedule Pattern name

Specify the name of the Schedule Pattern to be exported. Specify a Schedule Pattern that exists in the process group specified by the "-pg" option. An error will occur if the process pattern specified by this option does not exist in the process group specified by the "-pg" option. Similarly, an error will occur if this option is specified without specifying the "-pg" option.

If the "-pg" option is specified when the "-sd" and "-sp" options are omitted, all of the Schedule Definitions and Schedule Patterns defined in the process group specified by the "-pg" option will be exported.

-d export directory

Specify the directory to which the Schedule Definition and Schedule Pattern are to be exported. The Schedule Definitions and Schedule Patterns will be output to the directory specified by this option, in the following structure. This option cannot be omitted.

	- Export directory
    - Process group ID
        - Schedule Definition name
                - Schedule Definition
        - - Schedule Pattern name
                - Schedule Pattern

Return Values

0:

Normal termination

Other than 0:

Abnormal termination

Command Location

[Windows]

<Systemwalker Runbook Automation Management Server installation directory>\bin
Note: The default location is C:\Fujitsu\Systemwalker\SWRBAM

[Linux]

/opt/FJSVswrbam/bin

Privilege Required/Execution Environment

[Windows]

[Linux]

Note

Example

The following command exports all of the Schedule Definitions and Schedule Patterns in the "sample0001" process group to the "C:\work" directory.

swrba_scheduleexport -pg sample0001 -d C:\work

Execution Result/Output Format

FSP_SW/RB-A_BASE: INFO: 04200: Schedule definition/schedule pattern export is about to start.
FSP_SW/RB-A_BASE: INFO: 04206: The schedule definition/schedule pattern was exported. Process group ID:CTRESUME_01 Number exported:0
FSP_SW/RB-A_BASE: INFO: 04206: The schedule definition/schedule pattern was exported. Process group ID:System Number exported:2
FSP_SW/RB-A_BASE: INFO: 04202: Schedule definition/schedule pattern export has finished.