Systems Management (OpenView-OP Mgmt) Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Any OM Pattern Matching Guru's out there?

Visitor

Any OM Pattern Matching Guru's out there?

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.

 

^<@><S><@><S><@><S>0<@><S><@.obj><S><*.msg>

 

Thanks in advance...

2 REPLIES
Honored Contributor Honored Contributor

Re: Any OM Pattern Matching Guru's out there?

[ Edited ]

L.S.

 

it depends on the definition of the Separator.

Let's assume it is an X.

I added additional escape characters (\) for 'loose' \ and >.

Patternfile:

#
\\\>  <@.user> <#.pid> b
X
<*> \\\> <*.text> (<*.tmplid>)
X
^<@><S><@><S><@><S>0<@><S><@.obj><S><*.msg>
X

 

Valuefile:

>  User 999 b
Some Text > Some more Test (TemplId)
aapXnootXmiesX0someXTheObjectXThe message text

 

 

 

You can check the valuefile against the condition using the admin GUI.

 

 

JP.

 

Highlighted
Honored Contributor Honored Contributor

Re: Any OM Pattern Matching Guru's out there?

Hmm,

 

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 \..

 

JP.