Re: Simple Indication Provider

"DIOGO P. LOUREIRO" <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <[email protected]>
>
Thanks Paul,

I'm using Ubuntu 10.10. 

I wrote the mof file for the indication provider and it goes like this:

instance of PG_ProviderModule
{
    Description = "Experimental Pegasus Indication Provider Module that 
implements some class";
    Caption = "Experimental Pegasus Indication Provider Module";
    Name = "XPTOIndicationProviderModule";
    Vendor = "OpenPegasus";
    Version = "2.0.0";
    InterfaceType = "C++Default";
    InterfaceVersion = "2.2.0";
    Location = "XPTOIndicationProvider";
};

instance of PG_Provider
{
    ProviderModuleName = "XPTOIndicationProviderModule";
    Name = "XPTOIndicationProvider";
};

instance of PG_ProviderCapabilities
{
    ProviderModuleName = "XPTOIndicationProviderModule";
    ProviderName = "XPTOIndicationProvider";
    CapabilityID = "XPTOIndicationProvider-01";
    ClassName = "CIM_ConnectivityCollection";
    Namespaces = { "root/cimv2" };
    ProviderType = { 4, 5 };  // Indication & Method
};

So I want to receive indications related the CIM_ConnectivityCollection, 
ConnectivityStatus up or down.

For that I create an instance of CIM_IPConnectivitySubnet:

$ cimcli ci -n root/cimv2 CIM_IPConnectivitySubnet ElementName="subNet101" 
InstanceID="subNet1010" ConnectivityStatus=2 SubnetNumber="10.10.10.0" 
SubnetMask="0.0.0.255" AddressType="1"


So whenever that connectivity status is changed a indication is received, 
right!!!

Next I created the filter & handler instances:

$ cimcli ci -n root/cimv2 CIM_IndicationFilter 
CreationClassName=CIM_IndicationFilter Name=TestFilter Query="SELECT * FROM 
CIM_InstModification" QueryLanguage=WQL

I have to query the CIM_InstModification, right?

$ cimcli ci -n root/cimv2 CIM_ListenerDestinationCIMXML 
CreationClassName=CIM_ListenerDestinationCIMXML Name=TestHandler 
Destination="http://localhost:5999/Eventlogs"

when I try to create the CIM_IndicationSubscription:

$ cimcli ci -n root/cimv2 -v CIM_IndicationSubscription 
Filter=CIM_IndicationFilter.CreationClassName=\"CIM_IndicationFilter\",Name=\"Te
stFilter\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"ubuntu\" 
Handler=CIM_ListenerDestinationCIMXML.CreationClassName=\"CIM_ListenerDestinatio
nCIMXML\",Name=\"TestHandler\",SystemCreationClassName=\"CIM_ComputerSystem\",Sy
stemName=\"ubuntu\"

I get:

cimcli CIMException:  Cmd= ci Object= CIM_IndicationSubscription Code= 7
CIM_ERR_NOT_SUPPORTED: No providers are capable of servicing the subscription.


Any hints that could help? 

Thanks.

<>
>
Paul Robert Marino <prmarino1 <at> gmail.com> writes:

> 
> 
> Well if its on linux there already is an opensource on that's part of the SBLM 
( standards based linux managment) project but if you are doing it on an other 
platform its code for its equivelent provider might give you a good idea of 
where to start
> 
> On Oct 10, 2011 4:04 PM, "DIOGO GOMES DE PINHO SILVA LOUREIRO" <diogo.loureiro 
<at> ua.pt> wrote:
> 
> Hello, I'm a newbie in WBEM. Yet I choose openPegasus to try it. So i need 
want to implement a simple indication provider to warn about the link state, 
just link up or link down.
> How do I create the indication provider for this warnings/indications?
> Where can i find some useful info?
> Thanks in advance.
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.