Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You would need to install R and the necessary libraries. Once R is installed, you may install the libraries as follows:

 

Code Block
# R Commands:
install.packages("optparse")
install.packages("dplyr")
install.packages("ggpubr")
install.packages("tidyr")
install.packages("ggplot2")

...

Code Block
# query for help
$ Rscript analyze.r -h
	-i CHARACTER, --inputfile=CHARACTER
	path to input file (e.g., 2018-02-21-pg-v4-uk-vt.log)


# example run
$ ./analyze.r -i 2018-03-02-slac-v4-uk.log

 

Data Collection

2) Instantiate a GNU screen or tmux session on a server that will not be turned off for a couple of days.
I believe we need a terminal multiplexer; many a times I have interrupted long running jobs when I have closed a terminal window by mistake and lost the session, or that I have to disconnect my laptop from the server and I lose the session. These multiplexers, when instantiated on the server, allow us to spawn the measurement process under their tree. We can then disconnect from the server and reconnect at a later stage. (I personally prefer tmux. However, screen is equally good. Here is some useful documentation on tmux.
3) Executing the script includes passing it the necessary arguments and pipe the output to a file. I tend to prefer tee so that I may also see the output on the terminal, while it is being saved to a file. Please see the command below, which was executed under a tmux session.
Code Block
$ sudo ./ping-vs-tcp.pl --prot 4 --port 80 --count 3 | tee 2018-03-02-ps-v4-uk.log

 

4) Verify that you are receiving results. 
Assuming that you ran the command above, the script will continue dumping output to the terminal as well as writing to the file. After about 15 minutes or so, you may check the contents of the file to see if updates are being added.

 

Code Block
$ tail -20 2018-03-02-ps-v4-uk.log

 

5) Disconnect. (Reconnect every few days to see when the collection process is complete)
You may disconnect from a TMUX session using: CTRL+b, d
To reconnect to the tmux session, look for the name of the session. Lets assume that the name of the session is “1”. You may reconnect to the “1” session using the attach option.
Code Block
$ tmux ls
1: 1 windows (created Tue Mar 27 11:32:10 2018) [156x85]
default: 1 windows (created Tue Mar 27 11:32:10 2018) [80x24]
 
$ tmux a -t 1