Skip to content

Scan agent incorrectly marking IPs as discovered that are unused #74

Description

@9strands

Versions:
PHPIPAM host: PHP IPAMversion 1.5 with PHP 7.3.20
PHPIPAM-agent host https://github.com/phpipam/phpipam-agent master branch as of 2021-08-29 with PHP 7.4.22

We're trying to scan a /22. When I run the scan agent, it manually detects which IPs are up and not up according to the debug output when I run the scan manually. However, in the PHPIPAM dashboard, all IP's in the subnet are marked as discovered.

For example - running php index.php update prints the following details out:

ICMP Host Unreachable from 172.23.241.13 for ICMP Echo sent to 172.23.240.3
ICMP Host Unreachable from 172.23.241.13 for ICMP Echo sent to 172.23.240.9
ICMP Host Unreachable from 172.23.241.13 for ICMP Echo sent to 172.23.240.8
ICMP Host Unreachable from 172.23.241.13 for ICMP Echo sent to 172.23.240.7
ICMP Host Unreachable from 172.23.241.13 for ICMP Echo sent to 172.23.240.6
ICMP Host Unreachable from 172.23.241.13 for ICMP Echo sent to 172.23.240.5
ICMP Host Unreachable from 172.23.241.13 for ICMP Echo sent to 172.23.240.4
...
172.23.240.1 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.706/0.706/0.706
172.23.240.2 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.739/0.739/0.739
172.23.240.3 : xmt/rcv/%loss = 1/0/100%
172.23.240.4 : xmt/rcv/%loss = 1/0/100%
172.23.240.5 : xmt/rcv/%loss = 1/0/100%
172.23.240.6 : xmt/rcv/%loss = 1/0/100%
172.23.240.7 : xmt/rcv/%loss = 1/0/100%
172.23.240.8 : xmt/rcv/%loss = 1/0/100%
...

However, in the subnet, these IPs all show up as online after the scan agent connects to the database and provides an update.

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions