Changes between Version 11 and Version 12 of GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_blipp/ExecuteExperiment
- Timestamp:
- 07/18/13 11:13:51 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_blipp/ExecuteExperiment
v11 v12 51 51 Simply specify the file on the given node where you are collecting !NetLogger log messages. BLiPP will then check the file for new messages on the specified interval and report the collected values to the measurement store. 52 52 53 The event type(s) for !NetLogger probes depend what is found in the log messages. Since they are defined by the programmer, BLiPP does not know about them until it begins parsing the log file. Once data is available, BLiPP will update the measurement information and display the event types in the drop down next to the scheduled test. Give it a few minutes and then refresh the page. Once the event types appear, you can select 'Graph' and display a graph of the collected measurements from the log file. 53 The event type(s) for !NetLogger probes depend what is found in the log messages. Since they are defined by the programmer, BLiPP does not know about them until it begins parsing the log file. Once data is available, BLiPP will update the measurement information and display the event types in the drop down next to the scheduled test. Give it a few minutes and then refresh the page. Once the event types appear, you can select 'Graph' and display a graph of the collected measurements from the log file. The following exercise will ask you to use !NetLogger on your experiment node and collect the measurement data with BLiPP. 54 54 55 [[Image(chart.png, 50%)]]55 [[Image(chart.png, 20%)]] 56 56 57 57 58 58 == __Exercise Tasks__ == 59 59 60 For the following exercise, if you do not have your own source code that you want to try , you can simply us the61 following !HelloWorld.cprogram.60 For the following exercise, if you do not have your own source code that you want to try and instrument with !NetLogger, you can simply us the 61 following [http://groups.geni.net/geni/attachment/wiki/GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_blipp/ExecuteExperiment/netlogger_test.py netlogger_test.py] program. 62 62 63 63 {{{ 64 main() { 65 printf("Hello World\n"); 66 } 64 #!/usr/bin/python 65 import sys 66 import logging 67 import time 68 import random 69 from netlogger.nllog import get_logger 70 from netlogger import nlapi, nllog 71 72 log = nllog.get_logger(".mynamespace") 73 handler = logging.StreamHandler(sys.stdout) 74 log.addHandler(handler) 75 log.set_meta(host=nlapi.get_host()) 76 log.setLevel(logging.INFO) 77 78 while True: 79 log.info("random.number", VAL=random.random()) 80 time.sleep(1) 67 81 }}} 68 82