Menu

#59 auto-scan feature thoughts

open
5
16 hours ago
2012-06-18
Dj Ernie
No

Hi Miha,

having a feature to auto-detect ip-ranges and fill the database would be very nice. One method I already have seen working doing something similar is nested within the Observium project code. They query network routers via SNMP and retrieve the IP-address prefix tables.

You list at your roadmap you would like to use ICMP to do the same task, but that might not work everywhere, due to system network configurations or possible firewalls. Routing information is the best way to go, routers already have subnets configured and have an active ARP table of all mac and IP-addresses in use. All this information can be simply queried over SNMP.

Hope this information can be useful.
With kind regards,

Michiel Klaver
IT Professional

Discussion

  • Jernej

    Jernej - 2012-06-19

    it could also use RIPE (whois) inet-num information

     
  • Gustavo Moura de Sousa

    I would like this ability too.

     
  • Anonymous

    Anonymous - 2012-11-15

    Yes, we need some kind automatic query.

     
  • mopep

    mopep - 2013-01-21

    I use nmap to scan subnets. I also created a customized IP field (LastSeen). If device/IP is online, I update state to online and then timestamp lastseen field.
    For IP/devices offline, I run nightly update to table if state is online and timestamp is older than 2 days, I move back to offline. Noob to scripting and mysql so not sure if it is efficient, but it has been working in my testing.

    alan

     
  • Anonymous

    Anonymous - 2013-02-02

    Hi Alan,

    Would you be able to share your efforts for the nmap wrapper? This is the single feature missing from what is so far a great bit of software!

     
  • mopep

    mopep - 2013-02-05

    Sorry for the delays. Below are the scripts and a brief description of how I set up the polling. Here is site I used for the script.
    http://www.e-comment.com/index.php/knowledge-base/linux-unix/24-load-nmap-data-into-mysql.html

    1. Added a custom field to my IP list (LastSeen). I use this for moving IPs from online to offline if not seen for certain timeframe.
    2. Create the needed subnet in phpipam and set state to 0 (offline) and give 'LastSeen' date when created.
    3. The script uses two files...... subnets to scan (subnets.txt) and to exclude IPs(EXsubnets.txt).
      The nmap portion will only record online devices...this gets
      written to another file (Nmap.txt).
    4. Last file created is for the mysql update format.

    I run the nmap scan every few hours. The second script is a scheduled job and will check for any devices that had previously been online but have a timestamp greater than 2 days and move back to offline state. second script runs every 12hrs.

     

    Last edit: mopep 2013-02-05
  • mopep

    mopep - 2013-02-05

    here is second script

     
  • Anonymous

    Anonymous - 2013-03-28

    Getting Subnet Information from RIPE would be VERY VERY helpfull and nice!

     
  • alexjhart

    alexjhart - 2013-04-23

    ICMP and ARP table via SNMP sound like great options

     
  • Anonymous

    Anonymous - 2013-04-26

    Indeed, a scanning/polling feature integrated into a release for subnets present in the database is the only thing this is missing.

    I would be more than willing to donate if this was released fairly quickly!

     
  • Miha Petkovsek

    Miha Petkovsek - 2013-07-04

    Hi, ICMP scans are implemented in latest devel release. You mark subnet as pingable and run pingCheck.php script from cron and it shows which device is up/down etc. Individual hosts can be excluded, timeout can be set under administration (warning/dead).

    Also you can manually ping, and discover subnet (new hosts) via GUI. php threading is required, otherwise it takes ages. By default 128 concurent threads are enabled, you can modify as needed.

    SNMP/telnet/nmap will be added soon, working on it.

    brm

     
  • Anonymous

    Anonymous - 2013-10-01

    I love this piece of software and have almost got it across the line where I currently work. I think a polling feature would be great to remove the manual effort and then a status icon which would be red/green based on dead/alive host which can update hourly.
    This would make the difference between assuming and validating an IP is free or not.

     
  • Anonymous

    Anonymous - 2014-02-13

    Would love to have an nmap integration! That would be a killer feature.

     
  • Anonymous

    Anonymous - 2014-11-14

    Hi,
    Just installed 1.0 and the interface and the potential is great.
    As everybody here auto-discovery though SNMP would be a huge time saver if not only to try to discover hostname, machine type (server/router) OS, OS version.

    /Jason

     
  • Anonymous

    Anonymous - 2015-01-30

    Hi
    Have you implemented SNMP disvover og Networks?
    /Oystein

     
  • Anonymous

    Anonymous - 2015-02-24

    Hi,
    Are you really still just thinking about this, or is there any movement towards getting something into the application? It's possibly the single biggest omission feature wise at the moment.
    Following the discovery of a new device (whether discovered via Switch SNMP Arp table or not), it would be great to be able to automatically probe the device via some configured SNMP settings so that some basic information can be seen about a device.

     
  • Anonymous

    Anonymous - 2015-06-02

    Hi There,

    Just following to check update on this feature, There is a demand for this to be implemented now.

    Zuber

     
  • Benoit Lambert

    Benoit Lambert - 2015-07-24

    Yes, SNMP is the most useful tool to gather information. Any idea when version 1.2 will be released? I assume it will contain SNMP functions.

     
  • Miha Petkovsek

    Miha Petkovsek - 2016-03-09

    Available on GitHub - development release.
    https://github.com/phpipam/phpipam

     
  • Anonymous

    Anonymous - 2016-03-16
    Post awaiting moderation.
  • Eric Maxwell

    Eric Maxwell - 2016-05-19

    Hi Miha, is there any news on snmp support? this would be really useful if added.

     
  • Anonymous

    Anonymous - 2017-01-20
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.