I'm developing a web application that will test the servers and bring the result equal to a tracert
of Windows or traceroute
of Linux. I'm developing in Java and using the above commands as follows:
I identify the server and call:
Runtime.getRuntime().exec("tracert " + hostCanonicalName);
After the execution I get the String
and I add a graph (Vis.js) with the path where the request passed.
I've already researched the web and found nothing in Java that does otherwise.
Is there a framework that does this? I read something about HttpCliente
and did not get a satisfactory answer.
I do not want to use something directly related to the OS and I still can not understand the commands completely, because every IP that I testo it returns a different pattern.