Changes between Version 11 and Version 12 of GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_blipp/ExecuteExperiment


Ignore:
Timestamp:
07/18/13 11:13:51 (11 years ago)
Author:
kissel@cis.udel.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_blipp/ExecuteExperiment

    v11 v12  
    5151Simply 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.
    5252
    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.
     53The 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.
    5454
    55 [[Image(chart.png, 50%)]]
     55[[Image(chart.png, 20%)]]
    5656
    5757
    5858== __Exercise Tasks__ ==
    5959
    60 For the following exercise, if you do not have your own source code that you want to try, you can simply us the
    61 following !HelloWorld.c program.
     60For 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
     61following [http://groups.geni.net/geni/attachment/wiki/GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_blipp/ExecuteExperiment/netlogger_test.py netlogger_test.py] program.
    6262
    6363{{{
    64    main() {
    65       printf("Hello World\n");
    66    }
     64#!/usr/bin/python       
     65import sys
     66import logging
     67import time
     68import random
     69from netlogger.nllog import get_logger
     70from netlogger import nlapi, nllog
     71
     72log = nllog.get_logger(".mynamespace")
     73handler = logging.StreamHandler(sys.stdout)
     74log.addHandler(handler)
     75log.set_meta(host=nlapi.get_host())
     76log.setLevel(logging.INFO)
     77
     78while True:
     79    log.info("random.number", VAL=random.random())
     80    time.sleep(1)
    6781}}}
    6882