The service library provides the following classes:
Article number/class name |
Class Name
Swrba_Process
List of Methods
Method | Description |
String process_start_check(String processname, String hostname, String username, String password, String ostype, String execusername, String execpassword) | Confirm whether the process of the specified host is running. "Success" is returned if confirmation of the start status of the process was successful. An exception is returned if confirmation of the start status of the process failed. |
String process_stop_check(String processname, String hostname, String username, String password, String ostype, String execusername, String execpassword) | Confirm whether the process of the specified host has stopped. "Success" is returned if confirmation of the stop status of the process was successful. An exception is returned if confirmation of the stop status of the process failed. |
Integer process_number_check(String processname, String hostname, String username, String password, String ostype, String execusername, String execpassword) | Confirm whether the process of the specified host is running. The number of detected processes is returned if confirmation of the start status of the processes was successful. An exception is returned if confirmation of the start status of the process failed. |
Integer return_code() | Return the return value of the results of the start/stop status confirmation of a process. |
Input Information
processname Specify the name of the process whose start/stop status is to be confirmed.
hostname Specify the host name or IP address.
username Specify the name of the user using SSH to connect to the host where the start/stop status of a process is to be confirmed.
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 where the start/stop status of a process is to be confirmed.
If the operation component connects with the file transfer infrastructure, the password is ignored even if specified.
ostype Specify the operating system of the host confirming the start/stop status of the process. Specify Windows or Linux.
execusername Specify the name of the user confirming the start/stop status of the process.
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
If the information except for the Management Server has been entered for "hostname", this library uses the file transfer infrastructure or SSH communication to perform its operations. Set either at least to be able to communicate. Refer to the "3.16 Notes of Each Communication Method" for the notes of each communication method.
If the connected user and executing user are different, refer to the "3.16.7 Notes When Connected User And Executing User Are Different".
File Location
Windows | <Installation directory>\SWRBAM\rbaope\bin\parts\lib\ standard\swrba_process.rb |
Linux | /opt/FJSVswrbam/rbaope//bin/parts/lib/standard/swrba_process.rb |