Hi, i'm developing a little program for my university internal network.. this program run on a tomcat server, and it need to copy the arp table of the central router (IP-MAC, and possibly oslo the HostName and other details) on a local Database..
My problem is how can i get the arp table with the java api?
-
How to get the Arp table...??? (3 messages)
- Posted by: Stefano Gargiulo
- Posted on: April 03 2006 06:19 EDT
Threaded Messages (3)
- How to get the Arp table...??? by Sivananda Hanumanthu on April 04 2006 09:13 EDT
- yes but this is for the localhost by Stefano Gargiulo on April 05 2006 05:45 EDT
- I need by Stefano Gargiulo on April 05 2006 05:47 EDT
- yes but this is for the localhost by Stefano Gargiulo on April 05 2006 05:45 EDT
-
How to get the Arp table...???[ Go to top ]
- Posted by: Sivananda Hanumanthu
- Posted on: April 04 2006 09:13 EDT
- in response to Stefano Gargiulo
Hi Stefano,
Actually you can get arp tables and their information from about MAC and all in Unix/Linux very easily.
Example: $ arp [....options....] this should be done in Shell prompt only
and then by using pipes redirect them to your target file, this is fully related to Network Programming.
But I think you want to get the tables from Java APIs..just refer these links,
http://www.adventnet.com/products/webnms/help/javadocs/consolidated_javadocs/com/adventnet/nms/util/Ping.html
http://www.j-sim.org/v1.3/api/drcl/inet/mac/ARP.html
Sivanand. -
yes but this is for the localhost[ Go to top ]
- Posted by: Stefano Gargiulo
- Posted on: April 05 2006 05:45 EDT
- in response to Sivananda Hanumanthu
thank you, but i don't need to get the arp table of my host, i need to connect to a remote router and get it!
i can't use telnet or ssh for do the linux command $arp, and i can't use this javaAPI because is only for the localhost.. i need an API than can get the arp table from the router! -
I need[ Go to top ]
- Posted by: Stefano Gargiulo
- Posted on: April 05 2006 05:47 EDT
- in response to Stefano Gargiulo
Another solution can be a program in another language that save this table on a file.. but the problem is the same.. how to send the request to the router?
please help me..