The entPhysicalContainsTable exposes the container relationships between physical entities. This table provides the same information that can be found by constructing the virtual containment tree for a given entPhysicalTable, but in a more direct format.
The following functions are for use with the entPhysicalContainsTable in the Entity MIB:
Adds an entry to the entPhysicalContainsTable table for the specified entPhysicalIndex and childIndex. The entPhysicalContainedIn OID that is present in the entPhysicalTable for the childIndex might be replaced by the OID for entPhysicalIndex. The OID is replaced if the entPhysicalIndex has a lower index than the original index.
for successful addition.
for failure to add.
for stale index.
if the entry already exists for the specified entPhysicalIndex and childIndex.
Deletes the parentIndex or childIndex entry that is present in the entPhysicalContainsTable.
for success.
for failure.
for stale entry, either parent or child, or both.
Deletes all entries in the entPhysicalContainsTable where the parent index is equal to the specified parentIndex.
of children successfully deleted for the specified parent.
for failure.
for stale parent entry.
Deletes all entries in the entPhysicalContains table where the child index is equal to the specified childIndex.
of parents successfully deleted for the specified child.
for failure.
for stale child entry.
Get the indexes for all the children of the specified parent in the entPhysicalContainsTable.
Returns an array of integer indexes, with null termination.
Returns NULL if children exist, or if not enough memory exists when allocating the array. The array is a copy that should be freed when done.