Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Parse RuleCriteria from rule or Database ?

0 views
Skip to first unread message

Lewis Wilson

unread,
Feb 18, 2008, 10:19:01 AM2/18/08
to
Hi all,
Is it possible to programmaticaly parse the RuleCriteria field from the rule
(obtained via getResultantSetOfRule()) or from the ProcessRule table in the
OnePoint database?

I've managed to get access to the ruleCriteria field of a rule using the MOM
SDK but this field is a MemoryStream and do not know how to correctly parse
this out. I am currently getting results like:
" ? ?????????? ??*(?? ? ? 0 1 f ^ ( 2 2 0 9 6 | 2 2 0 9 3 | 2 2
0 9 0 | 2 2 0 9 2 | 2 2 0 9 1 | 2 2 0 9 7 | 2 2 0 9 8 | 2 2 0 8 9 ) $
??<??t???? ??qH?? f ? 0 5 : M i c r o s o f t O p e r a t i o n
s M a n a g e r n a g e r"

which is close but not what i'm looking for. Does anyone know how to parse
this MemoryStream properly?

I've been trying another method of obtaining this information too which is
going direct to the OnePoint database. This information is stored in the
ProcessRule table of the OnePoint database but stored as a binary (image?)
type. Does anyone know how to parse it out this way instead?

Thanks,

Lewis.

Jakub Oleksy [MSFT]

unread,
Feb 27, 2008, 3:33:12 PM2/27/08
to
This is not supported. The criteria isn't even a public property, is it?

--
Jakub Oleksy
Developer
Blog: http://blogs.msdn.com/jakuboleksy/
Log a bug or Feature Request directly to the SCOM Product Team by going to
http://connect.microsoft.com/site/sitehome.aspx?SiteID=209. This posting is
provided "AS IS" with
no warranties, and confers no rights.

"Lewis Wilson" <Lewis...@discussions.microsoft.com> wrote in message
news:4D773C98-8456-4C76...@microsoft.com...

0 new messages