community.sap_libs.sapcontrol module – Manages SAPCONTROL
Note
This module is part of the community.sap_libs collection (version 1.1.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.sap_libs
.
To use it in a playbook, specify: community.sap_libs.sapcontrol
.
New in version 1.1.0: of community.sap_libs
Synopsis
Provides support for sapstartsrv formaly known as sapcontrol
A complete information of all functions and the parameters can be found here https://www.sap.com/documents/2016/09/0a40e60d-8b7c-0010-82c7-eda71af511fa.html
Parameters
Parameter |
Comments |
---|---|
Forces the execution of the function Choices:
|
|
The function to execute. Choices:
|
|
The hostname to connect to the sapstartsrv. Could be an IP address, FQDN or hostname. Default: “localhost” |
|
The parameter to pass to the function. |
|
The password to connect to the sapstartsrv. |
|
The port number of the sapstartsrv. |
|
The system number of the instance. |
|
The username to connect to the sapstartsrv. |
Examples
- name: GetProcessList with sysnr
community.sap_libs.sapcontrol:
hostname: 192.168.8.15
sysnr: "01"
function: GetProcessList
- name: GetProcessList with custom port
community.sap_libs.sapcontrol:
hostname: 192.168.8.15
function: GetProcessList
port: 50113
- name: ParameterValue
community.sap_libs.sapcontrol:
hostname: 192.168.8.15
sysnr: "01"
username: hdbadm
password: test1234#
function: ParameterValue
parameter: ztta
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Success-message with functionname. Returned: always Sample: “Succesful execution of: GetProcessList” |
|
The full output of the required function. Returned: always Sample: [{“item”: [{“description”: “MessageServer”, “dispstatus”: “SAPControl-GREEN”, “elapsedtime”: “412:30:50”, “name”: “msg_server”, “pid”: 70643, “starttime”: “2022 03 13 15:22:42”, “textstatus”: “Running”}, {“description”: “EnqueueServer”, “dispstatus”: “SAPControl-GREEN”, “elapsedtime”: “412:30:50”, “name”: “enserver”, “pid”: 70644, “starttime”: “2022 03 13 15:22:42”, “textstatus”: “Running”}, {“description”: “Gateway”, “dispstatus”: “SAPControl-GREEN”, “elapsedtime”: “412:30:50”, “name”: “gwrd”, “pid”: 70645, “starttime”: “2022 03 13 15:22:42”, “textstatus”: “Running”}]}] |
Authors
Rainer Leber (@RainerLeber)
Robert Kraemer (@rkpobe)