Top
Systemwalker Runbook Automation Reference Guide
Systemwalker

3.15.15 Application Server Library

The application server library provides the following classes:

Article number/class name

3.15.15.1 Application Server

3.15.15.1 Application Server

Class Name

Swrba_Appserver

List of Methods

Method

Description

String start_workunit(String hostname, String username, String password, String wuname, String systemname, String mwtype, String mwinstalledpath, String ostype, String execusername, String execpassword)

Start the WorkUnit of the specified host.

"Success" is returned if start of the WorkUnit was successful.

An exception is returned if start of the WorkUnit failed.

String stop_workunit(String hostname, String username, String password, String wuname, String systemname, String stopmode, String mwtype,String mwinstalledpath, String ostype, String execusername, String execpassword)

Stop the WorkUnit of the specified host.

"Success" is returned if stop of the WorkUnit was successful.

An exception is returned if stop of the WorkUnit failed.

Integer return_code()

Return the return value of the results of the start/stop of the WorkUnit.

Input Information

hostname	Specify the host name or IP address.
username 	Specify the name of the user using SSH to connect to the host that starts or stops the WorkUnit.
If the operation component connects with the file transfer infrastructure, the connected user name will be fixed at either of the following names and cannot be changed. In this case, the user name is ignored even if specified.
- If the Business Server is running on Windows: SYSTEM user
- If the Business Server is running on Linux: root
password	Specify the password of the user using SSH to connect to the host that starts or stops the WorkUnit.
If the operation component connects with the file transfer infrastructure, the password is ignored even if specified.
wuname Specify the name of the WorkUnit that starts or stops.
systemnameSpecify the name of the target that starts or stops the WorkUnit.
stopmodeSpecify the stop mode of the WorkUnit.
mwtypeSpecify the application server product name.
mwinstalledpathSpecify the installation path of the command of linked target products.
ostypeSpecify the operating system of the host that starts or stops the WorkUnit.
Specify Windows or Linux.
execusername	Specify the name of the user who starts or stops the WorkUnit.
If the host specified by the "hostname" option is running on Windows, and the connection is made using the file transfer infrastructure, execute the command as a SYSTEM user. In this case, the user name is ignored even if specified.
execpassword	This library does not use the value of "execpassword".
The value of "execpassword" is ignored even if specified.

Notes

File Location

Windows

<Installation directory>\SWRBAM \rbaope\bin\parts\lib\

standard\swrba_appserver.rb

Linux

/opt/FJSVswrbam/rbaope/bin/parts/lib/standard/swrba_appserver.rb