The hardware library provides the following classes:
Article number/class name |
Class Name
Swrba_Hardware
List of Methods
Method | Description |
String server_start(String ipmiipaddress, | Use IPMI to make a request to start the specified server. "Success" is returned if start of the server was successful. An exception is returned if start of the server failed. |
String server_shutdown(String ipmiipaddress, | Use IPMI to make a request to stop the specified server "Success" is returned if stop of the server was successful. An exception is returned if stop of the server failed. |
String server_check(String ipmiipaddress, | Use IPMI to check the power status of the specified server The text string of the status of the server is returned if confirmation of the status was successful. An exception is returned if confirmation of the status failed. |
Input Information
ipmiipaddress Specify IP address that set to IPMI of the server that starts or stops.
ipmiusername Specify the name of the user that set to IPMI of the server that starts or stops.
ipmipassword Specify the password of the user that set to IPMI of the server that starts or stops.
Notes
The following software is necessary for the Business Server if instructions for the start/stop operations are to be given to server by this library..
IPMI V2.0
Set IPMI if IPMI is not set for the environment.
When using this library, the communication port which requires communication permission on Business Server is UDP port 623.
File Location
Windows | <Installation directory>\SWRBAM\rbaope\bin\parts\lib\ standard\swrba_hardware.rb |
Linux | /opt/FJSVswrbam/rbaope/bin/parts/lib/standard/swrba_hardware.rb |
Class Name
Swrba_Hardware
List of Methods
Method | Description |
String loadbalancer_remove(String lbhostname, Integer removetime, String hostname, String username, String password, String execpassword) | Remove the specified server from a load balancing target. "Success" is returned if removal was successful. An exception is returned if removal failed. |
String loadbalancer_embed(String lbhostname, String hostname, String username, String password, String execpassword) | Add the specified server to a load balancing target. "Success" is returned if adding was successful. An exception is returned if adding failed. |
Input Information
lbhostname Specify the host name or IP address of the server to be removed or added to a load balancing target managed by IPCOM.
removetime Specify the "removetime" when the server is to be removed from a load balancing target managed by IPCOM.
hostname Specify the host name or IP address for connecting through an operation management network set in IPCOM.
username Specify the name of the user using SSH to connect to the IP address of an operation management network set in IPCOM.
The connected user must be an administrator.
password Specify the password of the user using SSH to connect to the IP address of an operation management network set in IPCOM.
execpassword Specify the password for the command for transitioning to the administrator EXEC mode (admin command).
Notes
This library uses SSH communication to perform its operations. Refer to the "3.16 Notes of Each Communication Method" for the notes of SSH communication.
The target of this operation component is the version of following IPCOM.
IPCOM EX1000LB :EX LB Series Entry Model
IPCOM EX1200LB :EX LB Series Midrange Model
IPCOM EX2000LB :EX LB Series High end Model
IPCOM EX2200LB :EX LB Series High end Model
IPCOM EX2000IN :EX IN Series High end Model
IPCOM EX2200IN :EX IN Series High end Model
With an operation component, if username, password, and execpassword are omitted, Systemwalker Runbook Automation automatically sets the values stored in the CMDB. Therefore, if values stored in CMDB are to be used, it is necessary to store the required information in CMDB beforehand by using the swpm_uaimport command. Do not omit the password if information is to be stored in the CMDB. Refer to "swrba_uaimport(import command for user information)" for information on the swpm_uaimport command.
Example of input file (CSV format) specified by the swpm_uaimport command
"IP address for connecting through an operation management network set in IPCOM","OS","User name (user roll: administrator) of the user connecting with SSH","Password of the user connecting with SSH","false","true",,"comment"
"IP address for connecting through an operation management network set in IPCOM","OS","user name different to the above connecting user name","Password for the command for transitioning to the administrator EXEC mode (admin command)"'"true"'"false",,"comment"
This operation component uses IPCOM. Refer to the relevant IPCOM documentation for information on how to set up IPCOM.
File Location
Windows | <Installation directory>\SWRBAM\rbaope\bin\parts\lib\ standard\swrba_hardware.rb |
Linux | /opt/FJSVswrbam/rbaope//bin/parts/lib/standard/swrba_hardware.rb |