Unsolved
This post is more than 5 years old
16 Posts
0
40117
Trying to incorporate omci into SCCM 2007 sp2
I'm trying to include the OMCI settings into the SMS_DEF.mof after reading the white papers and using pragma include. When I run a mofcomp on the sms_def.mof I get the following error:
Parsing MOF file: sms_def.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while creating object 124 defined on lines 38 - 47:
0X80041002 Class, instance, or property 'SMS_Class_Template' was not found.
Compiler returned error 0x80041002
Can anyone offer any insights? I have the OMCI client installed on my workstation (Win 7) and when I pull up wbemtest I can connect to the root/dellomci and enumerate the classes, however wbemtest crashes when I try to enumerate the instances. Thanks
Parsing MOF file: sms_def.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while creating object 124 defined on lines 38 - 47:
0X80041002 Class, instance, or property 'SMS_Class_Template' was not found.
Compiler returned error 0x80041002
Can anyone offer any insights? I have the OMCI client installed on my workstation (Win 7) and when I pull up wbemtest I can connect to the root/dellomci and enumerate the classes, however wbemtest crashes when I try to enumerate the instances. Thanks
jamieralphsmith
16 Posts
0
July 20th, 2010 09:00
DELL-Aaron M
16 Posts
0
August 4th, 2010 13:00
Where in the sms_def.mof are you inserting the #include statement? If you look within sms_def.mof, you'll see the actual definition for the sms_class_template class. If I insert the include statement above the first #pragma namespace definition, I get the error you reference. If I insert it immediately after the sms_class_template definition or lower in the file, I do not get the error you reference.
jamieralphsmith
16 Posts
0
August 4th, 2010 14:00
DELL-Greg R
118 Posts
0
August 5th, 2010 09:00
You only need to run mofcomp on the configmgr Primary site servers in ConfigMgr 2007 - have you appeneded the contents of the Dell SMS_DEF.MOF to your SMS_DEF.MOF, made the report modifications you need (setting TRUE or FALSE for each one), the compiled the MOF?
jamieralphsmith
16 Posts
0
August 5th, 2010 10:00
//#####################
//DEFINITON OF DELL_OMCI
//####################
#pragma namespace("\\\\.\\ROOT\\DellOMCI")
DELL-Greg R
118 Posts
0
August 5th, 2010 10:00
In the mean time, can you provide more detail?
Have you referenced external MOF files before?
So on your site server, you have \inboxes\clifiles.src\hinv\SMS_Def.MOF, and Configuration.mof - and you have a third file for the DELL mof, correct? Can you paste the line in that you're using to include the dell mof?
jamieralphsmith
16 Posts
0
August 5th, 2010 11:00
# pragma include ("DELL_OMCI.mof")
note that the file is named DELL_OMCI.mof and is in the same directory as the sms_def.mof.
skissinger1
4 Posts
0
August 5th, 2010 13:00
I'm not saying that's your issue, tho.
In one of my labs, when I tested the omci mof, I used #pragma include("OMCI.mof")
and it worked just fine.
if you run (from a cmd prompt) mofcomp -check dell_omci.mof, does the mofcomp still error?
DELL-Aaron M
16 Posts
0
August 5th, 2010 14:00
jamieralphsmith
16 Posts
0
August 5th, 2010 14:00
skissinger1
4 Posts
0
August 5th, 2010 14:00
Could I ask you to send your sms_def.mof, configuration.mof, and dell_omci.mof to mofmaster [at] myitforum d0t com?
jamieralphsmith
16 Posts
0
August 5th, 2010 14:00
jamieralphsmith
16 Posts
0
August 9th, 2010 06:00
skissinger1
4 Posts
0
August 9th, 2010 07:00
#pragma namespace("\\\\.\\ROOT\\DellOMCI")
at the top of your dell_omci.mof
I'm 99% sure that's the problem. the sms_class_template is NOT defined for that namespace in WMI, and has zero reason to be. So it's likely that's why it's whining. Within each class definition that namespace is explicitly called--trying to "change" to root\dellomci is just mucking you up.
I checked my omci.mof file that I have in my lab--and I did *exactly* what you did, did a #pragma include, and I don't have that. and it worked perfectly.
jamieralphsmith
16 Posts
0
August 9th, 2010 08:00