You will need to set IP, userid, and pwd (first three variables) in order to use the script on your router. It also outputs a nice HTML table the function BetterTable() can be used on any 2D array. Bonjour makes it easy to discover, publish, and resolve network services with a sophisticated, yet easy-to-use, programming interface that is accessible from Cocoa, Ruby, Python, and. It may be used for all those who need to monitor such routers, and therefore I am sharing it. Bonjour, also known as zero-configuration networking, enables automatic discovery of devices and services on a local network using industry standard IP protocols. So I wrote a script that probes the Lancom router and pulls out the DHCP/BOOTP table. Presumably, this OID gives you the list of DHCP addresses issued however, that doesn't mean they are live at the time you poll the router (someone could have unplugged the cable, or turned them off). At this point, you would snmpwalk the router using SNMPv2c and the SNMP community you configured on it. Let's just go on the assumption that staDhcpLanIpadd (OID: 1.3.6.1.5.1.32.21.1.2) is the OID you need. The LANCOM-1711-MIB is one possibility, but it's hard to know for sure you should contact LANCOM support if you don't know which SNMP OID to poll. When you use the PHP SNMP Extension, you first need to know the OID for the table with the correct information. ![]() I don't think SNMP will really solve your problem, but I will include what I can to assist. The syntax from the linux CLI is nmap -sP 192.0.2.0/24 (substitute your subnet instead of 192.0.2.0/24). Since Windows hosts don't respond to pings by default, it also includes a brief TCP port scan as well. This will show you the allocated IP addresses and the MAC addresses of all connected devices. ![]() The best way to be sure you get all live hosts is with a ping sweep of the subnet, using a tool like nmap. To see all of the devices connected to your network, type arp -a in a Command Prompt window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |