Changes between Version 10 and Version 11 of GENIFIRE/Labwiki/Part2a/Execute


Ignore:
Timestamp:
07/10/14 04:12:56 (10 years ago)
Author:
divyashri.bhat@gmail.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIFIRE/Labwiki/Part2a/Execute

    v10 v11  
    211211* Can you modify this script to run UDP Iperf instead? What kind of Throughput graphs do you get? [[BR]]
    212212
     213'''Solution''': Edit the Application Definition for Iperf server and clients
     214
     215{{{
     216defApplication('iperfserv') do |app|
     217  app.description = "manually run Iperf server"
     218  app.binary_path = "/usr/bin/iperf -s -u"
     219end
     220defApplication('iperfclient') do |app|
     221  app.description = "manually run Iperf client"
     222  app.binary_path = "/usr/bin/iperf -c 192.168.1.15 -t 200 -i 2 -u"
     223end
     224}}}
     225
     226
     227
    213228* Can you change the Graph Definition to show aggregate number of flows per node? [[BR]]
     229'''Solution''': Edit the defMetric under the Application Definition and Edit defGraph to show you the required parameters
     230
     231{{{
     232defApplication('ofstats') do |app|
     233  app.description = 'Simple Definition for the of-collect application'
     234  # Define the path to the binary executable for this application
     235  app.binary_path = '/usr/local/bin/learn_ofcollect.rb'
     236  app.defProperty('target', 'Address to output file', '-f', {:type => :string})
     237  app.defProperty("interval","Interval",'-i', {:type => :string})
     238  app.defMeasurement('wrapper_ofthroughput') do |m|
     239    m.defMetric(':srcaddr', :string)
     240    m.defMetric('numflows',:int64)
     241    m.defMetric('throughput',:int64)
     242  end
     243end
     244
     245}}}
     246
     247Graph:
     248
     249
     250{{{
     251defGraph 'Throughput' do |g|
     252  g.ms('wrapper_ofthroughput').select(:oml_ts_client, :numflows, :srcaddr)
     253  g.caption "Throughput of Flows"
     254  g.type 'line_chart3'
     255  g.mapping :x_axis => :oml_ts_client, :y_axis => :numflows, :group_by => :srcaddr
     256  g.xaxis :legend => 'oml_ts'
     257  g.yaxis :legend => 'Throughput', :ticks => {:format => 's'}
     258end
     259}}}
    214260
    215261