Symptom
- How to compare strings that change on different systems in Configuration Validation
For example ABAP profile parameters:
gw/reg_info "/sapmnt/<SID>/data/reginfo" "/usr/sap/<SID>/sap/reginfo"
gw/sec_info "/sapmnt/<SID>/data/secinfo" "/usr/sap/<SID>/sap/secinfo" - How to use the regex operator in Configuration Validation
Environment
- Solution Manager 7.2
- Configuration Validation
Reproducing the Issue
- Create a Target System
- Create or maintain the Comparision Store
- Create or maintain a comparison for the prameters using the operator (A or B)
- gw/reg_info
- gw/sec_info
using a static value e.g. /sapmnt/AAA/data/reginfo - Run the report
- Note that the comparsion for this example will only work for a system with the SID AAA
Cause
When using a static text as comparision value it is not possible to compare strings that are change on different environments e.g. SID's and hostnames
Resolution
To enable the comparsion across different systems in the landscape use the Regex (Regular Expressions) operators for example:
gw/reg_info =(Arex or Brex) "^/sapmnt/(\w{3})/data/reginfo" "^/usr/sap/(\w{3})/sap/reginfo"
gw/sec_info =(Arex or Brex) "^/sapmnt/(\w{3})/data/secinfo" "^/usr/sap/(\w{3})/sap/secinfo"
Please make sure to use the correct Regex syntax, otherwise the comparision will be incorrect
Keywords
ConfVal Expressions , KBA , SV-SMG-DIA-APP-CA , Change Analysis + Reporting, Configuration Validation, CCDB , Problem
SAP Knowledge Base Article - Public