question about openlmi

MaShimiao mashimiao.fnst at cn.fujitsu.com
Thu Feb 13 01:20:23 UTC 2014


Hi,
On 02/12/2014 08:39 PM, Peter Hatina wrote:
> Hi,
>
> On 02/12/2014 11:59 AM, Tomáš Smetana wrote:
>> Hello.
>>
>> On Wed, 12 Feb 2014 08:56:11 +0800
>> MaShimiao <mashimiao.fnst at cn.fujitsu.com> wrote:
>>
>>>> LMI client applications - applications that call LMI functions - can be
>>>> written in C, C++, Python or Java.
>>> That's what I really can't understand.
>>> What's LMI functions?
>>
>> Whatever functions the LMI providers offer...  Please note the OpenLMI
>> project is a set of providers and a set of client-side Python based tools and
>> modules.  Nothing more.
>>
>> If you want to write a client application in Java, just forget about "LMI"
>> for a while: You need to write a generic WBEM client that talks the cimXML
>> protocol over HTTP(S). The fact there are LMI providers installed on the
>> managed side is irrelevant: it will come important only when you decide to
>> use the LMI provider interfaces and then you will need to take a look at the
>> CIM models documentation for the OpenLMI providers [0] to find out what we
>> offer and how to use that.  The documentation uses the LMIShell for code
>> examples since LMIShell allows for easy manipulation of the CIM objects. The
>> examples should be translatable to any other programming language though.
>
> Very well explained!
>
>>
>>> Are they functions which is contained in Python scripts deployed in the
>>> directory /usr/lib/python2.7/site-packages/lmi ? If they are, I don't think
>>> it's a good idea to call Python scripts to write C, C++ or Java
>>> applications.
>>
>> You're right.  The client software of OpenLMI is only about Python or shell
>> scripting and there are several abstraction levels you can choose from.  At
>> the topmost level you don't need to know anything about CIM and WBEM.
>>
>> If you want to use other language than Python (or shell), you're on your own
>> and you need to deal with the CIM classes directly. The Python scripts might
>> be useful for an inspiration though -- from their code one should be able to
>> deduce how to perform certain actions.
>
> Some time ago, Javi Roman spent his time rewriting our sample scripts
> from Python to Java. His repo still lives on github [1], take a look.
Thanks, Peter.
I researched a lot on the web, including this repo.
Information from web and source code seems conflict.
That's why I was confused.
Now, I think I know more about OpenLMI.


Regards,  
>
>>
>> Regards,
>>
>
> [1] https://github.com/javiroman/openlmi-poc
>
> Cheers,
>



More information about the openlmi-devel mailing list