📄 wet_schema.mof
字号:
// =================================================================== [Abstract, Description ( "An abstraction or emulation of a hardware entity, that may " "or may not be Realized in physical hardware. Any " "characteristics of a LogicalDevice that are used to manage " "its operation or configuration are contained in, or " "associated with, the LogicalDevice object. Examples of the " "operational properties of a Printer would be paper sizes " "supported, or detected errors. Examples of the configuration " "properties of a Sensor Device would be threshold settings. " "Various configurations could exist for a LogicalDevice. " "These configurations could be contained in Setting objects " "and associated with the LogicalDevice.") ] class WET_LogicalDevice : WET_LogicalElement { [Propagated("WET_System.CreationClassName"), Key, MaxLen (256), Description ( "The scoping System's CreationClassName.") ] string SystemCreationClassName; [Propagated("WET_System.Name"), Key, MaxLen (256), Description ( "The scoping System's Name.") ] string SystemName; [Key, MaxLen (256), Description ( "CreationClassName indicates the name of the class or " "the subclass used in the creation of an instance. When " "used with the other key properties of this class, this " "property allows all instances of this class and its " "subclasses to be uniquely identified.") ] string CreationClassName; [Key, MaxLen (64), Description ( "An address or other identifying information to uniquely " "name the LogicalDevice.") ] string DeviceID; [Description ( "Boolean indicating that the Device can be power managed " "- ie, put into a power save state. This boolean does not " "indicate that power management features are currently " "enabled, or if enabled, what features are supported. " "Refer to the PowerManagementCapabilities array for this " "information. If this boolean is false, the integer value " "1, for the string, \"Not Supported\", should be the only " "entry in the PowerManagementCapabilities array.") ] boolean PowerManagementSupported; [Description( "Indicates the specific power-related capabilities of a " "LogicalDevice. The array values, 0=\"Unknown\", 1=" "\"Not Supported\" and 2=\"Disabled\" are self-explanatory. " "The value, 3=\"Enabled\" indicates that the power management " "features are currently enabled but the exact feature set " "is unknown or the information is unavailable. " "\"Power Saving Modes Entered Automatically\" (4) describes " "that a Device can change its power state based on usage or " "other criteria. \"Power State Settable\" (5) indicates that " "the SetPowerState method is supported. \"Power Cycling " "Supported\" (6) indicates that the SetPowerState method " "can be invoked with the PowerState input variable set to 5 (" "\"Power Cycle\"). \"Timed Power On Supported\" (7) indicates " "that the SetPowerState method can be invoked with the Power" "State input variable set to 5 (\"Power Cycle\") and the Time " "parameter set to a specific date and time, or interval, " "for power-on."), Values {"Unknown", "Not Supported", "Disabled", "Enabled", "Power Saving Modes Entered Automatically", "Power State Settable", "Power Cycling Supported", "Timed Power On Supported"} ] uint16 PowerManagementCapabilities[]; [Description ( "The primary availability and status of the Device. (Additional " "status information can be specified using the AdditionalAvailability " "array property.) For example, the Availability property indicates " "that the Device is running and has full power (value=3), or is in " "a warning (4), test (5), degraded (10) or power save state (values " "13-15 and 17). Regarding the Power Save states, these are defined " "as follows: Value 13 (\"Power Save - Unknown\") indicates " "that the Device is known to be in a power save mode, but its " "exact status in this mode is unknown; 14 (\"Power Save - Low " "Power Mode\") indicates that the Device is in a power save " "state but still functioning, and may exhibit degraded " "performance; 15 (\"Power Save - Standby\") describes that " "the Device is not functioning but could be brought to full " "power 'quickly'; and value 17 (\"Power Save - Warning\") " "indicates that the Device is in a warning state, though also " "in a power save mode."), ValueMap {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21"}, Values {"Other", "Unknown", "Running/Full Power", "Warning", "In Test", "Not Applicable", "Power Off", "Off Line", "Off Duty", "Degraded", "Not Installed", "Install Error", "Power Save - Unknown", "Power Save - Low Power Mode", "Power Save - Standby", "Power Cycle","Power Save - Warning", "Paused", "Not Ready", "Not Configured", "Quiesced"}, MappingStrings {"MIF.DMTF|Operational State|006", "MIB.IETF|HOST-RESOURCES-MIB.hrDeviceStatus", "MIF.DMTF|Host Device|001.5"}, ModelCorrespondence {"WET_LogicalDevice.AdditionalAvailability"}] uint16 Availability; [Description ( "The StatusInfo property indicates whether the Logical" "Device is in an enabled (value = 3), disabled (value = " "4) or some other (1) or unknown (2) state. If this " "property does not apply to the LogicalDevice, the value, " "5 (\"Not Applicable\"), should be used. " "If a Device is (\"Enabled\")(value=3), it has been " "powered up, and is configured and operational. The Device " "may or may not be functionally active, depending on whether " "its Availability (or AdditionalAvailability) indicate that " "it is (\"Running/Full Power\")(value=3) or (\"Off line\")" "(value=8). In an enabled but offline mode, a Device may be " "performing out-of-band requests, such as running Diagnostics. " "If (\"Disabled\") StatusInfo value=4), a Device can only be " "\"enabled\" or powered off. In a personal computer environment, " "(\"Disabled\") means that the Device's driver is not " "available in the stack. In other environments, a Device can " "be disabled by removing its configuration file. A disabled " "device is physically present in a System and consuming " "resources, but can not be communicated with until a load " "of a driver, a load of a configuration file or some other " "\"enabling\" activity has occurred."), ValueMap {"1", "2", "3", "4", "5"}, Values {"Other", "Unknown", "Enabled", "Disabled", "Not Applicable"}, MappingStrings {"MIF.DMTF|Operational State|006"} ] uint16 StatusInfo; [Description ( "LastErrorCode captures the last error code reported by " "the LogicalDevice.")] uint32 LastErrorCode; [Description ( "ErrorDescription is a free-form string supplying more " "information about the error recorded in LastErrorCode, and " "information on any corrective actions that may be taken.")] string ErrorDescription; [Description ( "ErrorCleared is a boolean property indicating that the " "error reported in LastErrorCode is now cleared.")] boolean ErrorCleared; [MaxLen (256), ArrayType ("Indexed"), Description ( "OtherIdentifyingInfo captures additional data, beyond " "DeviceID information, that could be used to identify a " "LogicalDevice. One example would be to hold the Operating" "System's user friendly name for the Device in this " "property."), ModelCorrespondence { "WET_LogicalDevice.IdentifyingDescriptions"} ] string OtherIdentifyingInfo[]; [Description ( "The number of consecutive hours that this Device has been " "powered, since its last power cycle."), Units ("Hours"), Counter ] uint64 PowerOnHours; [Description ( "The total number of hours that this Device has been " "powered."), Units ("Hours"), Counter ] uint64 TotalPowerOnHours; [ArrayType ("Indexed"), Description ( "An array of free-form strings providing explanations " "and details behind the entries in the OtherIdentifyingInfo " "array. Note, each entry of this array is related to the " "entry in OtherIdentifyingInfo that is located at the same " "index."), ModelCorrespondence {"WET_LogicalDevice.OtherIdentifyingInfo"} ] string IdentifyingDescriptions[]; [Description ( "Additional availability and status of the Device, beyond that " "specified in the Availability property. The Availability property " "denotes the primary status and availability of the Device. In " "some cases, this will not be sufficient to denote the complete " "status of the Device. In those cases, the AdditionalAvailability " "property can be used to provide further information. For example, " "a Device's primary Availability may be \"Off line\" (value=8), " "but it may also be in a low power state (AdditonalAvailability " "value=14), or the Device could be running Diagnostics (Additional" "Availability value=5, \"In Test\")."), ValueMap {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21"}, Values {"Other", "Unknown", "Running/Full Power", "Warning", "In Test", "Not Applicable", "Power Off", "Off Line", "Off Duty", "Degraded", "Not Installed", "Install Error", "Power Save - Unknown", "Power Save - Low Power Mode", "Power Save - Standby", "Power Cycle", "Power Save - Warning", "Paused", "Not Ready", "Not Configured", "Quiesced"}, ModelCorrespondence {"WET_LogicalDevice.Availability"}] uint16 AdditionalAvailability[]; [Description ( "Maximum time in milliseconds, that a Device can run in " "a \"Quiesced\" state. A Device's state is defined in its " "Availability and AdditionalAvailability properties, where " "\"Quiesced\" is conveyed by the value 21. What occurs at " "the end of the time limit is device-specific. The Device " "may unquiesce, may offline or take other action. A value of " "0 indicates that a Device can remain quiesced indefinitely."), Units ("MilliSeconds")] uint64 MaxQuiesceTime; [Description( "SetPowerState defines the desired power state for a " "LogicalDevice and when a Device should be put into that " "state. The desired power state is specified by setting " "the PowerState parameter to one of the " "following integer values: 1=\"Full Power\", 2=\"Power Save " "- Low Power Mode\", 3=\"Power Save - Standby\", 4=\"Power " "Save - Other\", 5=\"Power Cycle\" or 6=\"Power Off\". " "The Time parameter (for all state changes but 5, " "\"Power Cycle\") indicates when the power state should be " "set, either as a regular date-time value or as an interval " "value (where the interval begins when the method " "invocation is received). When the PowerState parameter is " "equal to 5, \"Power Cycle\", the Time parameter indicates " "when the Device should power on again. Power off is " "immediate. SetPowerState should return 0 if successful, 1 " "if the specified PowerState and Time request is not " "supported, and some other value if any other error " "occurred. In a subclass, the set of possible return codes " "could be specified, using a ValueMap qualifier on the method. " "The strings to which the ValueMap contents are 'translated' " "may also be specified in the subclass as a Values array " "qualifier.") ] uint32 SetPowerState( [IN, ValueMap {"1", "2", "3", "4", "5", "6"}, Values {"Full Power", "Power Save - Low Power Mode", "Power Save - Standby", "Power Save - Other", "Power Cycle", "Power Off"}] uint16 PowerState, [IN] datetime Time); [Description ( "Requests a reset of the LogicalDevice. The return value " "should be 0 if the request was successfully executed, " "1 if the request is not supported and some other value " "if an error occurred. In a subclass, the set of possible " "return codes could be specified, using a ValueMap qualifier " "on the method. The strings to which the ValueMap contents " "are 'translated' may also be specified in the subclass as a " "Values array qualifier.") ] uint32 Reset(); [Description ( "Requests that the LogicalDevice be enabled (\"Enabled\" " "input parameter = TRUE) or disabled (= FALSE). If " "successful, the Device's StatusInfo property should also " "reflect the desired state (enabled/disabled). The return " "code should be 0 if the request was successfully executed, " "1 if the request is not supported and some other value if " "an error occurred. In a subclass, the set of possible " "return codes could be specified, using a ValueMap qualifier " "on the method. The strings to which the ValueMap contents " "are 'translated' may also be specified in the subclass as a " "Values array qualifier.") ] uint32 EnableDevice( [IN] boolean Enabled); [Description ( "Requests that the LogicalDevice be brought online (\"Online\" " "input parameter = TRUE) or taken offline (= FALSE). " "\"Online\" indicates that the Device is ready to accept " "requests, and is operational and fully functioning. In this " "case, the Device's Availability property would be set to " "a value of 3 (\"Running/Full Power\"). \"Offline\" indicates " "that a Device is powered up and operational, but not processing "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -