Issue Summary

      Discovery tool v3.1.9 returns error when scanning a IP address range. For example, in the Scan Settings, if a single IP, or multiple IPs separated by the semi colon, then the scan is fine. But if the Scan Settings is configured with an IP range (192.168.0.0-20) or with a CIRD notation range, the scan will return error.

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Install the Discovery tool version 3.1.9
      2. Configure the "Scan Settings" with an IP range

      Expected Results

      The expected result is that the scan would be performed correctly

      Actual Results

      The actual result is that the scan would fail and return the error below.

      The below exception is thrown in the discovery log:

      6/27/2023 5:22:18 PM: [Normal] Start Scan: 192.168.0.20
      6/27/2023 5:22:18 PM: [Normal] Ping 192.168.0.20 --> Success ResponseTime=0ms TTL=128
      6/27/2023 5:22:18 PM: [Error] Error scanning host
      6/27/2023 5:22:18 PM: [Normal] Exceptions:
      6/27/2023 5:22:18 PM: [Normal] Object reference not set to an instance of an object.
         at Insight.Discovery.ProviderClasses.AssetProvider.GetHostInfoResultByKnownCredentials(List`1 knownCredentials, Int32 ttl, HostInfoDto additionalData, String ip) in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE127-BUILD\ProviderClasses\AssetProvider.cs:line 221
         at Insight.Discovery.ProviderClasses.AssetProvider.GetHostInfo(String ip, Int32 port, Boolean usePowerShell, Int32 ttl, Boolean autoAddSudo, List`1 enabledPatternFiles, List`1 disabledPatternFiles, String scanSettingsEntryId, Boolean basicHostInfo) in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE127-BUILD\ProviderClasses\AssetProvider.cs:line 136
      

      Workaround

      The work-around at the moment is to downgrade to previous version of the Discovery tool or not to use an IP range.

          Form Name

            [JSDSERVER-13621] Discovery tool v3.1.9 return error when scanning IP address range

              Unassigned Unassigned
              df8885b02156 Loc Nguyen (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: