Using HP Global Workload Manager with SAP

23
Walkthrough
This example uses a procmap to identify which SAP processes are batch and which are dialog, and
separately place them in different gWLM workloads. To do that, there is some additional setup before
we can define our SRD and workloads.
Confirming SGeSAP is categorizing processes
To confirm that SGeSAP tools are producing a list of PIDs, check for the existence of a map file for
your instance. For our example instance C03, this means:
root@cutst125:/tmp ls /etc/cmcluster/C03/wlmprocmap.*
/etc/cmcluster/C03/wlmprocmap.C03_DVEBMGS00_cutst125
/etc/cmcluster/C03/wlmprocmap.C03_DVEBMGS00_cutst128
Then check the contents of those files to confirm the PIDs listed do indeed map to SAP processes.
Example to check that the first PID listed is an SAP process:
root@cutst125:/tmp cat
/etc/cmcluster/C03/wlmprocmap.C03_DVEBMGS00_cutst125
DIA:7926
DIA:7927
DIA:7928
DIA:7929
DIA:7930
DIA:7931
UPD:7932
UPD:7937
UPD:7952
UPD:7953
UPD:7954
BTC:7956
BTC:7961
SPO:7962
UP2:7966
UP2:7980
root@cutst125:/tmp ps -ef | grep 7926 | grep -v grep
c03adm 7926 7919 0 20:45:43 ? 1:08 dw.sapC03_DVEBMGS00
pf=/usr/sap/C03/SYS/profile/C03_DVEBMGS00_cutst125
Creating the procmap and the procmap-based workload
Now we will create small procmap scripts that will execute the wlmsapmap tool against the mapfile
and return just batch or dialog PIDs:
root@cutst125:/tmp cd /etc/opt/vse/scripts/
root@cutst125:/etc/opt/vse/scripts cat > dialog.C03_DVEBMGS00
#!/bin/sh
/opt/wlm/toolkits/sap/bin/wlmsapmap \
-f /etc/cmcluster/C03/wlmprocmap.C03_DVEBMGS00_cutst125 -t DIA
root@cutst125:/etc/opt/vse/scripts
root@cutst125:/etc/opt/vse/scripts chmod 0755 ./dialog.C03_DVEBMGS00
root@cutst125:/etc/opt/vse/scripts ./dialog.C03_DVEBMGS00
28095 28096 28097 28098 28101 28102
root@cutst125:/etc/opt/vse/scripts cat >
/etc/opt/vse/scripts/batch.C03_DVEBMGS00
#!/bin/sh
/opt/wlm/toolkits/sap/bin/wlmsapmap \
-f /etc/cmcluster/C03/wlmprocmap.C03_DVEBMGS00_cutst125 -t BTC
root@cutst125:/etc/opt/vse/scripts chmod 0755
/etc/opt/vse/scripts/batch.C03_DVEBMGS00