HP (Hewlett-Packard) HP OpenView Vantagepoint – Operation Manual for UNIX Printer User Manual


 
Syntax Used in VPO Configuration Files
Syntax for Message Pattern Matching
Appendix A294
NOT
Operator
The not operator ( ! ) must be used with delimiting square brackets, for
example: <![WARNING]>
The pattern above matches all text that does not contain the string
WARNING.
The NOT operator may also be used with complex sub-patterns, for
example:
SU <*> + <@.tty> <![root|[user[1|2]]].from>-<*.to>
This pattern makes it possible to generate a switch user message for
anyone who is not root, user1, or user2.
For example, the following would be matched:
SU 03/25 08:14 + ttyp2 user11-root
However, the following would not be matched, because it contains an entry
concerning user2:
SU 03/25 08:14 + ttyp2 user2-root
Note that if the sub-pattern including the not operator does not find a
match, the not operator behaves like a <*>: it matches zero or more
arbitrary characters.
For this reason, the UN*X [!123] expression cannot be duplicated: VPO’s
<![1|2|3]> matches any character or any number of characters, except 1,
2 or 3; the UN*X operator matches any one character, except 1, 2 or 3.
Alternative
Operator
Two expressions separated by the pipe character ( | ) match a string that
is matched by either expression.
For example, the pattern [ab|c]d matches both the string abd and the
string cd.
Table A-2 VPO Pattern Matching Language
Component Description