Submit a ticketCall us

Training ClassThe Orion® Platform Instructor-led Classes

Provided by SolarWinds® Academy, these trainings will introduce users to the Orion Platform and its features, management, and navigation. These courses are suitable for users looking to discover new tips, tricks, and ways to adapt their Orion products to better suit their monitoring needs:
Deploying the Orion Platform
Configuring Orion views, maps, and accounts
Configuring Orion alerts and reports

Reserve your seat.

Home > Success Center > IP Address Manager (IPAM) > IPAM - Knowledgebase Articles > Unable to scan Windows DHCP server with error: System.ArgumentNullException: Value cannot be null

Unable to scan Windows DHCP server with error: System.ArgumentNullException: Value cannot be null

Created by Jeremy Holmes, last modified by MindTouch on Jun 23, 2016

Views: 976 Votes: 0 Revisions: 7

Overview

This article addresses the following error that appears when attempting to scan a Windows DHCP server:

System.ArgumentNullException: Value cannot be null.

 

In the C:\programdata\solarwinds\logs\IPAM\jobs\IPAM.Collector.Jobs_[X].log you will find an error such as the following:

2016-05-24 06:39:38,118 [STP SmartThreadPool Thread #0] INFO  SolarWinds.IPAM.Jobs.DHCP.Factory.WindowsDhcpFactorySubJob - GetIpRanges(IPAddressofDHCP,IPAddressofScope,Available,...) = 1 items
2016-05-24 06:39:38,150 [STP SmartThreadPool Thread #0] ERROR SolarWinds.IPAM.Jobs.DHCP.Factory.WindowsDhcpFactorySubJob - Exception while trying to enumarete scopes in DHCP server 'IPAddressofScope'
System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)
   at SolarWinds.IPAM.DHCP.Microsoft.DhcpViewer.ParseDhcpOptionBinaryValues(DHCP_OPTION_VALUE optionValue, DhcpOptions dhcpOptions)
   at SolarWinds.IPAM.DHCP.Microsoft.DhcpViewer.GetScopeDhcpOptions(IPAddress subnetAddress, List`1 optionsServerMeta)
   at SolarWinds.IPAM.Jobs.DHCP.DhcpDatasetHelper.AddScopeSettings(IPAddress subnetAddress, List`1 optionsServerMeta)
   at SolarWinds.IPAM.Jobs.DHCP.DhcpDatasetHelper.AddSubnet(IPAddress subnetip, List`1 optionsServerMeta)
   at SolarWinds.IPAM.Jobs.DHCP.Factory.WindowsDhcpFactorySubJob.DoDhcpServerSync(DhcpServerSyncScopeJobSettings settings, CredentialBase credBase, DhcpJobResults results)

Environment

IPAM 4.1 and later

Cause 

This occurs when one of the parameters in the scope is a null value. 

Resolution

  1. Add the Windows Remote Server Administration Tool. Refer to Installing or Removing the Remote Server Administration Tools Pack.
  2. Locate the Scope via the IPaddressofScope in the error from the IPAM.Collector.log file.
  3. Expand it to review the scope options.
  4. Locate the parameter with a null value and either fill it out or delete it. 
  5. Rescan the DHCP server in IPAM.
 

 

Last modified

Tags

Classifications

Public