Better instructions for analytics.py 42/1442/1
authorKatrina LaCurts <katrina.lacurts@plexxi.com>
Thu, 26 Sep 2013 14:35:52 +0000 (10:35 -0400)
committerKatrina LaCurts <katrina.lacurts@plexxi.com>
Thu, 26 Sep 2013 14:35:52 +0000 (10:35 -0400)
Signed-off-by: Katrina LaCurts <katrina.lacurts@plexxi.com>
scripts/analytics.py

index 2f57731bb9cd29ee6e2436192f2b44ab6628553e..0492df7d2e1d60d78ff5a390cf0891054e63e016 100644 (file)
@@ -5,13 +5,15 @@ import json
 import sys
 
 # 1. Start the controller
-# 2. On the mininet VM, run:
-#    > sudo mn --controller=remote,ip=192.168.56.1 --topo tree,2
-#    > h1 ping h2
-# 3. On the local machine (e.g., your laptop), run this script.
+# 2. On the local machine (e.g., your laptop), start this script.
 #    > python analytics.py
-# Should see output like: "xxx bytes between 10.0.0.1 and 10.0.0.2",
-# where xxx is a positive integer.
+# 3. On the mininet VM, run:
+#    > sudo mn --controller=remote,ip=192.168.56.1 --topo tree,2
+#    > h1 ping h3
+# 4. Give commands to analytics.py.  For instance:
+#    > host bytes 10.0.0.1 10.0.0.3
+#   (There is a usage prompt that prints at the beginning of analytics.py)
+# 5. Type 'quit' to exit analytics.py
 
 '''
 Class to keep track of host statistics (byte count, bit rate)