Michael E. Brasher <mike-brasher <at> austin.rr.com>
2007-06-01 13:57:50 GMT
Hello
Wen,
I just
tested both the CMPI and OpenPegasus C++ provider interfaces and for me they
both
call
enable-indications for me. To do this my client initially creates instances of
the folowing:
CIM_IndicationSubscription
CIM_IndicationFilter
CIM_IndicationHandlerCIMXML
Her
are the exact instances of those I created (I used CLI to fetch them from the
server).
Perhaps it has something to do with the RepeatNotificationPolicy property
but I'm not
sure.
You might retry with these same properties.
Regards,
Mike
instance of
CIM_IndicationSubscription
{
OtherOnFatalErrorPolicy =
NULL;
FailureTriggerTimeInterval =
NULL;
OtherSubscriptionState =
NULL;
SubscriptionDuration =
NULL;
SubscriptionTimeRemaining =
NULL;
OtherRepeatNotificationPolicy =
NULL;
RepeatNotificationInterval =
NULL;
RepeatNotificationGap =
NULL;
RepeatNotificationCount =
NULL;
Filter =
"CIM_IndicationFilter.CreationClassName=\"CIM_IndicationFilter\",Name=\"56C0D70B233E46668EC64BD2671D07A2\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"localhost.localdomain\"";
Handler =
"CIM_IndicationHandlerCIMXML.CreationClassName=\"CIM_IndicationHandlerCIMXML\",Name=\"56C0D70B233E46668EC64BD2671D07A2\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"localhost.localdomain\"";
OnFatalErrorPolicy = 4;
SubscriptionState = 2;
RepeatNotificationPolicy =
2;
TimeOfLastStateChange =
"20070601084000.230420-300";
SubscriptionStartTime =
"20070601084000.230420-300";
};
instance of
CIM_IndicationFilter
{
Caption = NULL;
Description = NULL;
ElementName = NULL;
Name =
"56C0D70B233E46668EC64BD2671D07A2";
Query = "select * from
CIM_Indication";
QueryLanguage = "WQL";
SourceNamespace =
"root/cimv2";
CreationClassName =
"CIM_IndicationFilter";
SystemName =
"localhost.localdomain";
SystemCreationClassName =
"CIM_ComputerSystem";
};
instance of
CIM_IndicationHandlerCIMXML
{
Caption = NULL;
Description = NULL;
ElementName = NULL;
OtherPersistenceType =
NULL;
Owner = NULL;
Name =
"56C0D70B233E46668EC64BD2671D07A2";
Destination =
"http://localhost:9999";
CreationClassName =
"CIM_IndicationHandlerCIMXML";
SystemName =
"localhost.localdomain";
SystemCreationClassName =
"CIM_ComputerSystem";
PersistenceType = 2;
};
Mike
Hi,
I am using Pegasus
2.6.
I have noticed these subscription
persistence behaviors during cimserver restart:
1. indication filters, handlers,
and subscriptions survive cimserver restart.
2. cimserver does not call the
enable/create/modifySubscription methods on providers after a restart, so that
providers will not know if there are pre-existing subscriptions in the
system.
The above behaviors contradict
each other’s design intentions. What’s your approach for your providers
to recognize pre-existing subscriptions?
Thanks,
Wen