From cb3913a5177f998acb503691fb1908f82c7f890b Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Thu, 18 Apr 2013 16:03:19 +0200 Subject: renamed mof files according to LMI convention Mof files prefixed with digits ensuring their correct order of parsing upon their installation. This avoids problems with sfcbmof compiler, which can not handle dependent classes being parsed before their antecedents. Convention is specified in mof/README. Removed inclusion of LMI_Qualifiers in LMI_Jobs. LMI_Qualifiers should be registered in cimom instead of included in dependent mof files. This allows it to be used by any other providers simultaneously. Modified references to mof files in cmake build files. --- mof/05_LMI_Qualifiers.mof | 25 ++ mof/30_LMI_Jobs.mof | 125 ++++++ mof/60_LMI_Account.mof | 310 ++++++++++++++ mof/60_LMI_Fan.mof | 109 +++++ mof/60_LMI_Hardware.mof | 192 +++++++++ mof/60_LMI_LogicalFile.mof | 70 ++++ mof/60_LMI_PowerManagement.mof | 71 ++++ mof/60_LMI_Service.mof | 46 +++ mof/60_LMI_Software.mof | 690 +++++++++++++++++++++++++++++++ mof/70_LMI_SoftwareIndicationFilters.mof | 104 +++++ mof/LMI_Account.mof | 310 -------------- mof/LMI_Fan.mof | 109 ----- mof/LMI_Hardware.mof | 192 --------- mof/LMI_Jobs.mof | 127 ------ mof/LMI_LogicalFile.mof | 70 ---- mof/LMI_PowerManagement.mof | 71 ---- mof/LMI_Qualifiers.mof | 25 -- mof/LMI_Service.mof | 46 --- mof/LMI_Software.mof | 690 ------------------------------- mof/LMI_SoftwareIndicationFilters.mof | 104 ----- mof/README | 28 ++ src/account/CMakeLists.txt | 2 +- src/fan/CMakeLists.txt | 2 +- src/hardware/CMakeLists.txt | 2 +- src/logicalfile/CMakeLists.txt | 2 +- src/power/CMakeLists.txt | 2 +- src/service/CMakeLists.txt | 2 +- 27 files changed, 1776 insertions(+), 1750 deletions(-) create mode 100644 mof/05_LMI_Qualifiers.mof create mode 100644 mof/30_LMI_Jobs.mof create mode 100644 mof/60_LMI_Account.mof create mode 100644 mof/60_LMI_Fan.mof create mode 100644 mof/60_LMI_Hardware.mof create mode 100644 mof/60_LMI_LogicalFile.mof create mode 100644 mof/60_LMI_PowerManagement.mof create mode 100644 mof/60_LMI_Service.mof create mode 100644 mof/60_LMI_Software.mof create mode 100644 mof/70_LMI_SoftwareIndicationFilters.mof delete mode 100644 mof/LMI_Account.mof delete mode 100644 mof/LMI_Fan.mof delete mode 100644 mof/LMI_Hardware.mof delete mode 100644 mof/LMI_Jobs.mof delete mode 100644 mof/LMI_LogicalFile.mof delete mode 100644 mof/LMI_PowerManagement.mof delete mode 100644 mof/LMI_Qualifiers.mof delete mode 100644 mof/LMI_Service.mof delete mode 100644 mof/LMI_Software.mof delete mode 100644 mof/LMI_SoftwareIndicationFilters.mof create mode 100644 mof/README diff --git a/mof/05_LMI_Qualifiers.mof b/mof/05_LMI_Qualifiers.mof new file mode 100644 index 0000000..d6b11ec --- /dev/null +++ b/mof/05_LMI_Qualifiers.mof @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: + * Jan Safranek + */ + +/* 'Implemented' qualifier denotes the properties and method that are implemented + * by appropriate OpenLMI provider. + */ +Qualifier Implemented : boolean = false, Scope(property, method); diff --git a/mof/30_LMI_Jobs.mof b/mof/30_LMI_Jobs.mof new file mode 100644 index 0000000..6c8ddd1 --- /dev/null +++ b/mof/30_LMI_Jobs.mof @@ -0,0 +1,125 @@ +/* + * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: + * Jan Safranek + * Michal Minar + */ + +[ Description("Class representing Linux Account"), + Provider("cmpi:cmpiLMI_Account") +] +class LMI_Account: CIM_Account +{ + [ Description("User's home directory") ] + string HomeDirectory; + + [ Description("User's login shell") ] + string LoginShell; + + [ Description("The date when was password last changed") ] + datetime PasswordLastChange; + + [ Description("Minimum number of days between password change") ] + datetime PasswordPossibleChange; + + [ Description("Number of days of warning before password expires") ] + datetime PasswordExpirationWarning; + + [ Description("Maximum number of days between password change") ] + datetime PasswordInactivation; + + [ Description("The date of expiration of the account.") ] + datetime AccountExpiration; +}; + +[ Description("LMI_AccountManagementService creates, manages, and if necessary " + "destroys Linux Accounts on behalf of other SecurityServices."), + Provider("cmpi:cmpiLMI_Account") +] +class LMI_AccountManagementService: CIM_SecurityService +// It would be good to inherit from CIM_AccountManagementService +// however I don't if to create instance from embeddedinstance is a good way +{ + [ Description ( "Create a new account on the system") ] + uint32 CreateAccount( + [Required, IN, Description ( + "The scoping ComputerSystem in which to create the Account." + )] + CIM_ComputerSystem REF System, + [Required, IN, Description ( + "Desired user login name for the account to be created." ) ] + string Name, + [IN, Description ( + "GECOS information for new user" ) ] + string GECOS, + [IN, Description ( + "Set home directory for the user." ) ] + string HomeDirectory, + [IN, Description ( + "Wheter to create home directory." ) ] + boolean DontCreateHome, + [IN, Description ( + "Default shell for new user" ) ] + string Shell, + [IN, Description ( + "Pick a specific user id for new user" ) ] + uint32 UID, + [IN, Description ( + "Pick a specific group id for new user" ) ] + uint32 GID, + [IN, Description ( + "True for creating system account" ) ] + boolean SystemAccount, + [IN, Description ( + "Encryted password for new user" ) ] + string Password, + [IN, Description ( + "Whether to create group" ) ] + boolean DontCreateGroup, + [IN ( false ), OUT, Description ( + "Reference to the instance of CIM_Account created " + "when the method returns a value of 0." )] + CIM_Account REF Account, + [IN ( false ), OUT, Description ( + "Reference to the instances of CIM_Identity created " + "when the method returns a value of 0. NULL if no " + "such instances are created." )] + CIM_Identity REF Identities[]); + + [ Description ( "Create a new group on the system") ] + uint32 CreateGroup( + [Required, IN, Description ( + "The scoping ComputerSystem in which to create the Account." + )] + CIM_ComputerSystem REF System, + [Required, IN, Description ( + "Desired group name for the account to be created." ) ] + string Name, + [IN, Description ( + "Pick a specific group id for new user" ) ] + uint32 GID, + [IN, Description ( + "True for creating system account" ) ] + boolean SystemAccount, + [IN ( false ), OUT, Description ( + "Reference to the instance of CIM_Group created " + "when the method returns a value of 0." )] + CIM_Group REF Group, + [IN ( false ), OUT, Description ( + "Reference to the instances of CIM_Identity created " + "when the method returns a value of 0. NULL if no " + "such instances are created." )] + CIM_Identity REF Identities[]); + +}; + +[ Provider("cmpi:cmpiLMI_Account") ] +class LMI_AccountManagementCapabilities: CIM_AccountManagementCapabilities +{ +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_AccountOnSystem: CIM_AccountOnSystem +{ + [ Override("GroupComponent"), Min(1), Max(1), + Description("The hosting System.") ] + CIM_ComputerSystem REF GroupComponent; + + [ Override("PartComponent"), + Description("The managed Account on the System") ] + LMI_Account REF PartComponent; +}; + +[ Provider("cmpi:cmpiLMI_Account") ] +class LMI_AccountSettingData: CIM_AccountSettingData +{ +}; + +[ Provider("cmpi:cmpiLMI_Account") ] +class LMI_Identity: CIM_Identity +{ +}; + +[ Provider("cmpi:cmpiLMI_Account") ] +class LMI_Group: CIM_Group +{ +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_AssignedAccountIdentity: CIM_AssignedIdentity +{ + [ Override("IdentityInfo"), + Description("The managed Identity") ] + LMI_Identity REF IdentityInfo; + + [ Override("ManagedElement"), + Description("The managed Account on the System") ] + LMI_Account REF ManagedElement; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_AssignedGroupIdentity: CIM_AssignedIdentity +{ + [ Override("IdentityInfo"), + Description("The managed Identity") ] + LMI_Identity REF IdentityInfo; + + [ Override("ManagedElement"), + Description("The managed Group on the System") ] + LMI_Group REF ManagedElement; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_AccountManagementServiceCapabilities: CIM_ElementCapabilities +{ + [ Override("ManagedElement"), + Description("The Central Instance of Account Management") ] + LMI_AccountManagementService REF ManagedElement; + + [ Override("Capabilities"), + Description("The supported Capabilities for managing Linux Accounts") ] + LMI_AccountManagementCapabilities REF Capabilities; +}; + +[ Provider("cmpi:cmpiLMI_Account") ] +class LMI_EnabledAccountCapabilities: CIM_EnabledLogicalElementCapabilities +{ +}; + + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_AccountCapabilities: CIM_ElementCapabilities +{ + [ Override("ManagedElement"), + Description("The managed Account") ] + LMI_Account REF ManagedElement; + + [ Override("Capabilities"), + Description("The supported Capabilities for changing the state of the " + "Linux Account") ] + LMI_EnabledAccountCapabilities REF Capabilities; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_AccountManagementServiceSettingData: CIM_ElementSettingData +{ + [ Override("ManagedElement"), + Description("The Central Instance of Account management") ] + LMI_AccountManagementService REF ManagedElement; + + [ Override("SettingData"), + Description("The default enforced setting for new Accounts") ] + LMI_AccountSettingData REF SettingData; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_HostedAccountManagementService: CIM_HostedService +{ + [ Override("Antecedent"), + Description("The hosting System") ] + CIM_ComputerSystem REF Antecedent; + + [ Override("Dependent"), + Description("The Central Instance of Account management") ] + LMI_AccountManagementService REF Dependent; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_MemberOfGroup: CIM_MemberOfCollection +{ + [ Override("Collection"), + Description("The managed Group on the System") ] + LMI_Group REF Collection; + + [ Override("Member"), + Description("The managed Identity") ] + LMI_Identity REF Member; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_OwningGroup: CIM_OwningCollectionElement +{ + [ Override("OwningElement"), + Description("The hosting System") ] + CIM_ComputerSystem REF OwningElement; + + [ Override("OwnedElement"), + Description("The managed Group on the System") ] + LMI_Group REF OwnedElement; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_ServiceAffectsIdentity: CIM_ServiceAffectsElement +{ + [ Override("AffectingElement"), + Description("The Central Instance of Account management") ] + LMI_AccountManagementService REF AffectingElement; + + [ Override("AffectedElement"), + Description("The managed Identity") ] + LMI_Identity REF AffectedElement; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_SettingsDefineManagementCapabilities: CIM_SettingsDefineCapabilities +{ + [ Override("GroupComponent"), + Description("The Account Management Capabilities") ] + LMI_AccountManagementCapabilities REF GroupComponent; + + [ Override("PartComponent"), + Description("The default enforced setting for new Accounts") ] + LMI_AccountSettingData REF PartComponent; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Account") ] +class LMI_SettingsDefineAccountCapabilities: CIM_SettingsDefineCapabilities +{ + [ Override("GroupComponent"), + Description("The Account Capabilities") ] + LMI_EnabledAccountCapabilities REF GroupComponent; + + [ Override("PartComponent"), + Description("The default enforced setting for new Accounts") ] + LMI_AccountSettingData REF PartComponent; +}; diff --git a/mof/60_LMI_Fan.mof b/mof/60_LMI_Fan.mof new file mode 100644 index 0000000..3c964cf --- /dev/null +++ b/mof/60_LMI_Fan.mof @@ -0,0 +1,109 @@ +/* + * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Michal Minar + */ + +[ Provider("cmpi:cmpiLMI_Fan") ] +class LMI_Fan: CIM_Fan +{ + [ Key, Override("DeviceID"), + Description("Uniquely identifies fan. It is a composition of " + "SysPath and Name glued with slash ('/').") ] + string DeviceID; + + [ Override("Name"), + Description("Name of fan provided by system.") ] + string Name; + + [ Description("Array of fan features, that are exposed through system " + " interface. In other words: those that are readible/writable."), + ValueMap { "1", "2", "3", "4", "5", "6", "7", "8" }, + Values { "MinSpeed", "MaxSpeed", "Divisor", "Pulses", "Beep", + "Alarm", "MinAlarm", "MaxAlarm" } + ] + uint16 AccessibleFeatures[]; + + [ Description("Minimum speed value."), Write, + Units("Revolutions per Minute") ] + uint64 MinSpeed; + + [ Description("Maximum speed value."), Write, + Units("Revolutions per Minute") ] + uint64 MaxSpeed; + + [ Description("Fan divisisor. It affects Minimum and Maximum speed value " + "and accuracy of readings. " + "The drivers account for the 'fan divisor' in their calculation " + "of RPM. So changing the fan divisor will NOT change the " + "nominal RPM reading, it will only affect the minimum and maximum " + "readings and the accuracy of the readings. " + "The actual formula is RPM = (60 * 22500) / (count * divisor)"), + Write ] + uint32 Divisor; + + [ Description("Number of tachometer pulses per fan revolution. " + "Integer value, typically between 1 and 4. " + "This value is a characteristic of the fan connected to the " + "device's input, so it has to be set in accordance with the fan " + "model."), + Write ] + uint32 Pulses; + + [ Description("This indicates, whether a PC's speaker should beep " + "when an alarm occurs."), + Write ] + boolean Beep; + + [ Description("ALARM warning indicating, that current speed is out of " + "range. This information is supplied by fan's chip driver.") ] + boolean Alarm; + + [ Description("ALARM warning indicating, that current speed is below " + "the critical level. This information is supplied by fan's chip " + "driver.") ] + boolean MinAlarm; + + [ Description("ALARM warning indicating, that current speed is above " + "the critical level. This information is supplied by fan's chip " + "driver.") ] + boolean MaxAlarm; +}; + +[ Provider("cmpi:cmpiLMI_Fan") ] +class LMI_FanSensor: CIM_NumericSensor +{ + [ Key, Override("DeviceID"), + Description("Uniquely identifies fan. It is a composition of " + "SysPath and Name glued with slash ('/').") ] + string DeviceID; + + [ Override("Name"), + Description("Name of fan provided by system.") ] + string Name; +}; + +[ Association, + Provider("cmpi:cmpiLMI_Fan") ] +class LMI_FanAssociatedSensor: CIM_AssociatedSensor +{ + [ Override("Antecedent") ] + LMI_FanSensor REF Antecedent; + + [ Override("Dependent") ] + LMI_Fan REF Dependent; +}; diff --git a/mof/60_LMI_Hardware.mof b/mof/60_LMI_Hardware.mof new file mode 100644 index 0000000..3ceb886 --- /dev/null +++ b/mof/60_LMI_Hardware.mof @@ -0,0 +1,192 @@ +/* + * Copyright (C) 2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Tomas Smetana + * Peter Schiffer + */ + +/****************************************************************************** + * Processor + */ + +[ Provider("cmpi:cmpiLMI_Processor") ] +class LMI_Processor: CIM_Processor +{ + [ Description("System architecture.") ] + string Architecture; + + /* Added "Multi-Core" characteristic from dmidecode program. */ + [ Override("Characteristics"), + ValueMap { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9..32567", + "32568", "32569..65535" }, + Values { "Unknown", "DMTF Reserved", "64-bit Capable", "32-bit Capable", + "Enhanced Virtualization", "Hardware Thread", "NX-bit", + "Power/Performance Control", "Core Frequency Boosting", + "DMTF Reserved", "Multi-Core", "Vendor Reserved" } ] + uint16 Characteristics[]; + + /* Flag IDs and names are based on: + linux-3.8/arch/x86/include/asm/cpufeature.h */ + [ Description ("Flags supported by Processor. " + "(Available only for x86 architecture.)"), + ValueMap { + /* 0*32 */ + "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "11", "12", "13", + "14", "15", "16", "17", "18", "19", "21", "22", "23", "24", "25", "26", + "27", "28", "29", "30", "31", + /* 1*32 */ + "43", "51", "52", "54", "57", "58", "59", "61", "62", "63", + /* 2*32 */ + "64", "65", "67", + /* 3*32 */ + "96", "97", "98", "99", "100", "101", "102", "103", "104", "105", + "106", "107", "108", "109", "110", "111", "112", "113", "114", "115", + "116", "118", "119", "120", "121", "122", "123", "124", "125", + /* 4*32 */ + "128", "129", "130", "131", "132", "133", "134", "135", "136", "137", + "138", "140", "141", "142", "143", "145", "146", "147", "148", "149", + "150", "151", "152", "153", "154", "155", "156", "157", "158", "159", + /* 5*32 */ + "162", "163", "166", "167", "168", "169", "170", "171", "172", "173", + /* 6*32 */ + "192", "193", "194", "195", "196", "197", "198", "199", "200", "201", + "202", "203", "204", "205", "207", "208", "209", "211", "213", "214", + "215", + /* 7*32 */ + "224", "225", "226", "227", "228", "229", "230", "231", "232", + /* 8*32 */ + "256", "257", "258", "259", "260", "261", "262", "263", "264", "265", + "266", "267", "268", "269", "270", + /* 9*32 */ + "288", "289", "291", "292", "293", "295", "296", "297", "298", "299", + "306", "307", "308" }, + Values { + /* 0*32 */ + "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce", "cx8", "apic", + "sep", "mtrr", "pge", "mca", "cmov", "pat", "pse36", "pn", "clflush", + "dts", "acpi", "mmx", "fxsr", "sse", "sse2", "ss", "ht", "tm", "ia64", + "pbe", + /* 1*32 */ + "syscall", "mp", "nx", "mmxext", "fxsr_opt", "pdpe1gb", "rdtscp", "lm", + "3dnowext", "3dnow", + /* 2*32 */ + "recovery", "longrun", "lrti", + /* 3*32 */ + "cxmmx", "k6_mtrr", "cyrix_arr", "centaur_mcr", "k8", "k7", "p3", "p4", + "constant_tsc", "up", "fxsave_leak", "arch_perfmon", "pebs", "bts", + "syscall32", "sysenter32", "rep_good", "mfence_rdtsc", "lfence_rdtsc", + "11ap", "nopl", "xtopology", "tsc_reliable", "nonstop_tsc", + "clflush_monitor", "extd_apicid", "amd_dcm", "aperfmperf", "eagerfpu", + /* 4*32 */ + "pni", "pclmulqdq", "dtes64", "monitor", "ds_cpl", "vmx", "smx", "est", + "tm2", "ssse3", "cid", "fma", "cx16", "xtpr", "pdcm", "pcid", "dca", + "sse4_1", "sse4_2", "x2apic", "movbe", "popcnt", "tsc_deadline_timer", + "aes", "xsave", "osxsave", "avx", "f16c", "rdrand", "hypervisor", + /* 5*32 */ + "rng", "rng_en", "ace", "ace_en", "ace2","ace2_en", "phe", "phe_en", + "pmm", "pmm_en", + /* 6*32 */ + "lahf_lm", "cmp_legacy", "svm", "extapic", "cr8_legacy", "abm", + "sse4a", "misalignsse", "3dnowprefetch", "osvw", "ibs", "xop", + "skinit", "wdt", "lwp", "fma4", "tce", "nodeid_msr", "tbm", "topoext", + "perfctr_core", + /* 7*32 */ + "ida", "arat", "cpb", "epb", "xsaveopt", "pln", "pts", "dtherm", + "hw_pstate", + /* 8*32 */ + "tpr_shadow", "vnmi", "flexpriority", "ept", "vpid", "npt", "lbrv", + "svm_lock", "nrip_save", "tsc_scale", "vmcb_clean", "flushbyasid", + "decodeassists", "pausefilter", "pfthreshold", + /* 9*32 */ + "fsgsbase", "tsc_adjust", "bmi1", "hle", "avx2", "smep", "bmi2", + "erms", "invpcid", "rtm", "rdseed", "adx", "smap" } ] + uint16 Flags[]; +}; + +[ Provider("cmpi:cmpiLMI_ProcessorCapabilities") ] +class LMI_ProcessorCapabilities: CIM_ProcessorCapabilities +{ +}; + +[ Provider("cmpi:cmpiLMI_ProcessorElementCapabilities"), Association ] +class LMI_ProcessorElementCapabilities: CIM_ElementCapabilities +{ + [Override("ManagedElement")] + LMI_Processor REF ManagedElement; + + [Override("Capabilities")] + LMI_ProcessorCapabilities REF Capabilities; +}; + +[ Provider("cmpi:cmpiLMI_ProcessorCacheMemory") ] +class LMI_ProcessorCacheMemory: CIM_Memory +{ +}; + +[ Provider("cmpi:cmpiLMI_AssociatedProcessorCacheMemory"), Association ] +class LMI_AssociatedProcessorCacheMemory: CIM_AssociatedCacheMemory +{ + [Override("Antecedent")] + LMI_ProcessorCacheMemory REF Antecedent; + + [Override("Dependent")] + LMI_Processor REF Dependent; +}; + +[ Provider("cmpi:cmpiLMI_ProcessorChip") ] +class LMI_ProcessorChip: CIM_Chip +{ +}; + +[ Provider("cmpi:cmpiLMI_ProcessorChipRealizes"), Association ] +class LMI_ProcessorChipRealizes: CIM_Realizes +{ + [Override("Antecedent")] + LMI_ProcessorChip REF Antecedent; + + [Override("Dependent")] + LMI_Processor REF Dependent; +}; + +/****************************************************************************** + * Memory + */ + +[ Provider("cmpi:cmpiLMI_Memory") ] +class LMI_Memory: CIM_Memory +{ +}; + +/****************************************************************************** + * PCI Devices + */ + +[ Provider("cmpi:cmpiLMI_PCIDevice") ] +class LMI_PCIDevice: CIM_PCIDevice +{ + [ Description("Name of the subsystem") ] + string SubsystemName; + + [ Description("Name of the subsystem vendor") ] + string SubsystemVendorName; + + [ Description("Name of the device") ] + string PCIDeviceName; + + [ Description("Name of the vendor") ] + string VendorName; +}; diff --git a/mof/60_LMI_LogicalFile.mof b/mof/60_LMI_LogicalFile.mof new file mode 100644 index 0000000..7ae2e82 --- /dev/null +++ b/mof/60_LMI_LogicalFile.mof @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Jan Synacek + */ + + +class LMI_UnixFile : CIM_UnixFile +{ +}; + +class LMI_DataFile : CIM_DataFile +{ +}; + +class LMI_UnixDeviceFile : CIM_UnixDeviceFile +{ +}; + +class LMI_UnixDirectory : CIM_UnixDirectory +{ +}; + +class LMI_FIFOPipeFile : CIM_FIFOPipeFile +{ +}; + +class LMI_SymbolicLink : CIM_SymbolicLink +{ +}; + +class LMI_UnixSocket : CIM_DataFile +{ +}; + +class LMI_FileIdentity : CIM_FileIdentity +{ +}; + +class LMI_DirectoryContainsFile : CIM_DirectoryContainsFile +{ +}; + +[ Association, + Provider("cmpi:cmpiLMI_LogicalFile") ] +class LMI_RootDirectory: CIM_Component +{ + [ Override("GroupComponent"), Min(1), Max(1), + Description("The hosting System.") ] + CIM_ComputerSystem REF GroupComponent; + + [ Override("PartComponent"), Min(1), Max(1), + Description("The root directory on the System") ] + LMI_UnixDirectory REF PartComponent; +}; +/* vi: set et: */ diff --git a/mof/60_LMI_PowerManagement.mof b/mof/60_LMI_PowerManagement.mof new file mode 100644 index 0000000..c285f79 --- /dev/null +++ b/mof/60_LMI_PowerManagement.mof @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Radek Novacek + */ + +[ Provider("cmpi:cmpiLMI_PowerManagement") ] +class LMI_PowerManagementService: CIM_PowerManagementService +{ +}; + +[ Association, + Provider("cmpi:cmpiLMI_PowerManagement") ] +class LMI_AssociatedPowerManagementService: CIM_AssociatedPowerManagementService +{ + [ Override("ServiceProvided"), Max(1), + Description("The Service that is available.") ] + LMI_PowerManagementService REF ServiceProvided; + + [ Override("UserOfService"), + Description("The ManagedElement that can use the Service.") ] + CIM_ComputerSystem REF UserOfService; +}; + +[ Provider("cmpi:cmpiLMI_PowerManagement") ] +class LMI_PowerManagementCapabilities: CIM_PowerManagementCapabilities +{ +}; + +[ Association, + Provider("cmpi:cmpiLMI_PowerManagement") ] +class LMI_HostedPowerManagementService: CIM_HostedService +{ + [ Override("Antecedent"), Min(1), Max(1), + Description("The hosting System.") ] + CIM_ComputerSystem REF Antecedent; + + [ Override("Dependent"), Weak, + Description("The Service hosted on the System.") ] + LMI_PowerManagementService REF Dependent; +}; + +[ Provider("cmpi:cmpiLMI_PowerManagement") ] +class LMI_ConcreteJob: CIM_ConcreteJob +{ +}; + +[ Provider("cmpi:cmpiLMI_PowerManagement") ] +class LMI_ElementCapabilities: CIM_ElementCapabilities +{ + [ Key, Min(1), Description("The managed element.") ] + LMI_PowerManagementService REF ManagedElement; + + [ Key, + Description("The Capabilities object associated with the element.") ] + LMI_PowerManagementCapabilities REF Capabilities; +}; diff --git a/mof/60_LMI_Service.mof b/mof/60_LMI_Service.mof new file mode 100644 index 0000000..d6c3715 --- /dev/null +++ b/mof/60_LMI_Service.mof @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Vitezslav Crhonek + */ + +[ Description("Class representing Linux Service"), + Provider("cmpi:cmpiLMI_Service") ] +class LMI_Service: CIM_Service +{ + [ Override("StartService") ] + uint32 StartService(); + + [ Override("StopService") ] + uint32 StopService(); + + uint32 ReloadService(); + + uint32 RestartService(); + + uint32 TryRestartService(); + + uint32 CondRestartService(); + + uint32 ReloadOrRestartService(); + + uint32 ReloadOrTryRestartService(); + + uint32 TurnServiceOn(); + + uint32 TurnServiceOff(); +}; diff --git a/mof/60_LMI_Software.mof b/mof/60_LMI_Software.mof new file mode 100644 index 0000000..9f2f2ce --- /dev/null +++ b/mof/60_LMI_Software.mof @@ -0,0 +1,690 @@ +/* + * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Michal Minar + */ + +#pragma locale ("en_US") +//#pragma namespace ("root/cimv2") + +class LMI_SoftwareIdentity : CIM_SoftwareIdentity { + + [Implemented(true), Override("InstanceID"), Description( + "Unique identifier for installed or available package." + " It's composed of OrgID and LocalID separated by ':', where" + " is LMI and LocalID is PKG:. " + " is a string representing rpm package. Letters in NEVRA stand" + " for name, epoch, version, release and architecture.")] + string InstanceID; + + [Implemented(true), Override("Caption"), Description("Package's summary.")] + string Caption; + + [Implemented(true), Override("Classifications")] + uint16 Classifications[]; + + [Implemented(true), Override("Description"), Description( + "Package's description.")] + string Description; + + [Implemented(true), Override("ElementName"), Description( + "Package's NEVRA string. That is also part of InstanceID.")] + string ElementName; + + [Implemented(true), Override("InstallDate")] + datetime InstallDate; + + [Implemented(true), Override("IsEntity")] + boolean IsEntity; + + [Implemented(true), Override("Name"), Description( + "Name of package. This does not uniquely identify package" + " installed on computer system.")] + string Name; + + [Implemented(true), Override("TargetTypes")] + string TargetTypes[]; + + [Implemented(true), Override("VersionString"), Description( + "Package's EVRA, in format: " + ":-.")] + string VersionString; + + [Implemented(true), Description("Package's epoch.")] + uint32 Epoch; + + [Implemented(true), Description("Package's version.")] + string Version; + + [Implemented(true), Description("Package's release.")] + string Release; + + [Implemented(true), Description("Package's architecture.")] + string Architecture; + +}; + +class LMI_SystemSoftwareCollection : CIM_SystemSpecificCollection { + + [Implemented(true), Override("InstanceID")] + string InstanceID; + + [Implemented(true), Override("Caption")] + string Caption; + +}; + +[Association] +class LMI_HostedSoftwareCollection : CIM_HostedCollection { + + [Override("Antecedent")] + Linux_ComputerSystem REF Antecedent; + + [Override("Dependent")] + LMI_SystemSoftwareCollection REF Dependent; + +}; + +[Association] +class LMI_MemberOfSoftwareCollection : CIM_MemberOfCollection { + + [Override("Collection")] + LMI_SystemSoftwareCollection REF Collection; + + [Override("Member")] + LMI_SoftwareIdentity REF Member; + +}; + +[Association] +class LMI_InstalledSoftwareIdentity : CIM_InstalledSoftwareIdentity { + + [Override("InstalledSoftware")] + LMI_SoftwareIdentity REF InstalledSoftware; + + [Override("System")] + Linux_ComputerSystem REF System; + +}; + +class LMI_SoftwareIdentityResource : CIM_SoftwareIdentityResource { + + [Implemented(true), Override("CreationClassName")] + string CreationClassName; + + [Implemented(true), Override("Name"), Description( + "Repository id. A unique name representing repository of" + " system.")] + string Name; + + [Implemented(true), Override("SystemCreationClassName")] + string SystemCreationClassName; + + [Implemented(true), Override("SystemName")] + string SystemName; + + [Implemented(true), Override("AccessContext")] + uint16 AccessContext; + + [Implemented(true), Override("AccessInfo")] + string AccessInfo; + + [Implemented(true), Override("AvailableRequestedStates")] + uint16 AvailableRequestedStates[]; + + [Implemented(true), Override("Caption"), Description( + "A human readable string describing the repository.")] + string Caption; + + [Implemented(true), Description( + "Relative cost of accessing this repository." + " Useful for weighing one repo's packages as greater/less" + " than any other.")] + sint32 Cost; + + [Implemented(true), Override("Description")] + string Description; + + [Implemented(true), Override("ElementName")] + string ElementName; + + [Implemented(true), Override("EnabledDefault")] + uint16 EnabledDefault; + + [Implemented(true), Override("EnabledState")] + uint16 EnabledState; + + [Implemented(true), Override("ExtendedResourceType")] + uint16 ExtendedResourceType; + + [Implemented(true), Override("Generation")] + uint64 Generation; + + [Implemented(true), Override("HealthState")] + uint16 HealthState; + + [Implemented(true), Description( + "Whether or not a GPG signature check should be performed" + " on the packages gotten from this repository.")] + boolean GPGCheck; + + [Implemented(true), Override("InfoFormat")] + uint16 InfoFormat; + + [Implemented(true), Override("InstanceID")] + string InstanceID; + + [Implemented(true), Description( + "URL to a file containing list of base URLS to mirrors" + " of this repository. http://, ftp:// and file:// schemas" + " are supported. This can contain special variables" + " prefixed with $, which are substituted for system values." + " These include $releasever - defaults to the version of" + " \"redhat-release\" package, $arch - architecture of system," + " $basearch - base architecture of system ($arch == \"i686\", then" + " $basearch == \"i386\", $uuid - unique but persisent uuid for this" + " machine.")] + string MirrorList; + + [Implemented(true), Override("OperationalStatus")] + uint16 OperationalStatus[]; + + [Implemented(true), Override("OtherAccessContext")] + string OtherAccessContext; + + [Implemented(true), Override("PrimaryStatus")] + uint16 PrimaryStatus; + + [Implemented(true), Description( + "Whether or not a GPG signature check should be performed" + " on the repodata from this repository.")] + boolean RepoGPGCheck; + + [Implemented(true), Override("RequestedState")] + uint16 RequestedState; + + [Implemented(true), Override("ResourceType")] + uint16 ResourceType; + + [Implemented(true), Override("StatusDescriptions")] + string StatusDescriptions[]; + + [Implemented(true), Override("TimeOfLastStateChange")] + datetime TimeOfLastStateChange; + + [Implemented(true), Description( + "Time of the repository's last update on server.")] + datetime TimeOfLastUpdate; + + [Implemented(true), Override("TransitioningToState")] + uint16 TransitioningToState; + + [Implemented(true), Override("RequestStateChange")] + uint32 RequestStateChange( + [IN, Description ( + "The state requested for the element. This " + "information will be placed into the RequestedState " + "property of the instance if the return code of the " + "RequestStateChange method is 0 (\'Completed with " + "No Error\'), or 4096 (0x1000) (\'Job Started\'). " + "Refer to the description of the EnabledState and " + "RequestedState properties for the detailed " + "explanations of the RequestedState values." ), + ValueMap { "2", "3", "4", "6", "7", "8", "9", "10", + "11", "..", "32768..65535" }, + Values { "Enabled", "Disabled", "Shut Down", "Offline", + "Test", "Defer", "Quiesce", "Reboot", "Reset", + "DMTF Reserved", "Vendor Reserved" }, + ModelCorrespondence { + "CIM_EnabledLogicalElement.RequestedState" }] + uint16 RequestedState, + [IN ( false ), OUT, Description ( + "May contain a reference to the ConcreteJob created " + "to track the state transition initiated by the " + "method invocation." )] + CIM_ConcreteJob REF Job, + [IN, Description ( + "A timeout period that specifies the maximum amount " + "of time that the client expects the transition to " + "the new state to take. The interval format must be " + "used to specify the TimeoutPeriod. A value of 0 or " + "a null parameter indicates that the client has no " + "time requirements for the transition. \n" + "If this property does not contain 0 or null and " + "the implementation does not support this " + "parameter, a return code of \'Use Of Timeout " + "Parameter Not Supported\' shall be returned." )] + datetime TimeoutPeriod); + +}; + +[Association] +class LMI_ResourceForSoftwareIdentity : CIM_SAPAvailableForElement { + + [Override("AvailableSAP")] + LMI_SoftwareIdentityResource REF AvailableSAP; + + [Override("ManagedElement")] + LMI_SoftwareIdentity REF ManagedElement; + +}; + +[Association] +class LMI_HostedSoftwareIdentityResource : CIM_HostedAccessPoint { + + [Override("Antecedent")] + Linux_ComputerSystem REF Antecedent; + + [Override("Dependent")] + LMI_SoftwareIdentityResource REF Dependent; + +}; + +class LMI_SoftwareInstallationService : CIM_SoftwareInstallationService { + + [Implemented(true), Override("CreationClassName")] + string CreationClassName; + + [Implemented(true), Override("Name")] + string Name; + + [Implemented(true), Override("SystemCreationClassName")] + string SystemCreationClassName; + + [Implemented(true), Override("SystemName")] + string SystemName; + + [Implemented(true), Override("Caption")] + string Caption; + + [Implemented(true), Override("CommunicationStatus")] + uint16 CommunicationStatus; + + [Implemented(true), Override("Description")] + string Description; + + [Implemented(true), Override("DetailedStatus")] + uint16 DetailedStatus; + + [Implemented(true), Override("EnabledDefault")] + uint16 EnabledDefault; + + [Implemented(true), Override("EnabledState")] + uint16 EnabledState; + + [Implemented(true), Override("HealthState")] + uint16 HealthState; + + [Implemented(true), Override("InstanceID")] + string InstanceID; + + [Implemented(true), Override("OperatingStatus")] + uint16 OperatingStatus; + + [Implemented(true), Override("OperationalStatus")] + uint16 OperationalStatus[]; + + [Implemented(true), Override("PrimaryStatus")] + uint16 PrimaryStatus; + + [Implemented(true), Override("PrimaryStatus")] + uint16 RequestedState; + + [Implemented(true), Override("Started")] + boolean Started; + + [Implemented(true), Override("TransitioningToState")] + uint16 TransitioningToState; + + [Implemented(True), Override("CheckSoftwareIdentity")] + uint32 CheckSoftwareIdentity( + [IN, Description ( + "Reference to the SoftwareIdentity to be checked." )] + LMI_SoftwareIdentity REF Source, + [IN, Description ( + "Reference to the ManagedElement that the Software " + "Identity is going to be installed in (or updated)." )] + CIM_ManagedElement REF Target, + [IN, Description ( + "Reference to the Collection to which the Software " + "Identity will be added." )] + LMI_SystemSoftwareCollection REF Collection, + [IN ( false ), OUT, Description ( + "The parameter describes the characteristics of the " + "installation/update that will take place if the " + "Source Software Identity is installed: \n" + "Target automatic reset: The target element will " + "automatically reset once the installation is " + "complete. \n" + "System automatic reset: The containing system of " + "the target ManagedElement (normally a logical " + "device or the system itself) will automatically " + "reset/reboot once the installation is complete. \n" + "Separate target reset required: " + "EnabledLogicalElement.RequestStateChange MUST be " + "used to reset the target element after the " + "SoftwareIdentity is installed. \n" + "Separate system reset required: " + "EnabledLogicalElement.RequestStateChange MUST be " + "used to reset/reboot the containing system of the " + "target ManagedElement after the SoftwareIdentity " + "is installed. \n" + "Manual Reboot Required: The system MUST be " + "manually rebooted by the user. \n" + "No reboot required : No reboot is required after " + "installation. \n" + "User Intervention Recomended : It is recommended " + "that a user confirm installation of this " + "SoftwareIdentity. Inappropriate application MAY " + "have serious consequences. \n" + "MAY be added to specified collection : The " + "SoftwareIndentity MAY be added to specified " + "Collection." ), + ValueMap { "2", "3", "4", "5", "6", "7", "8", "9", + "..", "0x7FFF..0xFFFF" }, + Values { "Target automatic reset", + "System automatic reset", + "Separate target reset Required", + "Separate system reset Required", + "Manual Reboot Required", "No Reboot Required", + "User Intervention recommended", + "MAY be added to specified Collection", + "DMTF Reserved", "Vendor Specific" }] + uint16 InstallCharacteristics[]); + + [Implemented(True), Override("InstallFromSoftwareIdentity")] + uint32 InstallFromSoftwareIdentity( + [IN ( false ), OUT, Description ( + "Reference to the job (may be null if job completed)." + )] + LMI_SoftwareInstallationJob REF Job, + [IN, Description ( + "Options to control the install process.\n" + "Defer target/system reset : do not automatically " + "reset the target/system.\n" + "Force installation : Force the installation of the " + "same or an older SoftwareIdentity. Install: " + "Perform an installation of this software on the " + "managed element.\n" + "Update: Perform an update of this software on the " + "managed element.\n" + "Repair: Perform a repair of the installation of " + "this software on the managed element by forcing " + "all the files required for installing the software " + "to be reinstalled.\n" + "Reboot: Reboot or reset the system immediately " + "after the install or update of this software, if " + "the install or the update requires a reboot or reset.\n" + "Password: Password will be specified as clear text " + "without any encryption for performing the install " + "or update.\n" + "Uninstall: Uninstall the software on the managed element.\n" + "Log: Create a log for the install or update of the software.\n" + "SilentMode: Perform the install or update without " + "displaying any user interface.\n" + "AdministrativeMode: Perform the install or update " + "of the software in the administrative mode. " + "ScheduleInstallAt: Indicates the time at which " + "theinstall or update of the software will occur." ), + ValueMap { "2", "3", "4", "5", "6", "7", "8", "9", + "10", "11", "12", "13", "..", "32768..65535" }, + Values { "Defer target/system reset", + "Force installation", "Install", "Update", "Repair", + "Reboot", "Password", "Uninstall", "Log", + "SilentMode", "AdministrativeMode", + "ScheduleInstallAt", "DMTF Reserved", + "Vendor Specific" }, + ArrayType ( "Indexed" ), + ModelCorrespondence { + "CIM_SoftwareInstallationService.InstallOptionsValues[]", + "CIM_SoftwareInstallationServiceCapabilities.SupportedInstallOptions[]" }] + uint16 InstallOptions[], + [IN, Description ( + "InstallOptionsValues is an array of strings " + "providing additional information to InstallOptions " + "for the method to install the software. Each entry " + "of this array is related to the entry in " + "InstallOptions that is located at the same index " + "providing additional information for " + "InstallOptions. \n" + "If the index in InstallOptions has the value " + "\"Password \" then a value at the corresponding " + "index of InstallOptionValues shall not be NULL. \n" + "If the index in InstallOptions has the value " + "\"ScheduleInstallAt\" then the value at the " + "corresponding index of InstallOptionValues shall " + "not be NULL and shall be in the datetime type " + "format. \n" + "If the index in InstallOptions has the value \"Log " + "\" then a value at the corresponding index of " + "InstallOptionValues may be NULL. \n" + "If the index in InstallOptions has the value " + "\"Defer target/system reset\", \"Force " + "installation\",\"Install\", \"Update\", \"Repair\" " + "or \"Reboot\" then a value at the corresponding " + "index of InstallOptionValues shall be NULL." ), + ArrayType ( "Indexed" ), + ModelCorrespondence { + "CIM_SoftwareInstallationService.InstallOptions[]" }] + string InstallOptionsValues[], + [IN, Description ( + "Reference to the source of the install." )] + LMI_SoftwareIdentity REF Source, + [IN, Description ( + "The installation target. If NULL then the " + "SOftwareIdentity will be added to Collection only. " + "The underlying implementation is expected to be " + "able to obtain any necessary metadata from the " + "Software Identity." )] + CIM_ManagedElement REF Target, + [IN, Description ( + "Reference to the Collection to which the Software " + "Identity SHALL be added. If NULL then the Software " + "Identity will not be added to a Collection." )] + LMI_SystemSoftwareCollection REF Collection); + + [Implemented(True), Override("InstallFromURI")] + uint32 InstallFromURI( + [IN ( false ), OUT, Description ( + "Reference to the job (may be null if job completed)." + )] + LMI_SoftwareInstallationJob REF Job, + [IN, Description ( + "A URI for the software based on RFC 2079." )] + string URI, + [IN, Description ( "The installation target." )] + CIM_ManagedElement REF Target, + [IN, Description ( + "Options to control the install process. \n" + "See the InstallOptions parameter of the " + "SoftwareInstallationService.InstallFromSoftwareIdentity " + "method for the description of these values." ), + ValueMap { "2", "3", "4", "5", "6", "7", "8", "9", + "10", "11", "12", "13", "..", "32768..65535" }, + Values { "Defer target/system reset", + "Force installation", "Install", "Update", "Repair", + "Reboot", "Password", "Uninstall", "Log", + "SilentMode", "AdministrativeMode", + "ScheduleInstallAt", "DMTF Reserved", + "Vendor Specific" }, + ArrayType ( "Indexed" ), + ModelCorrespondence { + "CIM_SoftwareInstallationService.InstallFromURI.InstallOptionsValues[]", + "CIM_SoftwareInstallationServiceCapabilities.SupportedInstallOptions[]" }] + uint16 InstallOptions[], + [IN, Description ( + "InstallOptionsValues is an array of strings " + "providing additionalinformation to InstallOptions " + "for the method to install the software. Each entry " + "of this array is related to the entry in " + "InstallOptions that is located at the same index " + "providing additional information for " + "InstallOptions. \n" + "For further information on the use of " + "InstallOptionsValues parameter, see the " + "description of the InstallOptionsValues parameter " + "of the " + "SoftwareInstallationService.InstallFromSoftwareIdentity " + "method." ), + ArrayType ( "Indexed" ), + ModelCorrespondence { + "CIM_SoftwareInstallationService.InstallFromByteStream.InstallOptions[]" }] + string InstallOptionsValues[]); + +}; + +class LMI_SoftwareInstallationServiceCapabilities : + CIM_SoftwareInstallationServiceCapabilities { + + [Implemented(true), Override("InstanceID")] + string InstanceID; + + [Implemented(true), Override("CanAddToCollection")] + boolean CanAddToCollection; + + [Implemented(true), Override("Caption")] + string SupportedTargetTypes[]; + + [Implemented(true), Override("SupportedInstallOptions")] + uint16 SupportedInstallOptions[]; + + [Implemented(true), Override("Description")] + string Description; + + [Implemented(true), Override("SupportedURISchemes")] + uint16 SupportedURISchemes[]; + + [Implemented(true), Override("SupportedAsynchronousActions")] + uint16 SupportedAsynchronousActions[]; + + [Implemented(true), Override("SupportedSynchronousActions")] + uint16 SupportedSynchronousActions[]; + +}; + +[Association] +class LMI_AssociatedSoftwareInstallationServiceCapabilities : + CIM_ElementCapabilities { + + [Override("Capabilities")] + LMI_SoftwareInstallationServiceCapabilities REF Capabilities; + + [Override("ManagedElement")] + LMI_SoftwareInstallationService REF ManagedElement; + + [Implemented(true), Override("Characteristics")] + uint16 Characteristics[]; + +}; + +[Association] +class LMI_HostedSoftwareInstallationService : CIM_HostedService { + + [Override("Antecedent")] + Linux_ComputerSystem REF Antecedent; + + [Override("Dependent")] + LMI_SoftwareInstallationService REF Dependent; + +}; + +[Association] +class LMI_SoftwareInstallationServiceAffectsElement : + CIM_ServiceAffectsElement { + + [Override("AffectingElement")] + LMI_SoftwareInstallationService REF AffectingElement; + + [Implemented(true), Override("ElementEffects")] + uint16 ElementEffects[]; + + [Implemented(true), Override("OtherElementEffectsDescriptions")] + string OtherElementEffectsDescriptions[]; + +}; + +class LMI_SoftwareInstallationJob : LMI_ConcreteJob { + + [Implemented(true), Override("InstanceID")] + string InstanceID; + + [Implemented(true), Override("Caption")] + string Caption; + + [Implemented(true), Override("CommunicationStatus")] + uint16 CommunicationStatus; + + [Implemented(true), Override("Description")] + string Description; + + [Implemented(true), Override("ErrorCode")] + uint16 ErrorCode; + + [Implemented(true), Override("JobStatus")] + string JobStatus; + + [Implemented(true), Override("MethodName")] + string MethodName; + + [Implemented(true), Override("Priority")] + uint32 Priority; + + [Implemented(true), Override("RecoveryAction")] + uint16 RecoveryAction; + +}; + +class LMI_SoftwareMethodResult : LMI_MethodResult { +}; + +[Association] +class LMI_AssociatedSoftwareJobMethodResult : LMI_AssociatedJobMethodResult { + + [Override("Job")] + LMI_SoftwareInstallationJob REF Job; + + [Override("JobParameters")] + LMI_SoftwareMethodResult REF JobParameters; + +}; + +[Association] +class LMI_OwningSoftwareJobElement : LMI_OwningJobElement { + + [Override("OwningElement")] + LMI_SoftwareInstallationService REF OwningElement; + + [Override("OwnedElement")] + LMI_SoftwareInstallationJob REF OwnedElement; + +}; + +[Association] +class LMI_AffectedSoftwareJobElement : LMI_AffectedJobElement { + + [Override("AffectingElement")] + LMI_SoftwareInstallationJob REF AffectingElement; + +}; + +[Indication] +class LMI_SoftwareInstCreation : CIM_InstCreation { +}; + +[Indication] +class LMI_SoftwareInstModification : CIM_InstModification { +}; diff --git a/mof/70_LMI_SoftwareIndicationFilters.mof b/mof/70_LMI_SoftwareIndicationFilters.mof new file mode 100644 index 0000000..e3af599 --- /dev/null +++ b/mof/70_LMI_SoftwareIndicationFilters.mof @@ -0,0 +1,104 @@ +/* + * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Michal Minar + * + * These are static CIM_IndicationFilter instances used by software managent + * providers. They should be installed upon providers installation. + * They should go to root/interop namespace for sfcb and root/PG_Interop + * for pegasus. + */ + +instance of CIM_IndicationFilter { + CreationClassName = "CIM_IndicationFilter"; + SystemCreationClassName = "CIM_ComputerSystem"; + SystemName = "kvm-fedora18"; + Name = "LMI:LMI_SoftwareInstallationJob:PercentUpdated"; + Query = "SELECT * FROM CIM_InstModification WHERE " + "SourceInstance ISA LMI_SoftwareInstallationJob AND " + "SourceInstance.CIM_ConcreteJob::PercentComplete <> " + "PreviousInstance.CIM_ConcreteJob::PercentComplete"; + /* CIM: prefix required for pegasus */ + QueryLanguage = "CIM:CQL"; + Description = "Modification of Percentage Complete for a " + "Concrete Job."; + /* required for sfcb - but deprecated */ + SourceNamespace = "root/cimv2"; + SourceNamespaces = {"root/cimv2"}; +}; + +instance of CIM_IndicationFilter { + CreationClassName = "CIM_IndicationFilter"; + SystemCreationClassName = "CIM_ComputerSystem"; + SystemName = "kvm-fedora18"; + Name = "LMI:LMI_SoftwareInstallationJob:Succeeded"; + QueryLanguage = "CIM:CQL"; + Query = "SELECT * FROM CIM_InstModification WHERE " + "SourceInstance ISA LMI_SoftwareInstallationJob AND " + "SourceInstance.CIM_ConcreteJob::JobState" + " = 17" + /* This is not supported by sfcb: + * " = CIM_ConcreteJob.JobState#'Completed'" */; + SourceNamespace = "root/cimv2"; + SourceNamespaces = {"root/cimv2"}; +}; + +instance of CIM_IndicationFilter { + CreationClassName = "CIM_IndicationFilter"; + SystemCreationClassName = "CIM_ComputerSystem"; + SystemName = "kvm-fedora18"; + Name = "LMI:LMI_SoftwareInstallationJob:Failed"; + Query = "SELECT * FROM CIM_InstModification WHERE " + "SourceInstance ISA LMI_SoftwareInstallationJob AND " + "SourceInstance.CIM_ConcreteJob::JobState" + " = 10" + /* This is not supported by sfcb: + * "CIM_ConcreteJob.JobState#'Exception'" */; + QueryLanguage = "CIM:CQL"; + Description = "Modification of Operational Status for a " + "Concrete Job to 'Complete' and 'OK'."; + SourceNamespace = "root/cimv2"; + SourceNamespaces = {"root/cimv2"}; +}; + +instance of CIM_IndicationFilter { + CreationClassName = "CIM_IndicationFilter"; + SystemCreationClassName = "CIM_ComputerSystem"; + SystemName = "kvm-fedora18"; + Name = "LMI:LMI_SoftwareInstallationJob:Changed"; + Query = "SELECT * FROM CIM_InstModification WHERE " + "SourceInstance ISA LMI_SoftwareInstallationJob AND " + "SourceInstance.CIM_ConcreteJob::JobState <> " + "PreviousInstance.CIM_ConcreteJob::JobState"; + QueryLanguage = "CIM:CQL"; + Description = "Modification of Job State for a ConcreteJob."; + SourceNamespace = "root/cimv2"; + SourceNamespaces = {"root/cimv2"}; +}; + +instance of CIM_IndicationFilter { + CreationClassName = "CIM_IndicationFilter"; + SystemCreationClassName = "CIM_ComputerSystem"; + SystemName = "kvm-fedora18"; + Name = "LMI:LMI_SoftwareInstallationJob:Created"; + Query = "SELECT * FROM CIM_InstCreation WHERE" + " SourceInstance ISA LMI_SoftwareInstallationJob"; + QueryLanguage = "CIM:CQL"; + Description = "Creation of a ConcreteJob."; + SourceNamespace = "root/cimv2"; + SourceNamespaces = {"root/cimv2"}; +}; diff --git a/mof/LMI_Account.mof b/mof/LMI_Account.mof deleted file mode 100644 index d79db35..0000000 --- a/mof/LMI_Account.mof +++ /dev/null @@ -1,310 +0,0 @@ -/* - * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Authors: Roman Rakus - */ - -[ Description("Class representing Linux Account"), - Provider("cmpi:cmpiLMI_Account") -] -class LMI_Account: CIM_Account -{ - [ Description("User's home directory") ] - string HomeDirectory; - - [ Description("User's login shell") ] - string LoginShell; - - [ Description("The date when was password last changed") ] - datetime PasswordLastChange; - - [ Description("Minimum number of days between password change") ] - datetime PasswordPossibleChange; - - [ Description("Number of days of warning before password expires") ] - datetime PasswordExpirationWarning; - - [ Description("Maximum number of days between password change") ] - datetime PasswordInactivation; - - [ Description("The date of expiration of the account.") ] - datetime AccountExpiration; -}; - -[ Description("LMI_AccountManagementService creates, manages, and if necessary " - "destroys Linux Accounts on behalf of other SecurityServices."), - Provider("cmpi:cmpiLMI_Account") -] -class LMI_AccountManagementService: CIM_SecurityService -// It would be good to inherit from CIM_AccountManagementService -// however I don't if to create instance from embeddedinstance is a good way -{ - [ Description ( "Create a new account on the system") ] - uint32 CreateAccount( - [Required, IN, Description ( - "The scoping ComputerSystem in which to create the Account." - )] - CIM_ComputerSystem REF System, - [Required, IN, Description ( - "Desired user login name for the account to be created." ) ] - string Name, - [IN, Description ( - "GECOS information for new user" ) ] - string GECOS, - [IN, Description ( - "Set home directory for the user." ) ] - string HomeDirectory, - [IN, Description ( - "Wheter to create home directory." ) ] - boolean DontCreateHome, - [IN, Description ( - "Default shell for new user" ) ] - string Shell, - [IN, Description ( - "Pick a specific user id for new user" ) ] - uint32 UID, - [IN, Description ( - "Pick a specific group id for new user" ) ] - uint32 GID, - [IN, Description ( - "True for creating system account" ) ] - boolean SystemAccount, - [IN, Description ( - "Encryted password for new user" ) ] - string Password, - [IN, Description ( - "Whether to create group" ) ] - boolean DontCreateGroup, - [IN ( false ), OUT, Description ( - "Reference to the instance of CIM_Account created " - "when the method returns a value of 0." )] - CIM_Account REF Account, - [IN ( false ), OUT, Description ( - "Reference to the instances of CIM_Identity created " - "when the method returns a value of 0. NULL if no " - "such instances are created." )] - CIM_Identity REF Identities[]); - - [ Description ( "Create a new group on the system") ] - uint32 CreateGroup( - [Required, IN, Description ( - "The scoping ComputerSystem in which to create the Account." - )] - CIM_ComputerSystem REF System, - [Required, IN, Description ( - "Desired group name for the account to be created." ) ] - string Name, - [IN, Description ( - "Pick a specific group id for new user" ) ] - uint32 GID, - [IN, Description ( - "True for creating system account" ) ] - boolean SystemAccount, - [IN ( false ), OUT, Description ( - "Reference to the instance of CIM_Group created " - "when the method returns a value of 0." )] - CIM_Group REF Group, - [IN ( false ), OUT, Description ( - "Reference to the instances of CIM_Identity created " - "when the method returns a value of 0. NULL if no " - "such instances are created." )] - CIM_Identity REF Identities[]); - -}; - -[ Provider("cmpi:cmpiLMI_Account") ] -class LMI_AccountManagementCapabilities: CIM_AccountManagementCapabilities -{ -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_AccountOnSystem: CIM_AccountOnSystem -{ - [ Override("GroupComponent"), Min(1), Max(1), - Description("The hosting System.") ] - CIM_ComputerSystem REF GroupComponent; - - [ Override("PartComponent"), - Description("The managed Account on the System") ] - LMI_Account REF PartComponent; -}; - -[ Provider("cmpi:cmpiLMI_Account") ] -class LMI_AccountSettingData: CIM_AccountSettingData -{ -}; - -[ Provider("cmpi:cmpiLMI_Account") ] -class LMI_Identity: CIM_Identity -{ -}; - -[ Provider("cmpi:cmpiLMI_Account") ] -class LMI_Group: CIM_Group -{ -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_AssignedAccountIdentity: CIM_AssignedIdentity -{ - [ Override("IdentityInfo"), - Description("The managed Identity") ] - LMI_Identity REF IdentityInfo; - - [ Override("ManagedElement"), - Description("The managed Account on the System") ] - LMI_Account REF ManagedElement; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_AssignedGroupIdentity: CIM_AssignedIdentity -{ - [ Override("IdentityInfo"), - Description("The managed Identity") ] - LMI_Identity REF IdentityInfo; - - [ Override("ManagedElement"), - Description("The managed Group on the System") ] - LMI_Group REF ManagedElement; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_AccountManagementServiceCapabilities: CIM_ElementCapabilities -{ - [ Override("ManagedElement"), - Description("The Central Instance of Account Management") ] - LMI_AccountManagementService REF ManagedElement; - - [ Override("Capabilities"), - Description("The supported Capabilities for managing Linux Accounts") ] - LMI_AccountManagementCapabilities REF Capabilities; -}; - -[ Provider("cmpi:cmpiLMI_Account") ] -class LMI_EnabledAccountCapabilities: CIM_EnabledLogicalElementCapabilities -{ -}; - - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_AccountCapabilities: CIM_ElementCapabilities -{ - [ Override("ManagedElement"), - Description("The managed Account") ] - LMI_Account REF ManagedElement; - - [ Override("Capabilities"), - Description("The supported Capabilities for changing the state of the " - "Linux Account") ] - LMI_EnabledAccountCapabilities REF Capabilities; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_AccountManagementServiceSettingData: CIM_ElementSettingData -{ - [ Override("ManagedElement"), - Description("The Central Instance of Account management") ] - LMI_AccountManagementService REF ManagedElement; - - [ Override("SettingData"), - Description("The default enforced setting for new Accounts") ] - LMI_AccountSettingData REF SettingData; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_HostedAccountManagementService: CIM_HostedService -{ - [ Override("Antecedent"), - Description("The hosting System") ] - CIM_ComputerSystem REF Antecedent; - - [ Override("Dependent"), - Description("The Central Instance of Account management") ] - LMI_AccountManagementService REF Dependent; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_MemberOfGroup: CIM_MemberOfCollection -{ - [ Override("Collection"), - Description("The managed Group on the System") ] - LMI_Group REF Collection; - - [ Override("Member"), - Description("The managed Identity") ] - LMI_Identity REF Member; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_OwningGroup: CIM_OwningCollectionElement -{ - [ Override("OwningElement"), - Description("The hosting System") ] - CIM_ComputerSystem REF OwningElement; - - [ Override("OwnedElement"), - Description("The managed Group on the System") ] - LMI_Group REF OwnedElement; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_ServiceAffectsIdentity: CIM_ServiceAffectsElement -{ - [ Override("AffectingElement"), - Description("The Central Instance of Account management") ] - LMI_AccountManagementService REF AffectingElement; - - [ Override("AffectedElement"), - Description("The managed Identity") ] - LMI_Identity REF AffectedElement; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_SettingsDefineManagementCapabilities: CIM_SettingsDefineCapabilities -{ - [ Override("GroupComponent"), - Description("The Account Management Capabilities") ] - LMI_AccountManagementCapabilities REF GroupComponent; - - [ Override("PartComponent"), - Description("The default enforced setting for new Accounts") ] - LMI_AccountSettingData REF PartComponent; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Account") ] -class LMI_SettingsDefineAccountCapabilities: CIM_SettingsDefineCapabilities -{ - [ Override("GroupComponent"), - Description("The Account Capabilities") ] - LMI_EnabledAccountCapabilities REF GroupComponent; - - [ Override("PartComponent"), - Description("The default enforced setting for new Accounts") ] - LMI_AccountSettingData REF PartComponent; -}; diff --git a/mof/LMI_Fan.mof b/mof/LMI_Fan.mof deleted file mode 100644 index 3c964cf..0000000 --- a/mof/LMI_Fan.mof +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Authors: Michal Minar - */ - -[ Provider("cmpi:cmpiLMI_Fan") ] -class LMI_Fan: CIM_Fan -{ - [ Key, Override("DeviceID"), - Description("Uniquely identifies fan. It is a composition of " - "SysPath and Name glued with slash ('/').") ] - string DeviceID; - - [ Override("Name"), - Description("Name of fan provided by system.") ] - string Name; - - [ Description("Array of fan features, that are exposed through system " - " interface. In other words: those that are readible/writable."), - ValueMap { "1", "2", "3", "4", "5", "6", "7", "8" }, - Values { "MinSpeed", "MaxSpeed", "Divisor", "Pulses", "Beep", - "Alarm", "MinAlarm", "MaxAlarm" } - ] - uint16 AccessibleFeatures[]; - - [ Description("Minimum speed value."), Write, - Units("Revolutions per Minute") ] - uint64 MinSpeed; - - [ Description("Maximum speed value."), Write, - Units("Revolutions per Minute") ] - uint64 MaxSpeed; - - [ Description("Fan divisisor. It affects Minimum and Maximum speed value " - "and accuracy of readings. " - "The drivers account for the 'fan divisor' in their calculation " - "of RPM. So changing the fan divisor will NOT change the " - "nominal RPM reading, it will only affect the minimum and maximum " - "readings and the accuracy of the readings. " - "The actual formula is RPM = (60 * 22500) / (count * divisor)"), - Write ] - uint32 Divisor; - - [ Description("Number of tachometer pulses per fan revolution. " - "Integer value, typically between 1 and 4. " - "This value is a characteristic of the fan connected to the " - "device's input, so it has to be set in accordance with the fan " - "model."), - Write ] - uint32 Pulses; - - [ Description("This indicates, whether a PC's speaker should beep " - "when an alarm occurs."), - Write ] - boolean Beep; - - [ Description("ALARM warning indicating, that current speed is out of " - "range. This information is supplied by fan's chip driver.") ] - boolean Alarm; - - [ Description("ALARM warning indicating, that current speed is below " - "the critical level. This information is supplied by fan's chip " - "driver.") ] - boolean MinAlarm; - - [ Description("ALARM warning indicating, that current speed is above " - "the critical level. This information is supplied by fan's chip " - "driver.") ] - boolean MaxAlarm; -}; - -[ Provider("cmpi:cmpiLMI_Fan") ] -class LMI_FanSensor: CIM_NumericSensor -{ - [ Key, Override("DeviceID"), - Description("Uniquely identifies fan. It is a composition of " - "SysPath and Name glued with slash ('/').") ] - string DeviceID; - - [ Override("Name"), - Description("Name of fan provided by system.") ] - string Name; -}; - -[ Association, - Provider("cmpi:cmpiLMI_Fan") ] -class LMI_FanAssociatedSensor: CIM_AssociatedSensor -{ - [ Override("Antecedent") ] - LMI_FanSensor REF Antecedent; - - [ Override("Dependent") ] - LMI_Fan REF Dependent; -}; diff --git a/mof/LMI_Hardware.mof b/mof/LMI_Hardware.mof deleted file mode 100644 index 3ceb886..0000000 --- a/mof/LMI_Hardware.mof +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright (C) 2013 Red Hat, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Authors: Tomas Smetana - * Peter Schiffer - */ - -/****************************************************************************** - * Processor - */ - -[ Provider("cmpi:cmpiLMI_Processor") ] -class LMI_Processor: CIM_Processor -{ - [ Description("System architecture.") ] - string Architecture; - - /* Added "Multi-Core" characteristic from dmidecode program. */ - [ Override("Characteristics"), - ValueMap { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9..32567", - "32568", "32569..65535" }, - Values { "Unknown", "DMTF Reserved", "64-bit Capable", "32-bit Capable", - "Enhanced Virtualization", "Hardware Thread", "NX-bit", - "Power/Performance Control", "Core Frequency Boosting", - "DMTF Reserved", "Multi-Core", "Vendor Reserved" } ] - uint16 Characteristics[]; - - /* Flag IDs and names are based on: - linux-3.8/arch/x86/include/asm/cpufeature.h */ - [ Description ("Flags supported by Processor. " - "(Available only for x86 architecture.)"), - ValueMap { - /* 0*32 */ - "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "11", "12", "13", - "14", "15", "16", "17", "18", "19", "21", "22", "23", "24", "25", "26", - "27", "28", "29", "30", "31", - /* 1*32 */ - "43", "51", "52", "54", "57", "58", "59", "61", "62", "63", - /* 2*32 */ - "64", "65", "67", - /* 3*32 */ - "96", "97", "98", "99", "100", "101", "102", "103", "104", "105", - "106", "107", "108", "109", "110", "111", "112", "113", "114", "115", - "116", "118", "119", "120", "121", "122", "123", "124", "125", - /* 4*32 */ - "128", "129", "130", "131", "132", "133", "134", "135", "136", "137", - "138", "140", "141", "142", "143", "145", "146", "147", "148", "149", - "150", "151", "152", "153", "154", "155", "156", "157", "158", "159", - /* 5*32 */ - "162", "163", "166", "167", "168", "169", "170", "171", "172", "173", - /* 6*32 */ - "192", "193", "194", "195", "196", "197", "198", "199", "200", "201", - "202", "203", "204", "205", "207", "208", "209", "211", "213", "214", - "215", - /* 7*32 */ - "224", "225", "226", "227", "228", "229", "230", "231", "232", - /* 8*32 */ - "256", "257", "258", "259", "260", "261", "262", "263", "264", "265", - "266", "267", "268", "269", "270", - /* 9*32 */ - "288", "289", "291", "292", "293", "295", "296", "297", "298", "299", - "306", "307", "308" }, - Values { - /* 0*32 */ - "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce", "cx8", "apic", - "sep", "mtrr", "pge", "mca", "cmov", "pat", "pse36", "pn", "clflush", - "dts", "acpi", "mmx", "fxsr", "sse", "sse2", "ss", "ht", "tm", "ia64", - "pbe", - /* 1*32 */ - "syscall", "mp", "nx", "mmxext", "fxsr_opt", "pdpe1gb", "rdtscp", "lm", - "3dnowext", "3dnow", - /* 2*32 */ - "recovery", "longrun", "lrti", - /* 3*32 */ - "cxmmx", "k6_mtrr", "cyrix_arr", "centaur_mcr", "k8", "k7", "p3", "p4", - "constant_tsc", "up", "fxsave_leak", "arch_perfmon", "pebs", "bts", - "syscall32", "sysenter32", "rep_good", "mfence_rdtsc", "lfence_rdtsc", - "11ap", "nopl", "xtopology", "tsc_reliable", "nonstop_tsc", - "clflush_monitor", "extd_apicid", "amd_dcm", "aperfmperf", "eagerfpu", - /* 4*32 */ - "pni", "pclmulqdq", "dtes64", "monitor", "ds_cpl", "vmx", "smx", "est", - "tm2", "ssse3", "cid", "fma", "cx16", "xtpr", "pdcm", "pcid", "dca", - "sse4_1", "sse4_2", "x2apic", "movbe", "popcnt", "tsc_deadline_timer", - "aes", "xsave", "osxsave", "avx", "f16c", "rdrand", "hypervisor", - /* 5*32 */ - "rng", "rng_en", "ace", "ace_en", "ace2","ace2_en", "phe", "phe_en", - "pmm", "pmm_en", - /* 6*32 */ - "lahf_lm", "cmp_legacy", "svm", "extapic", "cr8_legacy", "abm", - "sse4a", "misalignsse", "3dnowprefetch", "osvw", "ibs", "xop", - "skinit", "wdt", "lwp", "fma4", "tce", "nodeid_msr", "tbm", "topoext", - "perfctr_core", - /* 7*32 */ - "ida", "arat", "cpb", "epb", "xsaveopt", "pln", "pts", "dtherm", - "hw_pstate", - /* 8*32 */ - "tpr_shadow", "vnmi", "flexpriority", "ept", "vpid", "npt", "lbrv", - "svm_lock", "nrip_save", "tsc_scale", "vmcb_clean", "flushbyasid", - "decodeassists", "pausefilter", "pfthreshold", - /* 9*32 */ - "fsgsbase", "tsc_adjust", "bmi1", "hle", "avx2", "smep", "bmi2", - "erms", "invpcid", "rtm", "rdseed", "adx", "smap" } ] - uint16 Flags[]; -}; - -[ Provider("cmpi:cmpiLMI_ProcessorCapabilities") ] -class LMI_ProcessorCapabilities: CIM_ProcessorCapabilities -{ -}; - -[ Provider("cmpi:cmpiLMI_ProcessorElementCapabilities"), Association ] -class LMI_ProcessorElementCapabilities: CIM_ElementCapabilities -{ - [Override("ManagedElement")] - LMI_Processor REF ManagedElement; - - [Override("Capabilities")] - LMI_ProcessorCapabilities REF Capabilities; -}; - -[ Provider("cmpi:cmpiLMI_ProcessorCacheMemory") ] -class LMI_ProcessorCacheMemory: CIM_Memory -{ -}; - -[ Provider("cmpi:cmpiLMI_AssociatedProcessorCacheMemory"), Association ] -class LMI_AssociatedProcessorCacheMemory: CIM_AssociatedCacheMemory -{ - [Override("Antecedent")] - LMI_ProcessorCacheMemory REF Antecedent; - - [Override("Dependent")] - LMI_Processor REF Dependent; -}; - -[ Provider("cmpi:cmpiLMI_ProcessorChip") ] -class LMI_ProcessorChip: CIM_Chip -{ -}; - -[ Provider("cmpi:cmpiLMI_ProcessorChipRealizes"), Association ] -class LMI_ProcessorChipRealizes: CIM_Realizes -{ - [Override("Antecedent")] - LMI_ProcessorChip REF Antecedent; - - [Override("Dependent")] - LMI_Processor REF Dependent; -}; - -/****************************************************************************** - * Memory - */ - -[ Provider("cmpi:cmpiLMI_Memory") ] -class LMI_Memory: CIM_Memory -{ -}; - -/****************************************************************************** - * PCI Devices - */ - -[ Provider("cmpi:cmpiLMI_PCIDevice") ] -class LMI_PCIDevice: CIM_PCIDevice -{ - [ Description("Name of the subsystem") ] - string SubsystemName; - - [ Description("Name of the subsystem vendor") ] - string SubsystemVendorName; - - [ Description("Name of the device") ] - string PCIDeviceName; - - [ Description("Name of the vendor") ] - string VendorName; -}; diff --git a/mof/LMI_Jobs.mof b/mof/LMI_Jobs.mof deleted file mode 100644 index ace5ec3..0000000 --- a/mof/LMI_Jobs.mof +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Authors: - * Jan Safranek - * Michal Minar - */ - - -class LMI_UnixFile : CIM_UnixFile -{ -}; - -class LMI_DataFile : CIM_DataFile -{ -}; - -class LMI_UnixDeviceFile : CIM_UnixDeviceFile -{ -}; - -class LMI_UnixDirectory : CIM_UnixDirectory -{ -}; - -class LMI_FIFOPipeFile : CIM_FIFOPipeFile -{ -}; - -class LMI_SymbolicLink : CIM_SymbolicLink -{ -}; - -class LMI_UnixSocket : CIM_DataFile -{ -}; - -class LMI_FileIdentity : CIM_FileIdentity -{ -}; - -class LMI_DirectoryContainsFile : CIM_DirectoryContainsFile -{ -}; - -[ Association, - Provider("cmpi:cmpiLMI_LogicalFile") ] -class LMI_RootDirectory: CIM_Component -{ - [ Override("GroupComponent"), Min(1), Max(1), - Description("The hosting System.") ] - CIM_ComputerSystem REF GroupComponent; - - [ Override("PartComponent"), Min(1), Max(1), - Description("The root directory on the System") ] - LMI_UnixDirectory REF PartComponent; -}; -/* vi: set et: */ diff --git a/mof/LMI_PowerManagement.mof b/mof/LMI_PowerManagement.mof deleted file mode 100644 index c285f79..0000000 --- a/mof/LMI_PowerManagement.mof +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Authors: Radek Novacek - */ - -[ Provider("cmpi:cmpiLMI_PowerManagement") ] -class LMI_PowerManagementService: CIM_PowerManagementService -{ -}; - -[ Association, - Provider("cmpi:cmpiLMI_PowerManagement") ] -class LMI_AssociatedPowerManagementService: CIM_AssociatedPowerManagementService -{ - [ Override("ServiceProvided"), Max(1), - Description("The Service that is available.") ] - LMI_PowerManagementService REF ServiceProvided; - - [ Override("UserOfService"), - Description("The ManagedElement that can use the Service.") ] - CIM_ComputerSystem REF UserOfService; -}; - -[ Provider("cmpi:cmpiLMI_PowerManagement") ] -class LMI_PowerManagementCapabilities: CIM_PowerManagementCapabilities -{ -}; - -[ Association, - Provider("cmpi:cmpiLMI_PowerManagement") ] -class LMI_HostedPowerManagementService: CIM_HostedService -{ - [ Override("Antecedent"), Min(1), Max(1), - Description("The hosting System.") ] - CIM_ComputerSystem REF Antecedent; - - [ Override("Dependent"), Weak, - Description("The Service hosted on the System.") ] - LMI_PowerManagementService REF Dependent; -}; - -[ Provider("cmpi:cmpiLMI_PowerManagement") ] -class LMI_ConcreteJob: CIM_ConcreteJob -{ -}; - -[ Provider("cmpi:cmpiLMI_PowerManagement") ] -class LMI_ElementCapabilities: CIM_ElementCapabilities -{ - [ Key, Min(1), Description("The managed element.") ] - LMI_PowerManagementService REF ManagedElement; - - [ Key, - Description("The Capabilities object associated with the element.") ] - LMI_PowerManagementCapabilities REF Capabilities; -}; diff --git a/mof/LMI_Qualifiers.mof b/mof/LMI_Qualifiers.mof deleted file mode 100644 index d6b11ec..0000000 --- a/mof/LMI_Qualifiers.mof +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Authors: - * Jan Safranek - */ - -/* 'Implemented' qualifier denotes the properties and method that are implemented - * by appropriate OpenLMI provider. - */ -Qualifier Implemented : boolean = false, Scope(property, method); diff --git a/mof/LMI_Service.mof b/mof/LMI_Service.mof deleted file mode 100644 index d6c3715..0000000 --- a/mof/LMI_Service.mof +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Authors: Vitezslav Crhonek - */ - -[ Description("Class representing Linux Service"), - Provider("cmpi:cmpiLMI_Service") ] -class LMI_Service: CIM_Service -{ - [ Override("StartService") ] - uint32 StartService(); - - [ Override("StopService") ] - uint32 StopService(); - - uint32 ReloadService(); - - uint32 RestartService(); - - uint32 TryRestartService(); - - uint32 CondRestartService(); - - uint32 ReloadOrRestartService(); - - uint32 ReloadOrTryRestartService(); - - uint32 TurnServiceOn(); - - uint32 TurnServiceOff(); -}; diff --git a/mof/LMI_Software.mof b/mof/LMI_Software.mof deleted file mode 100644 index 9f2f2ce..0000000 --- a/mof/LMI_Software.mof +++ /dev/null @@ -1,690 +0,0 @@ -/* - * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Authors: Michal Minar - */ - -#pragma locale ("en_US") -//#pragma namespace ("root/cimv2") - -class LMI_SoftwareIdentity : CIM_SoftwareIdentity { - - [Implemented(true), Override("InstanceID"), Description( - "Unique identifier for installed or available package." - " It's composed of OrgID and LocalID separated by ':', where" - " is LMI and LocalID is PKG:. " - " is a string representing rpm package. Letters in NEVRA stand" - " for name, epoch, version, release and architecture.")] - string InstanceID; - - [Implemented(true), Override("Caption"), Description("Package's summary.")] - string Caption; - - [Implemented(true), Override("Classifications")] - uint16 Classifications[]; - - [Implemented(true), Override("Description"), Description( - "Package's description.")] - string Description; - - [Implemented(true), Override("ElementName"), Description( - "Package's NEVRA string. That is also part of InstanceID.")] - string ElementName; - - [Implemented(true), Override("InstallDate")] - datetime InstallDate; - - [Implemented(true), Override("IsEntity")] - boolean IsEntity; - - [Implemented(true), Override("Name"), Description( - "Name of package. This does not uniquely identify package" - " installed on computer system.")] - string Name; - - [Implemented(true), Override("TargetTypes")] - string TargetTypes[]; - - [Implemented(true), Override("VersionString"), Description( - "Package's EVRA, in format: " - ":-.")] - string VersionString; - - [Implemented(true), Description("Package's epoch.")] - uint32 Epoch; - - [Implemented(true), Description("Package's version.")] - string Version; - - [Implemented(true), Description("Package's release.")] - string Release; - - [Implemented(true), Description("Package's architecture.")] - string Architecture; - -}; - -class LMI_SystemSoftwareCollection : CIM_SystemSpecificCollection { - - [Implemented(true), Override("InstanceID")] - string InstanceID; - - [Implemented(true), Override("Caption")] - string Caption; - -}; - -[Association] -class LMI_HostedSoftwareCollection : CIM_HostedCollection { - - [Override("Antecedent")] - Linux_ComputerSystem REF Antecedent; - - [Override("Dependent")] - LMI_SystemSoftwareCollection REF Dependent; - -}; - -[Association] -class LMI_MemberOfSoftwareCollection : CIM_MemberOfCollection { - - [Override("Collection")] - LMI_SystemSoftwareCollection REF Collection; - - [Override("Member")] - LMI_SoftwareIdentity REF Member; - -}; - -[Association] -class LMI_InstalledSoftwareIdentity : CIM_InstalledSoftwareIdentity { - - [Override("InstalledSoftware")] - LMI_SoftwareIdentity REF InstalledSoftware; - - [Override("System")] - Linux_ComputerSystem REF System; - -}; - -class LMI_SoftwareIdentityResource : CIM_SoftwareIdentityResource { - - [Implemented(true), Override("CreationClassName")] - string CreationClassName; - - [Implemented(true), Override("Name"), Description( - "Repository id. A unique name representing repository of" - " system.")] - string Name; - - [Implemented(true), Override("SystemCreationClassName")] - string SystemCreationClassName; - - [Implemented(true), Override("SystemName")] - string SystemName; - - [Implemented(true), Override("AccessContext")] - uint16 AccessContext; - - [Implemented(true), Override("AccessInfo")] - string AccessInfo; - - [Implemented(true), Override("AvailableRequestedStates")] - uint16 AvailableRequestedStates[]; - - [Implemented(true), Override("Caption"), Description( - "A human readable string describing the repository.")] - string Caption; - - [Implemented(true), Description( - "Relative cost of accessing this repository." - " Useful for weighing one repo's packages as greater/less" - " than any other.")] - sint32 Cost; - - [Implemented(true), Override("Description")] - string Description; - - [Implemented(true), Override("ElementName")] - string ElementName; - - [Implemented(true), Override("EnabledDefault")] - uint16 EnabledDefault; - - [Implemented(true), Override("EnabledState")] - uint16 EnabledState; - - [Implemented(true), Override("ExtendedResourceType")] - uint16 ExtendedResourceType; - - [Implemented(true), Override("Generation")] - uint64 Generation; - - [Implemented(true), Override("HealthState")] - uint16 HealthState; - - [Implemented(true), Description( - "Whether or not a GPG signature check should be performed" - " on the packages gotten from this repository.")] - boolean GPGCheck; - - [Implemented(true), Override("InfoFormat")] - uint16 InfoFormat; - - [Implemented(true), Override("InstanceID")] - string InstanceID; - - [Implemented(true), Description( - "URL to a file containing list of base URLS to mirrors" - " of this repository. http://, ftp:// and file:// schemas" - " are supported. This can contain special variables" - " prefixed with $, which are substituted for system values." - " These include $releasever - defaults to the version of" - " \"redhat-release\" package, $arch - architecture of system," - " $basearch - base architecture of system ($arch == \"i686\", then" - " $basearch == \"i386\", $uuid - unique but persisent uuid for this" - " machine.")] - string MirrorList; - - [Implemented(true), Override("OperationalStatus")] - uint16 OperationalStatus[]; - - [Implemented(true), Override("OtherAccessContext")] - string OtherAccessContext; - - [Implemented(true), Override("PrimaryStatus")] - uint16 PrimaryStatus; - - [Implemented(true), Description( - "Whether or not a GPG signature check should be performed" - " on the repodata from this repository.")] - boolean RepoGPGCheck; - - [Implemented(true), Override("RequestedState")] - uint16 RequestedState; - - [Implemented(true), Override("ResourceType")] - uint16 ResourceType; - - [Implemented(true), Override("StatusDescriptions")] - string StatusDescriptions[]; - - [Implemented(true), Override("TimeOfLastStateChange")] - datetime TimeOfLastStateChange; - - [Implemented(true), Description( - "Time of the repository's last update on server.")] - datetime TimeOfLastUpdate; - - [Implemented(true), Override("TransitioningToState")] - uint16 TransitioningToState; - - [Implemented(true), Override("RequestStateChange")] - uint32 RequestStateChange( - [IN, Description ( - "The state requested for the element. This " - "information will be placed into the RequestedState " - "property of the instance if the return code of the " - "RequestStateChange method is 0 (\'Completed with " - "No Error\'), or 4096 (0x1000) (\'Job Started\'). " - "Refer to the description of the EnabledState and " - "RequestedState properties for the detailed " - "explanations of the RequestedState values." ), - ValueMap { "2", "3", "4", "6", "7", "8", "9", "10", - "11", "..", "32768..65535" }, - Values { "Enabled", "Disabled", "Shut Down", "Offline", - "Test", "Defer", "Quiesce", "Reboot", "Reset", - "DMTF Reserved", "Vendor Reserved" }, - ModelCorrespondence { - "CIM_EnabledLogicalElement.RequestedState" }] - uint16 RequestedState, - [IN ( false ), OUT, Description ( - "May contain a reference to the ConcreteJob created " - "to track the state transition initiated by the " - "method invocation." )] - CIM_ConcreteJob REF Job, - [IN, Description ( - "A timeout period that specifies the maximum amount " - "of time that the client expects the transition to " - "the new state to take. The interval format must be " - "used to specify the TimeoutPeriod. A value of 0 or " - "a null parameter indicates that the client has no " - "time requirements for the transition. \n" - "If this property does not contain 0 or null and " - "the implementation does not support this " - "parameter, a return code of \'Use Of Timeout " - "Parameter Not Supported\' shall be returned." )] - datetime TimeoutPeriod); - -}; - -[Association] -class LMI_ResourceForSoftwareIdentity : CIM_SAPAvailableForElement { - - [Override("AvailableSAP")] - LMI_SoftwareIdentityResource REF AvailableSAP; - - [Override("ManagedElement")] - LMI_SoftwareIdentity REF ManagedElement; - -}; - -[Association] -class LMI_HostedSoftwareIdentityResource : CIM_HostedAccessPoint { - - [Override("Antecedent")] - Linux_ComputerSystem REF Antecedent; - - [Override("Dependent")] - LMI_SoftwareIdentityResource REF Dependent; - -}; - -class LMI_SoftwareInstallationService : CIM_SoftwareInstallationService { - - [Implemented(true), Override("CreationClassName")] - string CreationClassName; - - [Implemented(true), Override("Name")] - string Name; - - [Implemented(true), Override("SystemCreationClassName")] - string SystemCreationClassName; - - [Implemented(true), Override("SystemName")] - string SystemName; - - [Implemented(true), Override("Caption")] - string Caption; - - [Implemented(true), Override("CommunicationStatus")] - uint16 CommunicationStatus; - - [Implemented(true), Override("Description")] - string Description; - - [Implemented(true), Override("DetailedStatus")] - uint16 DetailedStatus; - - [Implemented(true), Override("EnabledDefault")] - uint16 EnabledDefault; - - [Implemented(true), Override("EnabledState")] - uint16 EnabledState; - - [Implemented(true), Override("HealthState")] - uint16 HealthState; - - [Implemented(true), Override("InstanceID")] - string InstanceID; - - [Implemented(true), Override("OperatingStatus")] - uint16 OperatingStatus; - - [Implemented(true), Override("OperationalStatus")] - uint16 OperationalStatus[]; - - [Implemented(true), Override("PrimaryStatus")] - uint16 PrimaryStatus; - - [Implemented(true), Override("PrimaryStatus")] - uint16 RequestedState; - - [Implemented(true), Override("Started")] - boolean Started; - - [Implemented(true), Override("TransitioningToState")] - uint16 TransitioningToState; - - [Implemented(True), Override("CheckSoftwareIdentity")] - uint32 CheckSoftwareIdentity( - [IN, Description ( - "Reference to the SoftwareIdentity to be checked." )] - LMI_SoftwareIdentity REF Source, - [IN, Description ( - "Reference to the ManagedElement that the Software " - "Identity is going to be installed in (or updated)." )] - CIM_ManagedElement REF Target, - [IN, Description ( - "Reference to the Collection to which the Software " - "Identity will be added." )] - LMI_SystemSoftwareCollection REF Collection, - [IN ( false ), OUT, Description ( - "The parameter describes the characteristics of the " - "installation/update that will take place if the " - "Source Software Identity is installed: \n" - "Target automatic reset: The target element will " - "automatically reset once the installation is " - "complete. \n" - "System automatic reset: The containing system of " - "the target ManagedElement (normally a logical " - "device or the system itself) will automatically " - "reset/reboot once the installation is complete. \n" - "Separate target reset required: " - "EnabledLogicalElement.RequestStateChange MUST be " - "used to reset the target element after the " - "SoftwareIdentity is installed. \n" - "Separate system reset required: " - "EnabledLogicalElement.RequestStateChange MUST be " - "used to reset/reboot the containing system of the " - "target ManagedElement after the SoftwareIdentity " - "is installed. \n" - "Manual Reboot Required: The system MUST be " - "manually rebooted by the user. \n" - "No reboot required : No reboot is required after " - "installation. \n" - "User Intervention Recomended : It is recommended " - "that a user confirm installation of this " - "SoftwareIdentity. Inappropriate application MAY " - "have serious consequences. \n" - "MAY be added to specified collection : The " - "SoftwareIndentity MAY be added to specified " - "Collection." ), - ValueMap { "2", "3", "4", "5", "6", "7", "8", "9", - "..", "0x7FFF..0xFFFF" }, - Values { "Target automatic reset", - "System automatic reset", - "Separate target reset Required", - "Separate system reset Required", - "Manual Reboot Required", "No Reboot Required", - "User Intervention recommended", - "MAY be added to specified Collection", - "DMTF Reserved", "Vendor Specific" }] - uint16 InstallCharacteristics[]); - - [Implemented(True), Override("InstallFromSoftwareIdentity")] - uint32 InstallFromSoftwareIdentity( - [IN ( false ), OUT, Description ( - "Reference to the job (may be null if job completed)." - )] - LMI_SoftwareInstallationJob REF Job, - [IN, Description ( - "Options to control the install process.\n" - "Defer target/system reset : do not automatically " - "reset the target/system.\n" - "Force installation : Force the installation of the " - "same or an older SoftwareIdentity. Install: " - "Perform an installation of this software on the " - "managed element.\n" - "Update: Perform an update of this software on the " - "managed element.\n" - "Repair: Perform a repair of the installation of " - "this software on the managed element by forcing " - "all the files required for installing the software " - "to be reinstalled.\n" - "Reboot: Reboot or reset the system immediately " - "after the install or update of this software, if " - "the install or the update requires a reboot or reset.\n" - "Password: Password will be specified as clear text " - "without any encryption for performing the install " - "or update.\n" - "Uninstall: Uninstall the software on the managed element.\n" - "Log: Create a log for the install or update of the software.\n" - "SilentMode: Perform the install or update without " - "displaying any user interface.\n" - "AdministrativeMode: Perform the install or update " - "of the software in the administrative mode. " - "ScheduleInstallAt: Indicates the time at which " - "theinstall or update of the software will occur." ), - ValueMap { "2", "3", "4", "5", "6", "7", "8", "9", - "10", "11", "12", "13", "..", "32768..65535" }, - Values { "Defer target/system reset", - "Force installation", "Install", "Update", "Repair", - "Reboot", "Password", "Uninstall", "Log", - "SilentMode", "AdministrativeMode", - "ScheduleInstallAt", "DMTF Reserved", - "Vendor Specific" }, - ArrayType ( "Indexed" ), - ModelCorrespondence { - "CIM_SoftwareInstallationService.InstallOptionsValues[]", - "CIM_SoftwareInstallationServiceCapabilities.SupportedInstallOptions[]" }] - uint16 InstallOptions[], - [IN, Description ( - "InstallOptionsValues is an array of strings " - "providing additional information to InstallOptions " - "for the method to install the software. Each entry " - "of this array is related to the entry in " - "InstallOptions that is located at the same index " - "providing additional information for " - "InstallOptions. \n" - "If the index in InstallOptions has the value " - "\"Password \" then a value at the corresponding " - "index of InstallOptionValues shall not be NULL. \n" - "If the index in InstallOptions has the value " - "\"ScheduleInstallAt\" then the value at the " - "corresponding index of InstallOptionValues shall " - "not be NULL and shall be in the datetime type " - "format. \n" - "If the index in InstallOptions has the value \"Log " - "\" then a value at the corresponding index of " - "InstallOptionValues may be NULL. \n" - "If the index in InstallOptions has the value " - "\"Defer target/system reset\", \"Force " - "installation\",\"Install\", \"Update\", \"Repair\" " - "or \"Reboot\" then a value at the corresponding " - "index of InstallOptionValues shall be NULL." ), - ArrayType ( "Indexed" ), - ModelCorrespondence { - "CIM_SoftwareInstallationService.InstallOptions[]" }] - string InstallOptionsValues[], - [IN, Description ( - "Reference to the source of the install." )] - LMI_SoftwareIdentity REF Source, - [IN, Description ( - "The installation target. If NULL then the " - "SOftwareIdentity will be added to Collection only. " - "The underlying implementation is expected to be " - "able to obtain any necessary metadata from the " - "Software Identity." )] - CIM_ManagedElement REF Target, - [IN, Description ( - "Reference to the Collection to which the Software " - "Identity SHALL be added. If NULL then the Software " - "Identity will not be added to a Collection." )] - LMI_SystemSoftwareCollection REF Collection); - - [Implemented(True), Override("InstallFromURI")] - uint32 InstallFromURI( - [IN ( false ), OUT, Description ( - "Reference to the job (may be null if job completed)." - )] - LMI_SoftwareInstallationJob REF Job, - [IN, Description ( - "A URI for the software based on RFC 2079." )] - string URI, - [IN, Description ( "The installation target." )] - CIM_ManagedElement REF Target, - [IN, Description ( - "Options to control the install process. \n" - "See the InstallOptions parameter of the " - "SoftwareInstallationService.InstallFromSoftwareIdentity " - "method for the description of these values." ), - ValueMap { "2", "3", "4", "5", "6", "7", "8", "9", - "10", "11", "12", "13", "..", "32768..65535" }, - Values { "Defer target/system reset", - "Force installation", "Install", "Update", "Repair", - "Reboot", "Password", "Uninstall", "Log", - "SilentMode", "AdministrativeMode", - "ScheduleInstallAt", "DMTF Reserved", - "Vendor Specific" }, - ArrayType ( "Indexed" ), - ModelCorrespondence { - "CIM_SoftwareInstallationService.InstallFromURI.InstallOptionsValues[]", - "CIM_SoftwareInstallationServiceCapabilities.SupportedInstallOptions[]" }] - uint16 InstallOptions[], - [IN, Description ( - "InstallOptionsValues is an array of strings " - "providing additionalinformation to InstallOptions " - "for the method to install the software. Each entry " - "of this array is related to the entry in " - "InstallOptions that is located at the same index " - "providing additional information for " - "InstallOptions. \n" - "For further information on the use of " - "InstallOptionsValues parameter, see the " - "description of the InstallOptionsValues parameter " - "of the " - "SoftwareInstallationService.InstallFromSoftwareIdentity " - "method." ), - ArrayType ( "Indexed" ), - ModelCorrespondence { - "CIM_SoftwareInstallationService.InstallFromByteStream.InstallOptions[]" }] - string InstallOptionsValues[]); - -}; - -class LMI_SoftwareInstallationServiceCapabilities : - CIM_SoftwareInstallationServiceCapabilities { - - [Implemented(true), Override("InstanceID")] - string InstanceID; - - [Implemented(true), Override("CanAddToCollection")] - boolean CanAddToCollection; - - [Implemented(true), Override("Caption")] - string SupportedTargetTypes[]; - - [Implemented(true), Override("SupportedInstallOptions")] - uint16 SupportedInstallOptions[]; - - [Implemented(true), Override("Description")] - string Description; - - [Implemented(true), Override("SupportedURISchemes")] - uint16 SupportedURISchemes[]; - - [Implemented(true), Override("SupportedAsynchronousActions")] - uint16 SupportedAsynchronousActions[]; - - [Implemented(true), Override("SupportedSynchronousActions")] - uint16 SupportedSynchronousActions[]; - -}; - -[Association] -class LMI_AssociatedSoftwareInstallationServiceCapabilities : - CIM_ElementCapabilities { - - [Override("Capabilities")] - LMI_SoftwareInstallationServiceCapabilities REF Capabilities; - - [Override("ManagedElement")] - LMI_SoftwareInstallationService REF ManagedElement; - - [Implemented(true), Override("Characteristics")] - uint16 Characteristics[]; - -}; - -[Association] -class LMI_HostedSoftwareInstallationService : CIM_HostedService { - - [Override("Antecedent")] - Linux_ComputerSystem REF Antecedent; - - [Override("Dependent")] - LMI_SoftwareInstallationService REF Dependent; - -}; - -[Association] -class LMI_SoftwareInstallationServiceAffectsElement : - CIM_ServiceAffectsElement { - - [Override("AffectingElement")] - LMI_SoftwareInstallationService REF AffectingElement; - - [Implemented(true), Override("ElementEffects")] - uint16 ElementEffects[]; - - [Implemented(true), Override("OtherElementEffectsDescriptions")] - string OtherElementEffectsDescriptions[]; - -}; - -class LMI_SoftwareInstallationJob : LMI_ConcreteJob { - - [Implemented(true), Override("InstanceID")] - string InstanceID; - - [Implemented(true), Override("Caption")] - string Caption; - - [Implemented(true), Override("CommunicationStatus")] - uint16 CommunicationStatus; - - [Implemented(true), Override("Description")] - string Description; - - [Implemented(true), Override("ErrorCode")] - uint16 ErrorCode; - - [Implemented(true), Override("JobStatus")] - string JobStatus; - - [Implemented(true), Override("MethodName")] - string MethodName; - - [Implemented(true), Override("Priority")] - uint32 Priority; - - [Implemented(true), Override("RecoveryAction")] - uint16 RecoveryAction; - -}; - -class LMI_SoftwareMethodResult : LMI_MethodResult { -}; - -[Association] -class LMI_AssociatedSoftwareJobMethodResult : LMI_AssociatedJobMethodResult { - - [Override("Job")] - LMI_SoftwareInstallationJob REF Job; - - [Override("JobParameters")] - LMI_SoftwareMethodResult REF JobParameters; - -}; - -[Association] -class LMI_OwningSoftwareJobElement : LMI_OwningJobElement { - - [Override("OwningElement")] - LMI_SoftwareInstallationService REF OwningElement; - - [Override("OwnedElement")] - LMI_SoftwareInstallationJob REF OwnedElement; - -}; - -[Association] -class LMI_AffectedSoftwareJobElement : LMI_AffectedJobElement { - - [Override("AffectingElement")] - LMI_SoftwareInstallationJob REF AffectingElement; - -}; - -[Indication] -class LMI_SoftwareInstCreation : CIM_InstCreation { -}; - -[Indication] -class LMI_SoftwareInstModification : CIM_InstModification { -}; diff --git a/mof/LMI_SoftwareIndicationFilters.mof b/mof/LMI_SoftwareIndicationFilters.mof deleted file mode 100644 index e3af599..0000000 --- a/mof/LMI_SoftwareIndicationFilters.mof +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Authors: Michal Minar - * - * These are static CIM_IndicationFilter instances used by software managent - * providers. They should be installed upon providers installation. - * They should go to root/interop namespace for sfcb and root/PG_Interop - * for pegasus. - */ - -instance of CIM_IndicationFilter { - CreationClassName = "CIM_IndicationFilter"; - SystemCreationClassName = "CIM_ComputerSystem"; - SystemName = "kvm-fedora18"; - Name = "LMI:LMI_SoftwareInstallationJob:PercentUpdated"; - Query = "SELECT * FROM CIM_InstModification WHERE " - "SourceInstance ISA LMI_SoftwareInstallationJob AND " - "SourceInstance.CIM_ConcreteJob::PercentComplete <> " - "PreviousInstance.CIM_ConcreteJob::PercentComplete"; - /* CIM: prefix required for pegasus */ - QueryLanguage = "CIM:CQL"; - Description = "Modification of Percentage Complete for a " - "Concrete Job."; - /* required for sfcb - but deprecated */ - SourceNamespace = "root/cimv2"; - SourceNamespaces = {"root/cimv2"}; -}; - -instance of CIM_IndicationFilter { - CreationClassName = "CIM_IndicationFilter"; - SystemCreationClassName = "CIM_ComputerSystem"; - SystemName = "kvm-fedora18"; - Name = "LMI:LMI_SoftwareInstallationJob:Succeeded"; - QueryLanguage = "CIM:CQL"; - Query = "SELECT * FROM CIM_InstModification WHERE " - "SourceInstance ISA LMI_SoftwareInstallationJob AND " - "SourceInstance.CIM_ConcreteJob::JobState" - " = 17" - /* This is not supported by sfcb: - * " = CIM_ConcreteJob.JobState#'Completed'" */; - SourceNamespace = "root/cimv2"; - SourceNamespaces = {"root/cimv2"}; -}; - -instance of CIM_IndicationFilter { - CreationClassName = "CIM_IndicationFilter"; - SystemCreationClassName = "CIM_ComputerSystem"; - SystemName = "kvm-fedora18"; - Name = "LMI:LMI_SoftwareInstallationJob:Failed"; - Query = "SELECT * FROM CIM_InstModification WHERE " - "SourceInstance ISA LMI_SoftwareInstallationJob AND " - "SourceInstance.CIM_ConcreteJob::JobState" - " = 10" - /* This is not supported by sfcb: - * "CIM_ConcreteJob.JobState#'Exception'" */; - QueryLanguage = "CIM:CQL"; - Description = "Modification of Operational Status for a " - "Concrete Job to 'Complete' and 'OK'."; - SourceNamespace = "root/cimv2"; - SourceNamespaces = {"root/cimv2"}; -}; - -instance of CIM_IndicationFilter { - CreationClassName = "CIM_IndicationFilter"; - SystemCreationClassName = "CIM_ComputerSystem"; - SystemName = "kvm-fedora18"; - Name = "LMI:LMI_SoftwareInstallationJob:Changed"; - Query = "SELECT * FROM CIM_InstModification WHERE " - "SourceInstance ISA LMI_SoftwareInstallationJob AND " - "SourceInstance.CIM_ConcreteJob::JobState <> " - "PreviousInstance.CIM_ConcreteJob::JobState"; - QueryLanguage = "CIM:CQL"; - Description = "Modification of Job State for a ConcreteJob."; - SourceNamespace = "root/cimv2"; - SourceNamespaces = {"root/cimv2"}; -}; - -instance of CIM_IndicationFilter { - CreationClassName = "CIM_IndicationFilter"; - SystemCreationClassName = "CIM_ComputerSystem"; - SystemName = "kvm-fedora18"; - Name = "LMI:LMI_SoftwareInstallationJob:Created"; - Query = "SELECT * FROM CIM_InstCreation WHERE" - " SourceInstance ISA LMI_SoftwareInstallationJob"; - QueryLanguage = "CIM:CQL"; - Description = "Creation of a ConcreteJob."; - SourceNamespace = "root/cimv2"; - SourceNamespaces = {"root/cimv2"}; -}; diff --git a/mof/README b/mof/README new file mode 100644 index 0000000..f942fe1 --- /dev/null +++ b/mof/README @@ -0,0 +1,28 @@ +This directory contains MOF and registration files for openlmi-providers. +Registration files for c providers using KonkretCMPI are generated during +build time from MOFs. + +Mof files are named according to this convetion: + _LMI_.mof + +where is a string of two digits ensuring the correct order of +their parsing by cimom tools like sfcbrepos [1]. Some mof files depend +on others and thus need to be parsed after them. + +Here is a convention for choosing the right number: + 05 - 10 + Qualifiers and other simple mofs without any dependencies on LMI or + anything outside of cim-schema (05_LMI_Qualifiers.mof). These are + shipped with openlmi-providers. + 20 - 40 + Mofs with base classes for our providers (30_LMI_Jobs.mof). Also + shipped with openlmi-providers. + 50 - 80 + Mofs of our profiles shipped in their own package + (60_LMI_Software.mof). + +Mof files containing static indication filters[2] referencing other LMI +classes should have higher number than mof files containing them. + +[1] belongs to sblim-sfcb +[2] for example 70_LMI_SoftwareIndicationFilters.mof diff --git a/src/account/CMakeLists.txt b/src/account/CMakeLists.txt index 776ce87..38ecd02 100644 --- a/src/account/CMakeLists.txt +++ b/src/account/CMakeLists.txt @@ -1,7 +1,7 @@ set(PROVIDER_NAME Account) set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME}) -set(MOF LMI_Account.mof) +set(MOF 60_LMI_Account.mof) set(ACCOUNT_SCRIPT cmpiLMI_${PROVIDER_NAME}-cimprovagt) set(provider_SRCS diff --git a/src/fan/CMakeLists.txt b/src/fan/CMakeLists.txt index 7cb801a..e8e87aa 100644 --- a/src/fan/CMakeLists.txt +++ b/src/fan/CMakeLists.txt @@ -1,7 +1,7 @@ set(PROVIDER_NAME Fan) set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME}) -set(MOF LMI_Fan.mof) +set(MOF 60_LMI_Fan.mof) set(provider_SRCS fan.c diff --git a/src/hardware/CMakeLists.txt b/src/hardware/CMakeLists.txt index c50acef..eb45adc 100644 --- a/src/hardware/CMakeLists.txt +++ b/src/hardware/CMakeLists.txt @@ -1,6 +1,6 @@ set(PROVIDER_NAME Hardware) set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME}) -set(MOF LMI_Hardware.mof) +set(MOF 60_LMI_Hardware.mof) set(provider_SRCS utils.c diff --git a/src/logicalfile/CMakeLists.txt b/src/logicalfile/CMakeLists.txt index 8b0097a..3a80353 100644 --- a/src/logicalfile/CMakeLists.txt +++ b/src/logicalfile/CMakeLists.txt @@ -1,7 +1,7 @@ set(PROVIDER_NAME LogicalFile) set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME}) -set(MOF LMI_LogicalFile.mof) +set(MOF 60_LMI_LogicalFile.mof) set(provider_SRCS file.c diff --git a/src/power/CMakeLists.txt b/src/power/CMakeLists.txt index 73725d3..f77b3ae 100644 --- a/src/power/CMakeLists.txt +++ b/src/power/CMakeLists.txt @@ -1,7 +1,7 @@ set(PROVIDER_NAME PowerManagement) set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME}) -set(MOF LMI_PowerManagement.mof) +set(MOF 60_LMI_PowerManagement.mof) set(provider_SRCS power.c diff --git a/src/service/CMakeLists.txt b/src/service/CMakeLists.txt index c0f236f..34d766e 100644 --- a/src/service/CMakeLists.txt +++ b/src/service/CMakeLists.txt @@ -1,7 +1,7 @@ set(PROVIDER_NAME Service) set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME}) -set(MOF LMI_Service.mof) +set(MOF 60_LMI_Service.mof) set(provider_SRCS util/serviceutil.c -- cgit