Hi,
this sounds as if the environment variable
PEGASUS_PLATFORM is not specified correctly. For Windows it must be set
to WIN32_IX86_MSVC AFAIK.
Mit freundlichen Grüßen / Kind Regards
Viktor Mihajlovski
Linux Technology Center
IBM Laboratory Böblingen, Germany
Phone +49-7031-16-2560
E-Mail mihajlov <at> de.ibm.com
|
|
"Ramaswamy, Kusuma" <kusuma_ramaswamy <at> adaptec.com>
10/03/2005 08:54 AM
|
To:
<pegasus-l <at> openpegasus.org>
cc:
Subject:
RE: on CMPI provider |
Hi
I am trying to create a sample cmpi provider given in
/src/Pegasus/provider/CMPI .
I am running the make file and I getting the series of errors on
windows.
cmpidt.h(199) : error C2632: 'long' followed by 'long' is illegal
cmpidt.h(207) : error C2632: 'long' followed by 'long' is illegal
CmpiArray.h(89) : error C2535: '__thiscall
CmpiArrayIdx::operator`long'(void)
nst' : member function already defined or declared
CmpiArray.h(83) : see declaration of 'operator`long''
CmpiArray.h(105) : error C2535: '__thiscall
CmpiArrayIdx::operator`unsigned l
'(void) const' : member function already defined or declared
CmpiArray.h(99) : see declaration of 'operator`unsigned
long''
CmpiData.h(106) : error C2535: '__thiscall CmpiData::CmpiData(long)' :
member
nction already defined or declared
CmpiData.h(98) : see declaration of 'CmpiData::CmpiData'
CmpiData.h(126) : error C2535: '__thiscall CmpiData::CmpiData(unsigned
long)'
member function already defined or declared
CmpiData.h(118) : see declaration of 'CmpiData::CmpiData'
CmpiData.h(186) : error C2535: '__thiscall
CmpiData::operator`long'(void) con
: member function already defined or declared
CmpiData.h(178) : see declaration of 'operator`long''
CmpiData.h(206) : error C2535: '__thiscall CmpiData::operator`unsigned
long'(
d) const' : member function already defined or declared
Any idea , why these errors are ?
Regards
kusuma
Sent: Monday, October 03, 2005 12:46 AM
To: Ramaswamy, Kusuma
Subject: RE: on CMPI provider
Hi kusuma,
> 1. Is it possible, to talk to WMI (CIMOM)as well Pegasus(CIMOM)
using
> CMPI layer .(as I understood CMPI provider can be interfaced with
> different CIMOM's)
>
I have not so far heard
about CMPI interface for WMI, to
my
knowledge goes it is not possible. Still I recommend you to
give a search and then confirm as I didnt have any
exploration done so far in that direction.
>
> 2. CMPI must be related to CDM- v2 (is it so ? ) as it talks about
> indication , services , polling for continuous log etc ? apart
from
> test.
>
> 3. u said that with Pegasus 2.4 u could integrate CMPI layer , how
do
u
> check CMPI layers are integrated (is there any way to check ?)
>
Running a sample provider is
an easy test for CMPI
compliance.
> 4. as for as I know , Pegasus 2.4 is not using CIM2.9 , so in order
to
> implement CMPI provider with CDM - v2 , Do I need to register
CIM
2.9
> using "cimmof" .
>
Yes.
> 5. Can u help me with sample CMPI instance provider as well sample
> client ?
You can download sample CMPI
provider source code from
http://sblim.org/
In that site go to CVS WebView link that will
take to to set of
source codes and you can pick the cmpi-base directory to get a
sample CMPI provider source.
For client you can use CLI or wbem exec
as you do with normal
providers.
Regards
Devaraj SP
> HI devaraj,
>
> I am extremely sorry, as I am bothering u with many of doubts on CMPI
> provider. But as I am new to this technology on CDM , I really
> appreciate the kind of help u r offering me.
>
> Let me explain my current work,
>
> Here in adaptec , provider was done for a company which is CDMv1.
Now
we
> are suppose to make CDMv2 provider , and it should be CMPI compliant.
>
>>From the documents I have gone through till now, I understood that
,
> CMPI is a layer which is a C interface in between the CIMOM
and the
> provider. So a provider can talk to any CIMOM through CMPI layer.
>
> Now if I have to write CMPI provider , then I need to use the
interfaces
> that CMPI provides say e.g to enumerate Instances (I read many
> interface calls from toc.pdf) But I am not clear how do I go about
> writing a sample CMPI provider.
>
> For writing a provider (ie non- CMPI) I need to have
> 1. my_providerMain.cpp //
this has physical export entry
> point//
> 2. my_provider.cpp
// logical provider implementing
> CIMInstance provider
, CIMMethodprovider ,
> CIMAssociation provider etc.
>
> This is how I understood the way to start of with , writing
a
provider.
>
> Now if I have to write a CMPI instance provider , say to enumerate
> instances of "myclass" , then how do I go about it.
> I saw the CMPI directory under (Pegasus / provider) which lists a
number
> of header files but nothing is clear and I am not able to understand
how
> do I start of ?
>
> Can u help me (by providing either link / sample code) in
understanding
> a simple Instance CMPI provider which will enumerate instance of say
,
> "myclass" .
>
> Also I want to know about
>
> 1. Is it possible, to talk to WMI (CIMOM)as well Pegasus(CIMOM)
using
> CMPI layer .(as I understood CMPI provider can be interfaced with
> different CIMOM's)
>
>
> 2. CMPI must be related to CDM- v2 (is it so ? ) as it talks about
> indication , services , polling for continuous log etc ? apart
from
> test.
>
> 3. u said that with Pegasus 2.4 u could integrate CMPI layer , how
do
u
> check CMPI layers are integrated (is there any way to check ?)
>
> 4. as for as I know , Pegasus 2.4 is not using CIM2.9 , so in order
to
> implement CMPI provider with CDM - v2 , Do I need to register
CIM
2.9
> using "cimmof" .
>
> 5. Can u help me with sample CMPI instance provider as well sample
> client ?
>
> Thanking u , expecting ur reply soon ..
> Kusuma
>
>
> -----Original Message-----
> From: Devaraj [mailto:devarajsp <at> amiindia.co.in]
> Sent: Friday, September 30, 2005 6:18 PM
> To: Ramaswamy, Kusuma
> Subject: Re: on CMPI provider
>
> Here is the URL for downloading latest binary rpm for pegasus 2.4
> http://www.openpegasus.org/pr/#rpm
>
>
> ----- Original Message -----
> From: "Ramaswamy, Kusuma" <kusuma_ramaswamy <at> adaptec.com>
> To: "Devaraj" <devarajsp <at> amiindia.co.in>
> Sent: Friday, September 30, 2005 5:36 PM
> Subject: RE: on CMPI provider
>
>
>>
>> Can u provide me the link of Pegasus rpm with CMPI
enabled.
>>
>> Kusuma
>> -----Original Message-----
>> From: Devaraj [mailto:devarajsp <at> amiindia.co.in]
>> Sent: Friday, September 30, 2005 5:06 PM
>> To: Ramaswamy, Kusuma
>> Subject: Re: on CMPI provider
>>
>> Hi,
>> Sorry for late reply. I was in a meeting.
>> What you mentioned is right.
>> If you dont have a need to possess
source of Pegasus, best
> thing
>> is
>> to use the executable or binary RPM, which comes readily CMPI
enabled.
>> Regards
>> Devaraj SP
>>
>> ----- Original Message -----
>> From: "Ramaswamy, Kusuma" <kusuma_ramaswamy <at> adaptec.com>
>> To: "Devaraj" <devarajsp <at> amiindia.co.in>
>> Sent: Friday, September 30, 2005 3:20 PM
>> Subject: RE: on CMPI provider
>>
>>
>> > Hello,
>> >
>> > One quick question,
>> >
>> > If I want to have CMPI integrated on to Pegasus - 2.4 , then
>> >
>> > These are the changed I need to make ? (I am checking
it out with
> u)
>> >
>> > 1. I already have working Pegasus - 2.4 with out CMPI
>> > 2. I need to do "make clean "
>> > 3. CMPI must be enabled during Pegasus build.
>> > For CMPI enablement, set the following environment variables
prior
> to
>> > make:
>> >
>> > PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER=1
>> > 4. make
>> > 5. make repository
>> >
>> > Steps I have listed out or correct ? .
>> > Then after building the Pegasus how do I check CMPI is integrated
> with
>> > Pegasus. ?
>> >
>> > I hope , to receive ur reply soon .
>> >
>> > Kusuma
>> >
>> >
>> > -----Original Message-----
>> > From: Devaraj [mailto:devarajsp <at> amiindia.co.in]
>> > Sent: Friday, September 30, 2005 1:15 PM
>> > To: Ramaswamy, Kusuma
>> > Subject: Re: on CMPI provider
>> >
>> > Hi Kusuma,
>> > CMPI provider will work with
Pegasus 2.4. I am using
Pegasus
>> > 2.4.01
>> > binary RPM version. I am tried out with Instance, Association,
>> Indication
>> > and Method providers. In that support for indication
seems to be
>> less,
>> > but
>> > it works for general queries. I have not tried out
with 2.5, as it
>> worked
>> > out for me in 2.4 itself ;)
>> > Ideally the code of CMPI should
work fine with windows
also,
> I
>> > have
>> > not tested it yet. It works fine in Linux.
>> >
>> > Please feel free to ask if you
have any other queries.
>> > Regards
>> > Devaraj SP
>> >
>> >
>> >
>> >
>> > ----- Original Message -----
>> > From: "Ramaswamy, Kusuma" <kusuma_ramaswamy <at> adaptec.com>
>> > To: "Devaraj" <devarajsp <at> amiindia.co.in>
>> > Sent: Friday, September 30, 2005 9:56 AM
>> > Subject: on CMPI provider
>> >
>> >
>> > > HI,
>> > >
>> > > I saw ur queries on CMPI provider few days back at the
open
> Pegasus
>> > forum.
>> > >
>> > >
>> > > I am looking at how to implement CMPI provider .
>> > > I understand that , Pegasus-2.4 can not be used for
developing
> CMPI
>> > provider. Is my understanding correct ?
>> > > Does Pegasus 2.5 supports CMPI on both windows and linux.
If so
> how
>> to
>> > go
>> > abt it ?
>> > >
>> > >
>> > > IS the sample code available on http://www.sblim.com
is only
for
>> > Linux
>> > OS ?
>> > >
>> > > Can u help me out with the above info
>> > >
>> > > Kusuma
>> > >
>> > >
>> > >
>> > >
>> >
>> >
>> >
>> >
>>
>>
>>
>>