ns tcl/ex/wireless.tcl : This is the first command in the simulation.
-sc mit/uAMPS/sims/nodescen : Reads the file "nodescen" in mit/uAMPS/sims/
-rp $alg : That's the algoritm that you select in leach_test line 5.
... Other choices are `leach_c' and `pegasis' (If pegasis-leach is implemented.)
-x $x : The X coordinate.
http://en.wikipedia.org/wiki/Coordinate_system
-y $y : The Y coordinate.
-nn $nn : Like any other simulation.tcl : Number of nodes.
-stop $stop : Stop the simulation after <n> seconds.
-eq_energy $eq_energy : eq_energy=1, defined in leach_test line 23.
-init_energy $init_energy : Initial energy, leach_test line 24: init_energy=2
-filename $filename : filename=$alg, leach_test line 10.
-dirname $dirname : leach_test line 9 : dirname="mit/leach_sims"
-topo $topology_file : topology_file="mit/uAMPS/sims/100nodes.txt", line 17.
-num_clusters $num_clusters : Number of clusters : num_clusters=5 : line 21.
-bs_x $bs_x : bs_x=50 , line 31.
-bs_y $bs_y 2>$dirname/$filename.err 1>$dirname/$filename.out & :
.. I don't know what the two ns2/tcl commands 'bs_x' and 'bs_y' actually do.
.. May be Google will come up with an answer ?
Good luck
..
-