path: root/openlmi-mof-register
Commit message (Collapse)AuthorAgeFilesLines
* Updated copyright yearsPeter Schiffer2014-01-161-1/+1
| | | | Updated copyright years to include new year 2014.
* Run providers as 'root' instead of the remote user (usually 'pegasus').Jan Safranek2013-12-191-0/+1
* Fixed openlmi-mof-register not to crash when CIMOM is down.Jan Safranek2013-12-181-12/+4
| | | | | | | | | | /usr/bin/mofcomp requires that Pegasus runs at the time the script is executed. Therefore we could not register any MOF files into database if Pegasus was down. To fix this, openlmi-mof-register now does not depend on mofcomp and contains its own MOF parser to parse just '#pragma include' directives, comments and string literals.
* openlmi-mof-register: parse '#pragma include' in mof files and copy all ↵Jan Safranek2013-11-251-1/+19
| | | | | | included mofs to cache. /usr/bin/mofcomp from pywbem is used for the parsing.
* Fixed reregistration to sfcbd.Jan Safranek2013-11-151-0/+3
| | | | | | We register some mof files only to Pegasus. These files should be skipped correctly when re-registering all mof files to sfcbd. Resolves: rhbz#1029008
* Make the new registration script the default one.Tomas Smetana2013-10-231-248/+512
* Add logging to the openlmi-mof-register scriptRadek Novacek2013-08-021-10/+36
| | | | | Each command in the registration script is now logged into /var/log/openlmi-install.log file.
* Fixed provider deregistration if the .reg file does not have group: property.Jan Safranek2013-07-291-1/+6
| | | | | | | Registration files generated by Konkret don't use 'group:' property and the providers were not deregistered in %preun section. With this patch, openlmi-mof-register tries to find 'group:' and fall back to 'location', if 'group' cannot be found.
* registration: use correct namespaceJan Synacek2013-07-241-2/+2
* Added -v option to openlmi-mof-register.Jan Safranek2013-07-171-6/+20
* openlmi-mof-register: Handle --helpTomas Bzatek2013-05-271-0/+4
| | | | | I constantly find myself typing --help instead of -h, this is just hardcoded in my brain. Let's support this commandline option as well.
* Start Pegasus when deregistering providers.Jan Safranek2013-05-221-0/+28
| | | | | | | | | openlmi-mof-register should be able to deregister mof files and providers also when Pegasus is not running. This patch starts Pegasus without any listening to network, so little harm can be done. Still, if there are indications subscribed, some indications may be sent!
* Deregister provider first and classes afterwards.Jan Safranek2013-05-221-1/+1
| | | | So we don't end up with removed classes but their providers still registered.
* Use group: to find out module name in Pegasus.Jan Safranek2013-05-221-1/+1
* Use mofcomp from pywbem to parse MOF files and remove all its classes and ↵Jan Safranek2013-05-221-5/+1
| | | | | | instances from Pegasus Our openlmi-cimmof seems to be error prone and pywbem works just fine.
* Fix wrong condition when registering providerRadek Novacek2013-05-071-2/+2
* fixed checking for long options in openlmi-mof-registerMichal Minar2013-05-021-1/+1
* registration script now allows to specify cimomMichal Minar2013-04-261-26/+57
| | | | | | | | | | | | | | Until now openlmi-mof-register operated on both sfcbd and tog-pegasus if present on system. This fails when we target namespace present only in one of them (like "root/interop" for sfcbd or "root/PG_InterOp" for tog-pegasus). This patch adds "-c" option allowing to specify target cimom. For example: openlmi-mof-register -n root/PG_InterOp -c tog-pegasus \ --just-mofs unregister mof/70_LMI_SoftwareIndicationFilters.mof Removes instances of indication filters only from tog-pegasus.
* openlmi-cimmof used by openlmi-mof-registerMichal Minar2013-04-261-0/+5
| | | | Also appended for installation to libexec with cmake.
* openlmi-mof-register gets support for different namespacesMichal Minar2013-04-111-12/+43
| | | | | openlmi-mof-register now supports optional -n parameter to choose another namespace for mof installation.
* support the registration of mof files only0.0.20Michal Minar2013-03-221-13/+35
| | | | | | | | openlmi-mof-register script now allows to register just the mof files without any providers LMI_Qualifiers.mof should be included in dependent mof files with # pragma include ("LMI_Qualifiers.mof")
* Happy New Year! (better later than never)Jan Synacek2013-03-131-1/+1
* fix path to Pegasus's repository in mof registration scriptVitezslav Crhonek2013-02-071-1/+1
| | | | | Resolves: #71 in openlmi trac - OpenLMI needs to be installable without the CIMOM running
* Allow experimental classes and version updates in MOF files.Jan Safranek2013-01-091-2/+2
* Fixed case switch, 'break' is for loops only.Jan Safranek2013-01-091-2/+2
* Allow more mofs to be registered by openlmi-mof-register.Jan Safranek2013-01-091-14/+30
| | | | The script is backward compatible, i.e. some ugly bash arrays needed to be used.
* Relicence all sources from GPLv2+ to LGPLv2+0.0.15Radek Novacek2012-11-121-0/+19
* fixed mof registration under tog-pegasus0.0.11Michal Minar2012-10-241-2/+2
| | | | | a dash for cimmof program telling it to read from stdin is no longer accepted by newer pegasus's cimmof binary
* Move registration scripts to proper directories0.0.10Radek Novacek2012-10-221-0/+93 is renamed to openlmi-mof-register and moved to /usr/bin/, reg2pegasus is now openlmi-register-pegasus in /usr/libexec/.