...
 
Commits (7)
......@@ -59,3 +59,4 @@ For more detailed information:
* [Inspecting OAI](https://gitlab.flux.utah.edu/powder-profiles/OAI-Real-Hardware/blob/master/inspect.md)
* [Modifying OAI](https://gitlab.flux.utah.edu/powder-profiles/OAI-Real-Hardware/blob/master/modify.md)
* [Modifying This Profile](https://gitlab.flux.utah.edu/powder-profiles/OAI-Real-Hardware/blob/master/modify-profile.md)
* [Monitor Interfaces](https://gitlab.flux.utah.edu/powder-profiles/OAI-Real-Hardware/blob/oaisim/monitor.md)
[1]
host=128.110.153.209
username=sonika05
num=1
[2]
host=155.98.36.59
username=sonika05
num=1
#!/bin/bash
while read line; do
if [[ $line =~ ^"["(.+)"]"$ ]]; then
obj_num=${BASH_REMATCH[1]}
interface="/tmp/remote$obj_num"
intf="$intf -i $interface"
while read line; do
if [[ $line =~ "host="(.+) ]]; then
host=${BASH_REMATCH[1]}
echo $host
elif [[ $line =~ "username="(.*) ]]; then
username=${BASH_REMATCH[1]}
echo $username
elif [[ $line =~ ^"num="(.*) ]]; then
num=${BASH_REMATCH[1]}
echo $num
else
break
fi
done
echo "ssh $username@$host \"sudo cat /tmp/local\" > $interface"
ssh $username@$host "sudo cat /tmp/local" > $interface &
fi
done < $1
sudo wireshark -k $intf
#!/bin/bash
usage() {
cat <<EOM
Usage:
$(basename $0) <interface>
Provide the interface to start the capture on
EOM
exit 0
}
[ -z $1 ] && { usage; }
pipe=/tmp/local
if [[ -p $pipe ]]; then
rm -f /tmp/local
fi
mkfifo /tmp/local
exec 3<>/tmp/local
tcpdump -s 0 -U -n -w - -i $1 not port 22 > /tmp/local
if [ $? -ne 0 ]; then
usage
fi
# Monitoring interfaces within the experiment
Scripts built on top of tcpdump and wireshark can be used to monitor different
interfaces on different servers in the experiment.
Login to different servers and run the `start_capture.sh` script with the interface to be debugged:
sudo /local/repository/bin/start_capture.sh <interface>
On a separate server which has wireshark use the `monitor.sh` script to view the packet dump from
all the servers where you started the capture.
You will need to configure the server ip and username in `interface_list.conf` and run as follows:
sudo ./monitor.sh interface_list.conf
Sample `interface_list.conf` is present in the repository.
......@@ -106,6 +106,10 @@ pc.defineParameter("TYPE", "Experiment type",
# portal.ParameterType.BOOLEAN, False,
# longDescription="When enabled, RF devices with real antennas and transmissions propagated through free space will be selected. Leave disabled (default) to assign RF devices connected via transmission lines with variable attenuator control.")
#pc.defineParameter("RADIATEDRF", "Radiated (over-the-air) RF transmissions",
# portal.ParameterType.BOOLEAN, False,
# longDescription="When enabled, RF devices with real antennas and transmissions propagated through free space will be selected. Leave disabled (default) to assign RF devices connected via transmission lines with variable attenuator control.")
params = pc.bindParameters()
#
......