Re: Install duplicate DMTF schema
Kirk Augustin <[email protected]> Mon, 22 Sep 2014 12:54:39 -0700
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <[email protected]> |
--531777075-257126199-1411415679=:91632 Content-Type: text/plain; charset=us-ascii Been a while since I have done that, but if I remember correctly, the purpose of mof files is really to create class types and not instances. While you can create static instances of classes with mof files, there usually is little point in doing so. Normally instances are created by your providers, except for built ins like CIM_OperatingSystem, which is provided by OpenPegasus. But that may be in the default namespace and I would not necessarily expect it in your new namespace. I would expect a new namespace to be empty. Kirk Augustin 11821 NW McNamee Rd Portland, OR 97231 HM: 503-289-4356 >________________________________ > From: Elliot Justice <[email protected]> >To: [email protected] >Sent: Monday, September 22, 2014 10:45 AM >Subject: Install duplicate DMTF schema > > >First some background. >We have clients using software on legacy servers that have OpenPegasus >installed with versions ranging from 2.6 to 2.11 and we are planning to >use OpenPegasus to augment one of our existing projects.We operating >under the assumption that some of the clients may be using OP for some >in house project. So for testability we would like to install a >duplicate copy of the DMTF standard schema in a separate namespace so we >can have some consistency for the project. > >So far I've downloaded and compiled the MOF files into a seperate >namespace on a test server using > >cimmof -n root/testNamespace CIM_SCHEMA.mof > >which displayed a duplicate class warning (which I expected). I then >added R/W permissions to the new namespace using > >cimauth -a -u testUser -n root/testNamespace -R -W > >and checked if the classes were available using > >cimcli gc -n root/testNamespace CIM_OperatingSystem > >However trying to get an instance of a class with > >cimcli gi -n root/testNamespace CIM_OperatingSystem > >gives a CIM_ERR_NOT_SUPPORTED error. Upon further investigation I >realized that no instances of any classes were created when the MOF was >compiled, so I tried using > >cimcli ci -n root/testNamespace CIM_OperatingSystem > >but this also gave a CIM_ERR_NOT_SUPPORTED. I feel that I missed a step >somewhere, or that there is some other recommended way to do this. Can >anyone provide assistance? > > > > > --531777075-257126199-1411415679=:91632 Content-Type: text/html; charset=us-ascii <html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><div style="" class=""><span style="" class="">Been a while since I have done that, but if I remember correctly, the purpose of mof files is really to create class types and not instances.</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">While you can create static instances of classes with mof files, there usually is little point in doing so.</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue,Helvetica Ne ue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">Normally instances are created by your providers, except for built ins like </span>CIM_OperatingSystem, which is provided by OpenPegasus.</div><div class="" style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">But that may be in the default namespace and I would not necessarily expect it in your new namespace.</div><div class="" style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">I would expect a new namespace to be empty.<br></div><div style="" class=""> </div><div style="" class="">Kirk Augustin<br style="" class="">11821 NW McNamee Rd<br style="" class="">Portl and, OR 97231</div><div style="" class=""><br style="" class=""><br style="" class=""></div><div style="" class="">HM: 503-289-4356</div><div style="" class=""><br style="" class=""></div> <div style="" class=""></div><blockquote class="" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10px;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <hr style="" class="" size="1"> <font style="" class="" size="2" face="Arial"> <b style="" class=""><span class="" style="font-weight:bold;">From:</span></b> Elliot Justice <[email protected]><br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">To:</span></b> pegasus-l@ope ngroup.org <br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Sent:</span></b> Monday, September 22, 2014 10:45 AM<br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Subject:</span></b> Install duplicate DMTF schema<br style="" class=""> </font> </div> <div style="" class=""><br style="" class="">First some background.<br style="" class="">We have clients using software on legacy servers that have OpenPegasus <br style="" class="">installed with versions ranging from 2.6 to 2.11 and we are planning to <br style="" class="">use OpenPegasus to augment one of our existing projects.We operating <br style="" class="">under the assumption that some of the clients may be using OP for some <br style="" class="">in house project. So for testability we would like to install a <br style="" class="">duplicate copy of the DMTF standard schema in a separate namespace so we <br style="" class=" ">can have some consistency for the project.<br style="" class=""><br style="" class="">So far I've downloaded and compiled the MOF files into a seperate <br style="" class="">namespace on a test server using <br style="" class=""><br style="" class="">cimmof -n root/testNamespace CIM_SCHEMA.mof <br style="" class=""><br style="" class="">which displayed a duplicate class warning (which I expected). I then <br style="" class="">added R/W permissions to the new namespace using <br style="" class=""><br style="" class="">cimauth -a -u testUser -n root/testNamespace -R -W<br style="" class=""><br style="" class="">and checked if the classes were available using <br style="" class=""><br style="" class="">cimcli gc -n root/testNamespace CIM_OperatingSystem<br style="" class=""><br style="" class="">However trying to get an instance of a class with<br style="" class=""><br style="" class="">cimcli gi -n root/testNamespace CIM_OperatingSystem <br st yle="" class=""><br style="" class="">gives a CIM_ERR_NOT_SUPPORTED error. Upon further investigation I <br style="" class="">realized that no instances of any classes were created when the MOF was <br style="" class="">compiled, so I tried using<br style="" class=""><br style="" class="">cimcli ci -n root/testNamespace CIM_OperatingSystem<br style="" class=""><br style="" class="">but this also gave a CIM_ERR_NOT_SUPPORTED. I feel that I missed a step <br style="" class="">somewhere, or that there is some other recommended way to do this. Can <br style="" class="">anyone provide assistance?<br style="" class=""><br style="" class=""><br style="" class=""><br style="" class=""><br style="" class=""></div> </div> </div> </blockquote><div></div> </div></body></html> --531777075-257126199-1411415679=:91632--