This example describes how to determine the empty slots available for new memory cards. This information is useful to system administrators who want to upgrade the capacity of a managed server.
This example shows how to locate information about the installed memory and available slots by using only the objects in the Implementation namespace. Locating Physical Memory Slots shows the CIM objects involved.
You can locate used memory slots by enumerating physical memory instances. To locate unused slots, you also enumerate the OMC_MemorySlot instances and compare the results. The set of unused slots comprises all those OMC_MemorySlot instances whose ElementName property does not match any of the instances of OMC_PhysicalMemory.
This pseudocode depends on the pseudocode in Make a Connection to the CIMOM.
This pseudocode depends on the pseudocode in Make a Connection to the CIMOM and Identifying the Base Server Scoping Instance.