Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

Home > Success Center > IP Address Manager (IPAM) > 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: 14 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
19:42, 22 Jun 2016

Tags

Classifications

Public