How to get traceroute data between two remote machines?
Hi there
I am using JDK 1.4 and thus I wrote my code for tracerout like this
Cmd = "tracert host X";
Runtime r = Runtime.getRuntime();
Process p = r.exec(Cmd);
This works perfectly and gives me results between host X and my machine.
Now I would like to run my code from my PC but it should give me the result of traceroute between machine X and Y. How do I do that? Do I need to overcome any authentication problem for the remote hosts?
take care
Mohammed Jubaer Arif.
[523 byte] By [
Jubaera] at [2007-11-27 9:04:41]

# 1
That's not what it does. It traces a route from the current host to another one. I'm not aware of any way a third machine can determine that except by running tracert/traceroute on the desired source machine.
Also the route from A to B may be different from the route from B back to A.
Also both will vary over time anyway if the path is long enough.
Why do you need to know this? and why from a third host?
ejpa at 2007-7-12 21:38:02 >

# 2
Hi Ejp
As you said
"Also the route from A to B may be different from the route from B back to A." My aim is to prove exactly that.
Then, yes I agree with you that it is not possible to get traceroute data without running tracert/traceroute on the desired source machine.
But it is time consuming to go to each machine and run the command. Say I got 3 machines X, Y and Z. Then the fourth machine is my own PC. It would be easier if I could run the program in my PC and could get the traceroute data between X to Y, Y to X, X to Z, Z to X, Y to Z and Z to Y.
I want to run the command once and want to get traceroute data between all the available hosts.
take care
Mohammed Jubaer Arif
# 3
You could set each of the 200 nodes in turn to be your gateway (via the 'route' command) and then do tracert to each of the target machines, then you will get the route from localhost via A to B, so just subtract the localhost->A part. Just a bit of scripting.
ejpa at 2007-7-12 21:38:02 >
