Top
Systemwalker Runbook Automation Reference Guide
Systemwalker

3.15.13 Cluster Library

The cluster library provides the following classes:

Article number/class name

3.15.13.1 Cluster

3.15.13.1 Cluster

Class Name

Swrba_Cluster

List of Methods

Method

Description

String get_resource_state(String hostname, String username, String password, String resource, String mwtype, String mwinstalledpath, String ostype, String execusername, String execpassword)

Acquire the resource status of the specified cluster system.

Acquired the status is returned if acquisition was successful.

An exception is returned if acquisition failed.

String switch_cluster(String hostname, String username, String password, String nodename, String resource, String mwtype, String mwinstalledpath, String ostype, String execusername, String execpassword)

Switch the control of the specified resource to other system nodes.

"Success" is returned if resources were switched successfully.

An exception is returned if resources failed to be switched.

Integer return_code()

Return the return value of the results of the resource status acquisition or resource switch.

Input Information

hostname	Specify the host name or IP address.
username 	Specify the name of the user using SSH to connect to the host executing the resource status acquisition or resource switch.
If the operation component connects with the file transfer infrastructure, the connected user name is 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 executing the resource status acquisition or resource switch.
If the operation component connects with the file transfer infrastructure, the password is ignored even if specified.
nodenameSpecify the name of the node that sets the resource.
resourceSpecify the resource name that executes the resource status acquisition or resource switch.
mwtypeSpecify the middleware type of the cluster system.
mwinstalledpathSpecify the installation path of the command for linked target products.
ostypeSpecify the operating system of the host.
execusername	Specify the name of the user executing the resource status acquisition or resource switch.
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_cluster.rb

Linux

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