Changes between Version 8 and Version 9 of GEC19Agenda/GIMI/Procedure/Execute


Ignore:
Timestamp:
03/18/14 11:46:15 (10 years ago)
Author:
divyashri.bhat@gmail.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC19Agenda/GIMI/Procedure/Execute

    v8 v9  
    109109=== 2.2 Write your OML Application ===
    110110
     111Define all varying parameters as properties that can be set within your Application.
     112
     113Save the following code to any location on your node. E.g /usr/local/bin/pingl2.rb
     114
    111115{{{
    112116
     
    208212== 3. Instrument your Application using LabWiki ==
    209213
    210 
     214=== 3.1 Copy binaries and set permissions ===
     215
     216{{{
     217
     218cp pingPlusListener /bin
     219cp ping2.rb /usr/local/bin
     220chmod +x /bin/pingPluListener
     221chmod +x /usr/local/bin/pingl2.rb
     222
     223}}}
     224
     225=== 3.2 Write your LabWiki Application ===
     226
     227=== 3.2.1 Create a new OEDL Script in the Prepare Window ===
     228
     229=== 3.2.2 Copy the following script into the Prepare Window ===
    211230{{{
    212231defProperty('source1', "sender-gimiinsta", "ID of a resource")
     
    223242  # For example if target is set to foo.com and count is set to 2, then the
    224243  # application will be started with the command line:
    225   # /usr/bin/ping-oml2 -a foo.com -c 2
     244  # /usr/bin/ping-oml2 -a macaddress -c 2
    226245  app.defProperty('target', 'Address to ping', '-a', {:type => :string})
    227246  app.defProperty('count', 'Number of times to ping', '-c', {:type => :integer})
     
    229248  app.defProperty('eth', 'Ethernet Type', '-e', {:type => :string})
    230249  # Define the OML2 measurement point that this application provides.
    231   # Here we have only one measurement point (MP) named 'ping'. Each measurement
    232   # sample from this MP will be composed of a 4-tuples (addr,ttl,rtt,rtt_unit)
    233250  app.defMeasurement('pingrl') do |m|
    234251    m.defMetric('dest_hw_addr',:string)
     
    274291end
    275292}}}
     293
     294=== 3.2.3 Start your application from !LabWiki ===
     295