Commit 5a5e90ae authored by David Hancock's avatar David Hancock

Vibrant eval script updates

parent d48b2da2
#!/bin/bash
pause="read -n 1 -s"
source ssh_vals.sh
MININET="$(cat /tmp/pts_mininet)"
CONTROLLER="$(cat /tmp/pts_controller)"
ADMIN="$(cat /tmp/pts_admin)"
SLICEMGR="$(cat /tmp/pts_slice_manager)"
SLICEMGR2="$(cat /tmp/pts_slice_manager2)"
EVALUATOR="$(cat /tmp/pts_evaluator)"
echo "Manually kill controller and tcpdump"
$pause
#ssh -p 22 $user@pc${nodes[0]}.emulab.net <<zzzL1zzz
# tcpdpid="$(pgrep -f "tcpdump")"
# if [ -n "$tcpdpid" ]
# then
# sudo kill -SIGINT $tcpdpid
# fi
# ctrlpid="$(pgrep -f "controller")"
# if [ -n "$ctrlpid" ]
# then
# sudo kill -SIGINT $ctrlpid
# fi
#zzzL1zzz
for i in `seq 0 4`; do
echo "Resetting pc${nodes[$i]}..."
ssh -tt -p 22 $user@pc${nodes[$i]}.emulab.net <<zzzLIMITzzz
sudo /opt/rs/reset.sh > /dev/null 2>&1 &
exit
zzzLIMITzzz
echo "...done."
done
ttyecho -n $ADMIN EOF
ttyecho -n $SLICEMGR EOF
ttyecho -n $SLICEMGR2 EOF
ttyecho -n $MININET exit
ttyecho -n $CONTROLLER exit
ttyecho -n $ADMIN exit
ttyecho -n $SLICEMGR exit
ttyecho -n $SLICEMGR2 exit
ttyecho -n $EVALUATOR exit
......@@ -81,17 +81,27 @@ echo "Next: xterms for h1, h2, h3, h5, h6"
$pause
xterm -title "Node: h2" -geometry 80x20+1434+0 &
sleep 1
xterm -title "Node: h3" -geometry 80x20+550+500 &
sleep 1
xterm -title "Node: h1" -geometry 80x20+0+500 &
sleep 1
xterm -title "Node: h6" -geometry 80x20+550+810 &
sleep 1
xterm -title "Node: h5" -geometry 80x20+0+810 &
echo "strategic pause..."
$pause
H1="$(cat /tmp/pts_h1)"
H2="$(cat /tmp/pts_h2)"
H3="$(cat /tmp/pts_h3)"
H5="$(cat /tmp/pts_h5)"
H6="$(cat /tmp/pts_h6)"
echo "strategic pause..."
$pause
ttyecho -n $H1 ssh -p 22 $user@pc${nodes[5]}.emulab.net
ttyecho -n $H2 ssh -p 22 $user@pc${nodes[6]}.emulab.net
ttyecho -n $H3 ssh -p 22 $user@pc${nodes[7]}.emulab.net
......
......@@ -2,4 +2,3 @@
sudo /opt/rs/kill_hp4.sh
sudo /opt/rs/start.sh
exit
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment