Closed Banane6077 closed 9 months ago
@Banane6077 at a guess without using this Ansible Module, I would not use hostname as localhost
given how SAP handles connections and resolves using /etc/hosts
, put in the hostname or IP Address and show the result?
Hi, the hostname in the module call is missing. Execution from local host would be ok because it utilizes the hostagents soap api. But at the moment the module try to connect to 127.0.0.1
- name: GetProcessList with sysnr
community.sap_libs.sap_control_exec:
hostname: 192.168.8.15
sysnr: "01"
function: GetProcessList
Hello, thanks for your input! I get still the same error:
Could you share your module call again.
Here are a few reasons and maybe solutions:
Maybe a firewall blocks the call? Do you provide the right sysnr? As an alternative provide the port instead.
Hello and thank you for your help.
I figured that not every SAP Server has the Process Number "01" some of them has the number "0" so that was probably it! Sorry for wasting your guys time and asking this but i am complete newbie in Ansible and SAP and tryin' my way into SAP Base Administration.
Thanks anyway!
Summary
I am sorry in advance, cuz this might be not a Bug. I don't know.
I wanted to make an simple Playbook which is tryin' to get the Status of the SAP Process but on this particular Server i get following.
On some other Server i get an successful output.
I would appreciate to get some help.
Playbook:
Issue Type
Bug Report
Component Name
apt
Ansible Version
community.sap_libs Version
Configuration
OS / Environment
Steps to Reproduce
Expected Results
I should get an Response if the process is running or not.
Actual Results
Error:
Full Error log file:
TEST2.txt
Code of Conduct