how to scan a LAN for live hosts using PHP and SNMP?
Posted
by
aag
on Stack Overflow
See other posts from Stack Overflow
or by aag
Published on 2012-06-30T17:44:12Z
Indexed on
2012/06/30
21:16 UTC
Read the original article
Hit count: 180
I would like to have a quick script listing all active hosts in a LAN, and I am a bit lost. From other posts I figured that this can be done most effectively by polling the DHCP server (in my case a Lancom router) using SNMP.
However, I am not familiar with the SNMP commands in PHP. Is snmpwalk() the correct function? Can I get snmpwalk() or any other php function to return an array that contains a list of all live hosts?
© Stack Overflow or respective owner