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.
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.
Lookup the ADM_DHCPScopesTable for the row with RecordId equal to IPRange.ScopeRecordId.
If it is found, perform the following processing.
Assign the ScopeName of the scope row entry to IPRange.DhcpScopeName of Param_range.
Assign the SubnetId of the scope row entry to the IPRange.SubnetId of Param_range.
Assign the SubnetMask of the scope row entry to the IPRange.SubnetMask of Param_range.
Assign the Description of the scope row entry to the IPRange.Description of Param_range.
Assign ExclusionRanges of the scope row entry to the IPRange.ExclusionRanges of Param_range.
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.
Lookup ADM_DHCPServersTable on RecordId using scope row entry's DHCPServerRecordId.
Lookup the ADM_ServerRolesTable on RecordId by using the ServerRoleRecordId in the row in the ADM_DHCPServersTable.
Lookup the ADM_ServersTable on record identifier by using the ServerRecordId in the row in the ADM_ServerRolesTable.
From the row in the ADM_ServersTable, make the following assignments:
Assign ServerGuid from the row in the ADM_ServersTable to IPRange.DhcpServerGuid of Param_range.
Assign Name from the row in the ADM_ServersTable to IPRange.DhcpServerName of Param_range.