VMware {code} Community
bsteer
Contributor
Contributor

CIM without Python?

Is it possible to use VMware's CIM SDK without installing Python? Alternatively, is there an installation document for the CIM SDK? We're trying to develop an application in C#/.NET and mofcomp of the VMware mof files gives us an error (e.g., can't find CIM_InstCreate).

Tags (3)
0 Kudos
6 Replies
kurtkrems
Contributor
Contributor

What are you trying to accomplish for your application? Are you developing a monitoring application? Why are you trying to compile the MOF files?

0 Kudos
bsteer
Contributor
Contributor

Yes, we're developing a monitoring application. I'm new to CIM, so am

learning as I go here. The intent is (was) to generate c# class

wrappers using the mgmtclassgen utility. But of course the necessary

classes weren't in the repository. So I came across the mof files in

the download, and found the mofcomp utility. I also came across a

couple of messages about fixing bugs in the repository on Windows Server

2003 by recompiling some mof files. I haven't found any VMware document

that describes the process of getting the necessary classes into the

repository, so am very much winging it.

Thanks very much for any pointers you can give me.

Bill

0 Kudos
kurtkrems
Contributor
Contributor

You may be making this complicated. A CIM Provider already exists on the ESX. The MOF files that are in the SDK are already compiled into the ESX provider. This is also not WMI. I would recommend you use one of the c++ or Java examples in the SDK to get familiar with logging into the provider and run an enumeration. Let me know if I've misunderstood what you're trying to accomplish.

0 Kudos
bsteer
Contributor
Contributor

Our development environment is not an ESX server. We've been developing

our monitoring tool on a separate environment and then connecting to the

system being tested. Is there a way of setting up our development

environment so it has all of the CIM and VMware classes in the repository?

Thanks very much for your help.

Bill

0 Kudos
bsteer
Contributor
Contributor

Kurt,

Can you direct me to any documentation that would describe how to set up

our development system so we can move on with the CIM development?

Thanks.

Bill

0 Kudos
kurtkrems
Contributor
Contributor

http://openpegasus.org/ for your CIMOM documentation. WBEMSolutions has a tool called wbemextract that can extract all classes and instances, creates a MOF, so you can compile that MOF on your test CIMOM. Anyone else have any other ideas?

0 Kudos