Skip to Content
0

Where can I find the GetAlertTree() method's response structure?

Oct 18, 2016 at 03:55 PM

173

avatar image

I am developing a third-party application for monitoring SAP via web services(SOAP). I found GetAlertTree() method that returns CCMS alert tree as an array(similar to RZ20 transaction). What is the structure of this response? For example :

<item> <name>Freespace</name> <parent>19</parent> <ActualValue>SAPControl-GREEN</ActualValue> <description>30733 MB</description> <Time>2016 10 13 09:30:57</Time> <AnalyseTool>TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN=X;FNAM=IN_TID-MTSYSID;FVAL=NPL;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTMCNAME;FVAL=wdflbmd6865_NPL_00;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTNUMRANGE;FVAL=005;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTUID;FVAL=0000000140;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTCLASS;FVAL=100;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTINDEX;FVAL=0000000081;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-EXTINDEX;FVAL=0000000022;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=WHICH_TOOL;FVAL=020;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=MTE_NAME;FVAL=\NPL\wdflbmd6865_NPL_00\...\/sap\Freespace</AnalyseTool> <VisibleLevel>SAPControl-OPERATOR</VisibleLevel> <HighAlertValue>SAPControl-GREEN</HighAlertValue> <AlDescription/> <AlTime/> <Tid>MTSYSID=NPL;MTMCNAME=wdflbmd6865_NPL_00;MTNUMRANGE=005;MTUID=0000000140;MTCLASS=100;MTINDEX=0000000081;EXTINDEX=0000000022;</Tid> </item>

<item> <name>Freespace</name> <parent>27</parent> <ActualValue>SAPControl-GREEN</ActualValue> <description>30733 MB</description> <Time>2016 10 13 09:30:57</Time> <AnalyseTool>TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN=X;FNAM=IN_TID-MTSYSID;FVAL=NPL;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTMCNAME;FVAL=wdflbmd6865_NPL_00;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTNUMRANGE;FVAL=005;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTUID;FVAL=0000000148;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTCLASS;FVAL=100;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-MTINDEX;FVAL=0000000089;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=IN_TID-EXTINDEX;FVAL=0000000026;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=WHICH_TOOL;FVAL=020;TCODE=rz25;DSPMODE=E;UPDMODE=S;PROGRAM=RSALTLEX;DYNPRO=1000;DYNBEGIN= ;FNAM=MTE_NAME;FVAL=\NPL\wdflbmd6865_NPL_00\...\/sapmnt\Freespace</AnalyseTool> <VisibleLevel>SAPControl-OPERATOR</VisibleLevel> <HighAlertValue>SAPControl-GREEN</HighAlertValue> <AlDescription/> <AlTime/> <Tid>MTSYSID=NPL;MTMCNAME=wdflbmd6865_NPL_00;MTNUMRANGE=005;MTUID=0000000148;MTCLASS=100;MTINDEX=0000000089;EXTINDEX=0000000026;</Tid> </item>

How to know what memory is described? And it's similar info about other components of SAP.

tag
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Yuksel AKCINAR Oct 18, 2016 at 05:49 PM
0

Hello Adrian,

You can check 8-11 sections of below document.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e24f7b-1ba1-2b10-c0a0-e514b855624b?QuickLink=index&overridelayout=true&59575491492354

You can also use soapUI for the resultset of the web services of sapstartsrv.

https://blogs.sap.com/2014/01/22/how-to-test-any-cloud-webservice-using-soapui-part-1-of-2/

Regards,

Yuksel AKCINAR

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks for a quick response.

I've analyzed links that you provided, but it still unclear for me how to parse correctly data specifically from GetAlertTree() method. The response is really huge and the problem is how to build correct relationships between entities that are being monitored and data that this method returns. For example, I have several filesystems('/dev','/dev/shm' and etc.) on host. GetAlertTree() returns info about all of them(the example data is provided above). So, how shall I know first <item> with <parent>19</parent> is '/dev' filesystem for example, and second <item>(<parent>27</parent>) is for '/dev/shm'?

0
Yuksel AKCINAR Oct 19, 2016 at 06:03 PM
0

Hello Adrian,

http://hostname:5##13 link is using sapstartsrv web services. Say sapcontrol webservices.

Use this URL and check SAP Management Console. There is SAP Microsoft Management Console also you may know.

There are Current Status and Open Alerts tree nodes. GetAlertTree brings the OpenAlerts node values. You can examine management console and match GetAlertTree resultset. This xml structure changes according to OS and DB of the SAP system.

The only document I found is the mentioned one in previous answer.

Regards,

Yuksel AKCINAR

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks, I will look for it.

0