Search for any matches containing either of the two strings, string1 or string2: ^(string1)|^(string2)$ Search for any matches containing a single string, string1: ^(string1)$ Operations Manager regular expression (regex) examples Example 1 Operations Manager regex syntax Construct Expression filters exist in your management pack when you use the Expression Eval module. NET Framework regular expression syntax elements are supported. Expression filter matching criteriaĮxpression filters that are used in management packs use. If either of these two special operators are used, the evaluation is always case-sensitive. If it returns a value of 1, the match is true. If this call returns a value of 0, the match is false. The implementation of this operator passes the expression that is found in the MP XML to the dbo.fn_MatchesRegularExpression SQL call name. The GroupCalc expression uses the MatchesRegularExpression operator to create dynamic group membership based on pattern matching expressions. Group calculation is found in your management pack (MP) whenever you use the Group Calc module. For more information, see SimpleCriteriaType. By default, the matching is case-insensitive, however you can specify that an expression must be case-sensitive by using a special attribute in the XML. Group calculation uses PERL regular expression syntax. Group membership calculation and expression filters use distinctly different syntaxes for pattern matching. You must know which element you are working in to be able to choose the correct expression. Operations Manager supports two different types of regular expressions. Original product version: System Center Operations Manager Original KB number: 2702651 Regular expressions may also be necessary for pattern matching in expression criteria in monitors and rules. When you author management packs, you may have to include regular expression matching in discoveries and groups.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |