02-09-2012 01:48 PM
I am in the process of matching patterns for OM policy testing purposes. I've done pretty well but am stuck on a few...
Does anyone have a clue on what would match these three patterns below? All are for UNIX.
The pattern matching utility opcpat reports these two patterns contains syntax errors but they are present in policies.
\> <@.user> <#.pid> b
<*> \> <*.text> (<*.tmplid>)
This one is probably easy but I haven’t yet been able to figure out a match yet that opcpat agrees with.
Thanks in advance...
02-10-2012 04:45 AM - edited 02-10-2012 04:50 AM
it depends on the definition of the Separator.
Let's assume it is an X.
I added additional escape characters (\) for 'loose' \ and >.
\\\> <@.user> <#.pid> b
<*> \\\> <*.text> (<*.tmplid>)
> User 999 b
Some Text > Some more Test (TemplId)
aapXnootXmiesX0someXTheObjectXThe message text
You can check the valuefile against the condition using the admin GUI.
02-10-2012 08:30 AM
Conditions in the admin gui show:
<*> \> <*.text> (<*.TmplId>)
\> User 999 b
These pattern matches are shown as follows when you download the logfile template to a file::
TEXT "<*> \\> <*.text> (<*.TmplId>)" SEPARATORS "X"
TEXT "\\> User 999 b"
So I have too many backslashes in the patfile Only the \ needs an additional \..