on 04-13-2023 5:11 PM
I wanted to get the IP address of Linux VM's using SXPG_COMMAND_EXECUTE FM. I tired ping and Ni-ping, but both does not provide the required result. Is there another command name & additional parameter which I can use to get the IP addresses successfully.
(or)
Are their any other "remote enabled" function module to achieve the same. I need the IP address of all associated SAP VM's for an SID.
Instead of SXPG_COMMAND_EXECUTE, you could simply call FM TH_SERVER_LIST. (Though it provides hostnames instead of IP addresses.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, then the following might help you: the hostnames of message server and enqueue server are available as profile parameters:
And there is a function module that allows reading the values of profile parameters: TH_GET_PARAMETER. (Actually there are two FMs that read profile parameters, but the other one, TH_GET_PROFILE_VALUE, is not remote enabled...) So you could call TH_GET_PARAMETER and pass PARAMETER_NAME="rdisp/mshost" etc. to get the desired information.
Hi Jagadeesh
Have you tried using the transaction code SM51?
Regards
SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.