on 02-01-2019 10:01 AM
Hello,
I'm using thefollowing script to get the process list of an instance.
$proxy = New-WebServiceProxy -uri http://myserver.domain.de:50113?wsdl
$proxy.GetProcessList()<br>
Is the instance a hana database the return value is correct. But is the instance an ABAP/ASCS/JAVA/ASCS instance there is no return value.
Cannot find an overload for "GetProcessList" and the argument count: "0".
At line:2 char:1
+ $proxy.GetProcessList()
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest<br>
I'm able to reqest the methods and GetProcessList is available.
Are there any restriction outside of an HANA enviroment?
br Patrick
isaias.freitas
Thank you for this Info, it was very helpful. I actually like this format much better as it allows you to know which parameters are availible
For instance.
$proxy.StopSystem("SAPControlALLINSTANCES","*","0","15")
Is now (other values already defaulted)
$StopSystem = New-Object ($type + ".StopSystem")
$StopSystem.waittimeout = 15
$proxy.StopSystem($StopSystem)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Isaías,
thank you very much for your competent support. I'm not a Powershell professional and I'm trying to use this issue to feed our monitoring tool.
So the bottom line is login information is needed? Why this big difference between HANA and ABAP/JAVA?
HANA
$proxy = New-WebServiceProxy -uri http://myserver.domain.de:50013?wsdl
$proxy.GetProcessList()
ABAP/JAVA
$proxy = New-WebServiceProxy -uri http://myserver.domain.de:50113?wsdl
$proxy.Credentials = new-object System.Net.NetworkCredential("SIDadm","password1234")
$type = $proxy.GetType().NameSpace
$proclist = New-Object ($type + ".GetProcessList")
$list = $proxy.GetProcessList($proclist)
$list.process
Is there a way to solve this for ABAP/JAVA as elegantly as in the HANA environment?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Patrick,
You are welcome! 🙂
Login might be needed, depending on the method being called.
You can try it without the "$proxy.Credentials..." line to see whether the method you are calling is "protected" (meaning it required authentication).
For more information about the protected methods, read this wiki page.
Regards,
Isaías
Hello Patrick,
Kernel 753, ok.
Try the following:
$proxy = New-WebServiceProxy -uri http://myserver.domain.de:50113?wsdl
$proxy.Credentials = new-object System.Net.NetworkCredential("SIDadm","password")
$type = $proxy.GetType().NameSpace
$proclist = New-Object ($type + ".GetProcessList")
$proxy.GetProcessList($proclist)
Regards,
Isaías
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Patrick,
That's it. It worked.
If you need a more detailed output (e.g., showing the statuses), then use:
$proclist = New-Object ($type + ".GetProcessList")
$list = $proxy.GetProcessList($proclist)
$list.process | Format-Table
Regards,
Isaías
I use our Solution Manager to test the ABAP and JAVA instance. Both instances have the following release and patch level.
sapstartsrv, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 21:11:59
disp+work, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 21:19:35
gwrd, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:31
msg_server, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:30
dboraslib.so, 753, patch 319, changelist 1893869, RKS compatibility level 0, optU (Dec 21 2018, 21:30:18), linuxx86_64, 2018 12 21 21:31:18
dbmssslib.so, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:29
dbdb2slib.so, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:29
dbdb4slib.so, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 21:09:08
dbdb6slib.so, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:29
dbsybslib.so, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:29
dw_gui.so, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 21:12:31
enserver, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:30
enq_server, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:30
icman, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:31
sapwebdisp, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:31
jcontrol, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 20:56:27
jlaunch, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 21:08:57
jstart, 753, patch 300, changelist 1876288, RKS compatibility level 0, optU (Oct 9 2018, 20:55:42), linuxx86_64, 2018 10 09 21:09:06
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
On ABAP system you would use the sapcontrol commands, as the wdsl URL only works for HANA
Note 2533003 - sapcontrol webmethods end with FAIL: NIECONN_REFUSED
Note 2631116 - Enqueue Server status: Running but not responding
Best Regards Roland
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.