3.1.1.1.13.2.1 GetScopeInformationForRange

The GetScopeInformationForRange procedure takes the following input parameter.

Param_range: The IPRange having the IPRange.ScopeRecordId for which additional scope and DHCP server-specific details are to be retrieved.

When the procedure completes, the scope-specific details are filled in Param_range and passed as input parameter.

The following are the steps performed by this procedure:

  1. The address family of the address range for which the scope information is requested is used to determine the simple table within ADM_DHCPScopesTable on which further processing steps are performed.

  2. Look up the ADM_DHCPScopesTable for the row with RecordId equal to IPRange.ScopeRecordId.

  3. If it is found, perform the following processing:

    1. Assign the ScopeName of the scope row entry to IPRange.DhcpScopeName of Param_range.

    2. Assign the SubnetId of the scope row entry to the IPRange.SubnetId of Param_range.

    3. Assign the SubnetMask of the scope row entry to the IPRange.SubnetMask of Param_range.

    4. Assign the Description of the scope row entry to the IPRange.Description of Param_range.

    5. Assign ExclusionRanges of the scope row entry to the IPRange.ExclusionRanges of Param_range.

  4. If IPRange.IsOverlapping is set to TRUE, then look up the row in ADM_DhcpScopeFailoverTable that has ScopeId equal to IPRange.ScopeRecordId.

  5. If such a row is found, set IPRange.RangeOverlapState to IPRangeOverlap.OverlappingBecauseFailover; otherwise set it to IPRangeOverlap.Overlapping.

  6. Look up the row in ADM_ServersTable that has the server instance information that is hosting the scope row entry. This is done by performing the following sequence of look-ups:

    1. Look up ADM_DHCPServersTable on RecordId using the scope row entry's DHCPServerRecordId.

    2. Look up the ADM_ServerRolesTable on RecordId by using the ServerRoleRecordId in the row in the ADM_DHCPServersTable.

    3. Lookup the ADM_ServersTable on record identifier by using the ServerRecordId in the row in the ADM_ServerRolesTable.

  7. From the row in the ADM_ServersTable, make the following assignments:

    1. Assign ServerGuid from the row in the ADM_ServersTable to IPRange.DhcpServerGuid of Param_range.

    2. Assign Name from the row in the ADM_ServersTable to IPRange.DhcpServerName of Param_range.