Ramaswamy, Kusuma | 3 Oct 08:54 2005

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''
(Continue reading)

Willis White | 3 Oct 21:25 2005
Picon

Review document [PEP#236 - Platform Authorization Hooks for Pegasus 1.0] created

This message is generated by The Open Group's web service 
because you are a subscriber to the pegasus-l list

A review document has just been created by Willis White.

Web:       OpenPegasus PEPs
Title:     PEP#236 - Platform Authorization Hooks for Pegasus 1.0
URL:       http://www.openpegasus.org/pp/protected/revdoc.tpl?grid=1721

Further details:-

This document proposes an easy to use capability, in which platform developers
can make use of their platform-specific authorization mechanism to do Pegasus
authorization.

----
To unsubscribe from this and/or other mailing lists administered by
The Open Group please visit http://www.opengroup.org/sophocles/unsubscribe.tpl
or send a request to webmaster <at> opengroup.org (please include the text
of this message). 

Bank.Huang | 4 Oct 08:34 2005

Join to get login

As title

seyfullah ari | 4 Oct 08:45 2005
Picon

cim v 2.10

Hi People,
Has anybody tried to compile CIM v2.10 into repository. CIM v2.10 comes with a new directory structure ( seperate directory for all common models ), cimmof always gives this error "Could not open include file xx". I think cimmof can't handle subdirs, all included files given in main mof file are using subdirs. Any opinion???
 
 
Seyfullah ARI
MilSOFT
Turkey

Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
Viktor Mihajlovski | 4 Oct 12:59 2005
Picon

RE: on CMPI provider


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






Paul von Behren | 4 Oct 15:31 2005
Picon

Re: cim v 2.10


seyfullah ari wrote:

> Hi People,
> Has anybody tried to compile CIM v2.10 into repository. CIM v2.10 
> comes with a new directory structure ( seperate directory for all 
> common models ), cimmof always gives this error "Could not open 
> include file xx". I think cimmof can't handle subdirs, all included 
> files given in main mof file are using subdirs. Any opinion???

Did you try merging all the MOFs into one big file first?  On UNIX this 
could be done with the cat command.  

Paul

>  
>  
> Seyfullah ARI
> MilSOFT
> Turkey
>
> ------------------------------------------------------------------------
> Yahoo! for Good
> Click here to donate <http://store.yahoo.com/redcross-donate3/> to the 
> Hurricane Katrina relief effort. 

Mary Hayes | 4 Oct 15:55 2005

RE: cim v 2.10

On Linux, I edited the top level cimv210.mof to change all the "\" to
"/" for the "pragma include" statements.  Then, it compiled fine.

--Mary H.

-----Original Message-----
From: Paul von Behren [mailto:Paul.Vonbehren <at> Sun.COM] 
Sent: Tuesday, October 04, 2005 6:31 AM
To: seyfullah ari
Cc: pegasus-l <at> opengroup.org
Subject: Re: cim v 2.10

seyfullah ari wrote:

> Hi People,
> Has anybody tried to compile CIM v2.10 into repository. CIM v2.10 
> comes with a new directory structure ( seperate directory for all 
> common models ), cimmof always gives this error "Could not open 
> include file xx". I think cimmof can't handle subdirs, all included 
> files given in main mof file are using subdirs. Any opinion???

Did you try merging all the MOFs into one big file first?  On UNIX this 
could be done with the cat command.  

Paul

>  
>  
> Seyfullah ARI
> MilSOFT
> Turkey
>
>
------------------------------------------------------------------------
> Yahoo! for Good
> Click here to donate <http://store.yahoo.com/redcross-donate3/> to the

> Hurricane Katrina relief effort. 

Denise Eckstein | 5 Oct 21:33 2005
Picon

Review document [PEP#237 - Recommended OpenPegasus 2.5.1 Build and Configuration Options for Selected Platforms 1.0] created

This message is generated by The Open Group's web service 
because you are a subscriber to the pegasus-l list

A review document has just been created by Denise Eckstein.

Web:       OpenPegasus PEPs
Title:     PEP#237 - Recommended OpenPegasus 2.5.1 Build and Configuration Options for Selected Platforms  1.0
URL:       http://www.openpegasus.org/pp/protected/revdoc.tpl?grid=1724

Further details:-

This PEP defines a set of recommended options for building, testing and running
OpenPegasus 2.5.1 on a selected set of platforms.

----
To unsubscribe from this and/or other mailing lists administered by
The Open Group please visit http://www.opengroup.org/sophocles/unsubscribe.tpl
or send a request to webmaster <at> opengroup.org (please include the text
of this message). 

Reddy, Narasimha C | 6 Oct 14:26 2005

How to convert SourceInstance to CIMInstance??

Hi,

 

     From my client program I am able to receive Life Cycle and Process indications. The indication object received contains a property called SourceInstance which is of type String. Can anybody explain me how to convert this String to Pegasus CIMInstance? Otherwise from the indication object received there is no way to identify what is the affected instance.

 

Thanks & Regards,

--------------------------------------------------------------------------
Narsimha Reddy CH,
BrightStor Development Team,
Computer Associates,
Vanenburg IT Park,Madhapur, HYDERABAD, India.
Tel: +91 40 5567 0859
Fax: +91 40 5567 0001

 

EMail: Narasimha.Reddy <at> ca.com

 

Dunfey_Alexander | 6 Oct 14:49 2005

RE: How to convert SourceInstance to CIMInstance??

Narsimha,
 
It depends on what version of the Pegasus client API you are using. If you're using Pegasus 2.5, that version automatically contains support for EmbeddedObjects (which is what the SourceInstance property is). When you get the CIMValue of the SourceInstance property, you should be able to get a CIMObject out of that CIMValue. From there, you can cast the CIMObject to a CIMInstance.
 
This of course assumes that the provider you are receiving the indication from properly supports EmbeddedObjects (i.e. has the EMBEDDEDOBJECT attribute in the XML of the SourceInstance property).
 
~Alex

From: pegasus-l-request <at> opengroup.org [mailto:pegasus-l-request <at> opengroup.org] On Behalf Of Reddy, Narasimha C
Sent: Thursday, October 06, 2005 8:27 AM
To: pegasus-l <at> opengroup.org
Subject: How to convert SourceInstance to CIMInstance??

Hi,

 

     From my client program I am able to receive Life Cycle and Process indications. The indication object received contains a property called SourceInstance which is of type String. Can anybody explain me how to convert this String to Pegasus CIMInstance? Otherwise from the indication object received there is no way to identify what is the affected instance.

 

Thanks & Regards,

--------------------------------------------------------------------------
Narsimha Reddy CH,
BrightStor Development Team,
Computer Associates,
Vanenburg IT Park,Madhapur, HYDERABAD, India.
Tel: +91 40 5567 0859
Fax: +91 40 5567 0001

 

EMail: Narasimha.Reddy <at> ca.com

 


Gmane