Source code for imcsdk.mometa.memory.MemoryUnit

"""This module contains the general information for MemoryUnit ManagedObject."""

from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta


[docs]class MemoryUnitConsts: CAPACITY_UNSPECIFIED = "unspecified" CLOCK_UNSPECIFIED = "unspecified" FORM_FACTOR_DIMM = "DIMM" FORM_FACTOR_FB_DIMM = "FB-DIMM" FORM_FACTOR_OTHER = "Other" FORM_FACTOR_RIMM = "RIMM" FORM_FACTOR_SIMM = "SIMM" FORM_FACTOR_SODIMM = "SODIMM" FORM_FACTOR_SRIMM = "SRIMM" FORM_FACTOR_TSOP = "TSOP" FORM_FACTOR_UNKNOWN = "Unknown" FORM_FACTOR_UNDISCOVERED = "undiscovered" OPER_STATE_ACCESSIBILITY_PROBLEM = "accessibility-problem" OPER_STATE_AUTO_UPGRADE = "auto-upgrade" OPER_STATE_BIOS_POST_TIMEOUT = "bios-post-timeout" OPER_STATE_CHASSIS_LIMIT_EXCEEDED = "chassis-limit-exceeded" OPER_STATE_CONFIG = "config" OPER_STATE_DECOMISSIONING = "decomissioning" OPER_STATE_DEGRADED = "degraded" OPER_STATE_DISABLED = "disabled" OPER_STATE_DISCOVERY = "discovery" OPER_STATE_DISCOVERY_FAILED = "discovery-failed" OPER_STATE_EQUIPMENT_PROBLEM = "equipment-problem" OPER_STATE_FABRIC_CONN_PROBLEM = "fabric-conn-problem" OPER_STATE_FABRIC_UNSUPPORTED_CONN = "fabric-unsupported-conn" OPER_STATE_IDENTIFY = "identify" OPER_STATE_IDENTITY_UNESTABLISHABLE = "identity-unestablishable" OPER_STATE_INOPERABLE = "inoperable" OPER_STATE_MALFORMED_FRU = "malformed-fru" OPER_STATE_NOT_SUPPORTED = "not-supported" OPER_STATE_OPERABLE = "operable" OPER_STATE_PEER_COMM_PROBLEM = "peer-comm-problem" OPER_STATE_PERFORMANCE_PROBLEM = "performance-problem" OPER_STATE_POST_FAILURE = "post-failure" OPER_STATE_POWER_PROBLEM = "power-problem" OPER_STATE_POWERED_OFF = "powered-off" OPER_STATE_REMOVED = "removed" OPER_STATE_THERMAL_PROBLEM = "thermal-problem" OPER_STATE_UNKNOWN = "unknown" OPER_STATE_UPGRADE_PROBLEM = "upgrade-problem" OPER_STATE_VOLTAGE_PROBLEM = "voltage-problem" OPERABILITY_ACCESSIBILITY_PROBLEM = "accessibility-problem" OPERABILITY_AUTO_UPGRADE = "auto-upgrade" OPERABILITY_BIOS_POST_TIMEOUT = "bios-post-timeout" OPERABILITY_CHASSIS_LIMIT_EXCEEDED = "chassis-limit-exceeded" OPERABILITY_CONFIG = "config" OPERABILITY_DECOMISSIONING = "decomissioning" OPERABILITY_DEGRADED = "degraded" OPERABILITY_DISABLED = "disabled" OPERABILITY_DISCOVERY = "discovery" OPERABILITY_DISCOVERY_FAILED = "discovery-failed" OPERABILITY_EQUIPMENT_PROBLEM = "equipment-problem" OPERABILITY_FABRIC_CONN_PROBLEM = "fabric-conn-problem" OPERABILITY_FABRIC_UNSUPPORTED_CONN = "fabric-unsupported-conn" OPERABILITY_IDENTIFY = "identify" OPERABILITY_IDENTITY_UNESTABLISHABLE = "identity-unestablishable" OPERABILITY_INOPERABLE = "inoperable" OPERABILITY_MALFORMED_FRU = "malformed-fru" OPERABILITY_NOT_SUPPORTED = "not-supported" OPERABILITY_OPERABLE = "operable" OPERABILITY_PEER_COMM_PROBLEM = "peer-comm-problem" OPERABILITY_PERFORMANCE_PROBLEM = "performance-problem" OPERABILITY_POST_FAILURE = "post-failure" OPERABILITY_POWER_PROBLEM = "power-problem" OPERABILITY_POWERED_OFF = "powered-off" OPERABILITY_REMOVED = "removed" OPERABILITY_THERMAL_PROBLEM = "thermal-problem" OPERABILITY_UNKNOWN = "unknown" OPERABILITY_UPGRADE_PROBLEM = "upgrade-problem" OPERABILITY_VOLTAGE_PROBLEM = "voltage-problem" PRESENCE_EMPTY = "empty" PRESENCE_EQUIPPED = "equipped" PRESENCE_EQUIPPED_IDENTITY_UNESTABLISHABLE = "equipped-identity-unestablishable" PRESENCE_EQUIPPED_NOT_PRIMARY = "equipped-not-primary" PRESENCE_EQUIPPED_WITH_MALFORMED_FRU = "equipped-with-malformed-fru" PRESENCE_INACCESSIBLE = "inaccessible" PRESENCE_MISMATCH = "mismatch" PRESENCE_MISMATCH_IDENTITY_UNESTABLISHABLE = "mismatch-identity-unestablishable" PRESENCE_MISSING = "missing" PRESENCE_NOT_SUPPORTED = "not-supported" PRESENCE_UNAUTHORIZED = "unauthorized" PRESENCE_UNKNOWN = "unknown" TYPE_3_DRAM = "3DRAM" TYPE_CDRAM = "CDRAM" TYPE_DDR = "DDR" TYPE_DDR2 = "DDR2" TYPE_DDR2_FB_DIMM = "DDR2 FB-DIMM" TYPE_DDR3 = "DDR3" TYPE_DDR4 = "DDR4" TYPE_DRAM = "DRAM" TYPE_EDRAM = "EDRAM" TYPE_EEPROM = "EEPROM" TYPE_EPROM = "EPROM" TYPE_FBD2 = "FBD2" TYPE_FEPROM = "FEPROM" TYPE_FLASH = "FLASH" TYPE_OTHER = "Other" TYPE_RAM = "RAM" TYPE_RDRAM = "RDRAM" TYPE_ROM = "ROM" TYPE_SDRAM = "SDRAM" TYPE_SGRAM = "SGRAM" TYPE_SRAM = "SRAM" TYPE_UNKNOWN = "Unknown" TYPE_VRAM = "VRAM" TYPE_UNDISCOVERED = "undiscovered" VISIBILITY_NO = "no" VISIBILITY_UNKNOWN = "unknown" VISIBILITY_YES = "yes" WIDTH_UNSPECIFIED = "unspecified"
[docs]class MemoryUnit(ManagedObject): """This is MemoryUnit class.""" consts = MemoryUnitConsts() naming_props = set([u'id']) mo_meta = MoMeta("MemoryUnit", "memoryUnit", "mem-[id]", VersionMeta.Version151f, "OutputOnly", 0xf, [], ["admin", "read-only", "user"], [u'memoryArray'], [u'faultInst', u'memoryUnitEnvStats'], ["Get"]) prop_meta = { "array": MoPropertyMeta("array", "array", "ushort", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, [], []), "bank_locator": MoPropertyMeta("bank_locator", "bankLocator", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "capacity": MoPropertyMeta("capacity", "capacity", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["unspecified"], ["0-4294967295"]), "child_action": MoPropertyMeta("child_action", "childAction", "string", VersionMeta.Version151f, MoPropertyMeta.INTERNAL, None, None, None, None, [], []), "clock": MoPropertyMeta("clock", "clock", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["unspecified"], ["0-4294967295"]), "dn": MoPropertyMeta("dn", "dn", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, 0x2, 0, 255, None, [], []), "form_factor": MoPropertyMeta("form_factor", "formFactor", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["DIMM", "FB-DIMM", "Other", "RIMM", "SIMM", "SODIMM", "SRIMM", "TSOP", "Unknown", "undiscovered"], []), "id": MoPropertyMeta("id", "id", "uint", VersionMeta.Version151f, MoPropertyMeta.NAMING, None, None, None, None, [], []), "location": MoPropertyMeta("location", "location", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "memory_type_detail": MoPropertyMeta("memory_type_detail", "memoryTypeDetail", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "model": MoPropertyMeta("model", "model", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "oper_state": MoPropertyMeta("oper_state", "operState", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["accessibility-problem", "auto-upgrade", "bios-post-timeout", "chassis-limit-exceeded", "config", "decomissioning", "degraded", "disabled", "discovery", "discovery-failed", "equipment-problem", "fabric-conn-problem", "fabric-unsupported-conn", "identify", "identity-unestablishable", "inoperable", "malformed-fru", "not-supported", "operable", "peer-comm-problem", "performance-problem", "post-failure", "power-problem", "powered-off", "removed", "thermal-problem", "unknown", "upgrade-problem", "voltage-problem"], []), "operability": MoPropertyMeta("operability", "operability", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["accessibility-problem", "auto-upgrade", "bios-post-timeout", "chassis-limit-exceeded", "config", "decomissioning", "degraded", "disabled", "discovery", "discovery-failed", "equipment-problem", "fabric-conn-problem", "fabric-unsupported-conn", "identify", "identity-unestablishable", "inoperable", "malformed-fru", "not-supported", "operable", "peer-comm-problem", "performance-problem", "post-failure", "power-problem", "powered-off", "removed", "thermal-problem", "unknown", "upgrade-problem", "voltage-problem"], []), "presence": MoPropertyMeta("presence", "presence", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["empty", "equipped", "equipped-identity-unestablishable", "equipped-not-primary", "equipped-with-malformed-fru", "inaccessible", "mismatch", "mismatch-identity-unestablishable", "missing", "not-supported", "unauthorized", "unknown"], []), "rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, 0x4, 0, 255, None, [], []), "serial": MoPropertyMeta("serial", "serial", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "status": MoPropertyMeta("status", "status", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, 0x8, None, None, r"""((removed|created|modified|deleted),){0,3}(removed|created|modified|deleted){0,1}""", [], []), "type": MoPropertyMeta("type", "type", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["3DRAM", "CDRAM", "DDR", "DDR2", "DDR2 FB-DIMM", "DDR3", "DDR4", "DRAM", "EDRAM", "EEPROM", "EPROM", "FBD2", "FEPROM", "FLASH", "Other", "RAM", "RDRAM", "ROM", "SDRAM", "SGRAM", "SRAM", "Unknown", "VRAM", "undiscovered"], []), "vendor": MoPropertyMeta("vendor", "vendor", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "visibility": MoPropertyMeta("visibility", "visibility", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["no", "unknown", "yes"], []), "width": MoPropertyMeta("width", "width", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["unspecified"], ["0-4294967295"]), } prop_map = { "array": "array", "bankLocator": "bank_locator", "capacity": "capacity", "childAction": "child_action", "clock": "clock", "dn": "dn", "formFactor": "form_factor", "id": "id", "location": "location", "memoryTypeDetail": "memory_type_detail", "model": "model", "operState": "oper_state", "operability": "operability", "presence": "presence", "rn": "rn", "serial": "serial", "status": "status", "type": "type", "vendor": "vendor", "visibility": "visibility", "width": "width", } def __init__(self, parent_mo_or_dn, id, **kwargs): self._dirty_mask = 0 self.id = id self.array = None self.bank_locator = None self.capacity = None self.child_action = None self.clock = None self.form_factor = None self.location = None self.memory_type_detail = None self.model = None self.oper_state = None self.operability = None self.presence = None self.serial = None self.status = None self.type = None self.vendor = None self.visibility = None self.width = None ManagedObject.__init__(self, "MemoryUnit", parent_mo_or_dn, **kwargs)