In C, When we cmake a mof file it generates .c & .h files and Whether in python does it generate a .py file ? As per the Example followed in python implementation we need to manually locate the file.
I followed the same procedure by creating a tutorial mof file and its python scripts and it works fine. https://fedorahosted.org/openlmi/wiki/ProviderTutorialImplementationPython
I Even Tried the same procedure by creating a mof file for a new class and inherited it from TUT_UnixProcess but it encountered an same error. The description of the mof file is shown in the yawn but when i try running an instances it shows an error message as 7 CIM_ERR_NOT_SUPPORTED.
On 10/09/2013 11:11 AM, Chethan Y wrote:
In C, When we cmake a mof file it generates .c & .h files and Whether in python does it generate a .py file ?
It's covered in Generate Python skeleton chapter in the Python tutorial. You must import your MOF file into Pegasus (or SFCB) and YAWN will show it and you can then find 'Python Provider' link in class description page.
You cannot enumerate instances of the class until you write and register a provider for it.
Jan
openlmi-devel@lists.fedorahosted.org