Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-11052

Not all usable IP addresses are included in the Discovery scan of a CIDR IP address

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Low Low
    • None
    • Discovery 3.1.1
    • Assets Discovery
    • None

      Issue Summary

      Not all usable IP addresses are included in the Discovery scan of a CIDR IP address

      Environment

      Discovery 2.29.0, Discovery 3.1.1

      Steps to Reproduce

      1. Set up Insight Discovery as per this doc - Set up Insight Discovery.
      2. Configure the IP range in the scan settings with the modifier to scan all the usable IP addresses. For example, 192.168.178.0/23.
      3. Start a scan with the scan setting above and observe the number and the list of IP addresses generated.

      Expected Results

      The number of IP addresses generated is the number of usable IP addresses. For example, for the CIDR prefix of /23, 510 IP addresses are generated and scanned by the Insight Discovery tool

      Actual Results

      The number of IP addresses generated is incorrect for all CIDR prefix except /24. 192.168.178.0/23, for instance, has only 508 IP addresses generated and scanned. 192.168.178.255 and 192.168.179.0 are missing.

      Here's another example where 1022 IP addresses are expected but only 1016 are generated. All the xxx.xxx.xxx.0 and xxx.xxx.xxx.255 usable IP addresses are excluded from the scan.

      1/21/2022 7:20:45 PM : ScanSetting: 00001 with entire Range: 192.168.56.0/22
      1/21/2022 7:20:45 PM : Generating list of IP's to scan from range: 192.168.56.0/22
      1/21/2022 7:20:45 PM : Getting 1016 IP's to scan.
      

      Workaround

      Include the single IP addresses like

      192.168.178.0/23;192.168.178.255;192.168.179.0
      

            [JSDSERVER-11052] Not all usable IP addresses are included in the Discovery scan of a CIDR IP address

            Michelle Chin made changes -
            Link New: This issue is related to JSDSERVER-11333 [ JSDSERVER-11333 ]
            Michelle Chin made changes -
            Resolution New: Not a bug [ 12 ]
            Status Original: In Progress [ 3 ] New: Closed [ 6 ]
            vgedzhev (Inactive) made changes -
            Status Original: Gathering Impact [ 12072 ] New: In Progress [ 3 ]
            vgedzhev (Inactive) made changes -
            Assignee New: vgedzhev [ 8a797fe2b442 ]
            Bugfix Automation Bot made changes -
            Support reference count New: 1
            Yann made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Michelle Chin made changes -
            Description Original: h3. Issue Summary
            Not all usable IP addresses are included in the Discovery scan of a CIDR IP address

            h3. Steps to Reproduce
             # Set up Insight Discovery as per [this doc - Set up Insight Discovery|https://confluence.atlassian.com/insightapps/set-up-insight-discovery-1085180655.html].
             # Configure the [IP range in the scan settings|https://confluence.atlassian.com/insightapps/scan-settings-1085180664.html#Scansettings-IP-Range] with the modifier to scan all the usable IP addresses. For example, 192.168.178.0/23.
             # Start a scan with the scan setting above and observe the number and the list of IP addresses generated.

            h3. Expected Results
            The number of IP addresses generated is the number of usable IP addresses. For example, for the CIDR prefix of /23, 510 IP addresses are generated and scanned by the Insight Discovery tool

            h3. Actual Results
            The number of IP addresses generated is incorrect for all CIDR prefix except /24. 192.168.178.0/23, for instance, has only 508 IP addresses generated and scanned. 192.168.178.255 and 192.168.179.0 are missing.

            Here's another example where 1022 IP addresses are expected but only 1016 are generated. All the xxx.xxx.xxx.0 and xxx.xxx.xxx.255 usable IP addresses are excluded from the scan.
            {code}
            1/21/2022 7:20:45 PM : ScanSetting: 00001 with entire Range: 192.168.56.0/22
            1/21/2022 7:20:45 PM : Generating list of IP's to scan from range: 192.168.56.0/22
            1/21/2022 7:20:45 PM : Getting 1016 IP's to scan.
            {code}

            h3. Workaround
            Include the single IP addresses like
            {code}
            192.168.178.0/23;192.168.178.255;192.168.179.0
            {code}
            New: h3. Issue Summary
            Not all usable IP addresses are included in the Discovery scan of a CIDR IP address

            h3. Environment
            Discovery 2.29.0, Discovery 3.1.1

            h3. Steps to Reproduce
             # Set up Insight Discovery as per [this doc - Set up Insight Discovery|https://confluence.atlassian.com/insightapps/set-up-insight-discovery-1085180655.html].
             # Configure the [IP range in the scan settings|https://confluence.atlassian.com/insightapps/scan-settings-1085180664.html#Scansettings-IP-Range] with the modifier to scan all the usable IP addresses. For example, 192.168.178.0/23.
             # Start a scan with the scan setting above and observe the number and the list of IP addresses generated.

            h3. Expected Results
            The number of IP addresses generated is the number of usable IP addresses. For example, for the CIDR prefix of /23, 510 IP addresses are generated and scanned by the Insight Discovery tool

            h3. Actual Results
            The number of IP addresses generated is incorrect for all CIDR prefix except /24. 192.168.178.0/23, for instance, has only 508 IP addresses generated and scanned. 192.168.178.255 and 192.168.179.0 are missing.

            Here's another example where 1022 IP addresses are expected but only 1016 are generated. All the xxx.xxx.xxx.0 and xxx.xxx.xxx.255 usable IP addresses are excluded from the scan.
            {code}
            1/21/2022 7:20:45 PM : ScanSetting: 00001 with entire Range: 192.168.56.0/22
            1/21/2022 7:20:45 PM : Generating list of IP's to scan from range: 192.168.56.0/22
            1/21/2022 7:20:45 PM : Getting 1016 IP's to scan.
            {code}

            h3. Workaround
            Include the single IP addresses like
            {code}
            192.168.178.0/23;192.168.178.255;192.168.179.0
            {code}
            Michelle Chin created issue -

              8a797fe2b442 vgedzhev (Inactive)
              michin Michelle Chin
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: