question about openlmi

MaShimiao mashimiao.fnst at cn.fujitsu.com
Thu Feb 13 01:10:59 UTC 2014


Hello,Tomáš
On 02/12/2014 06:59 PM, 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.
What you explained seems same as what I get from OpenLMI source code.
Very clear. Thank you!
>
> 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.
Got it.
>
>> 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.
I'm trying to read the Python scripts.
>
> 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.
Yes, they really give me some inspiration.
The code seems very well!

Regards,

>
> Regards,
>



More information about the openlmi-devel mailing list