3.1.1.1.12.2.1 GetScopeInformationForRange

This procedure takes the following input parameters.

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 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 the ADM_DHCPScopesTable on which further processing steps are performed.

  2. Lookup 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.

    6. Lookup the row in the 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. Lookup ADM_DHCPServersTable on RecordId using scope row entry's DHCPServerRecordId.

      2. Lookup 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.

      4. 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.