Difference between revisions of "Get results from PlanetLab"

From NMSL
(New page: __TOC__ == Retrieving Log Files From PlanetLab Nodes == To retrieve log files from your experiments use the command below: <pre> pssh -h nodes.txt -l slice_name -t 300 -p 50 -o ~/result...)
 
 
(3 intermediate revisions by one other user not shown)
Line 10: Line 10:
  
 
The outputs will be saved to a "results" folder under your home dir. There will be one file for each host/node.
 
The outputs will be saved to a "results" folder under your home dir. There will be one file for each host/node.
 +
 +
 +
== Copying Large Files From PlanetLab ==
 +
 +
Occasionally, your log file will be too big for pssh. The cat command above will either timeout or cause an out of memory error. Use the script below as an example to copy the files one-by-one (i.e. sequentially) using standard scp.
 +
 +
<pre>
 +
#!/bin/bash
 +
 +
for i in `cat ~/nodes.txt`
 +
do
 +
  echo "copying from $i"
 +
  scp -i ~/.ssh/id_rsa slice_name@$i:~/logfile.txt .
 +
done
 +
</pre>
 +
 +
Don't forget to replace ''slice_name'' with your own slice.

Latest revision as of 18:14, 29 December 2009

Retrieving Log Files From PlanetLab Nodes

To retrieve log files from your experiments use the command below:

pssh -h nodes.txt -l slice_name -t 300 -p 50 -o ~/results/ "cat yourlogfile.txt" 

The outputs will be saved to a "results" folder under your home dir. There will be one file for each host/node.


Copying Large Files From PlanetLab

Occasionally, your log file will be too big for pssh. The cat command above will either timeout or cause an out of memory error. Use the script below as an example to copy the files one-by-one (i.e. sequentially) using standard scp.

#!/bin/bash

for i in `cat ~/nodes.txt`
do
   echo "copying from $i"	
   scp -i ~/.ssh/id_rsa slice_name@$i:~/logfile.txt .
done

Don't forget to replace slice_name with your own slice.