Changes between Version 19 and Version 20 of GEC19Agenda/GIMI/Procedure/Execute
- Timestamp:
- 03/18/14 12:54:45 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC19Agenda/GIMI/Procedure/Execute
v19 v20 258 258 }}} 259 259 260 === 3.2 Write your !LabWiki Application===260 === 3.2 Design and Execute measurement in !LabWiki === 261 261 262 262 === 3.2.1 Edit and save a Markdown and Experiment Script in the Prepare Window === … … 432 432 433 433 defProperty('source1', "client-testpingplus", "ID of a resource") 434 #defProperty('source2', "ig-utah-testBBN", "ID of a resource")435 #defProperty('source3', "nodeC-createexoimage", "ID of a resource")436 #defProperty('source4', "nodeD-createexoimage", "ID of a resource")437 #defProperty('source5', "nodeE-createexoimage", "ID of a resource")438 defProperty('graph', true, "Display graph or not")439 434 440 435 … … 442 437 defProperty('eth11','eth1',"Output Eth interface") 443 438 defProperty('sinkaddr12', 'fe:16:3e:00:74:38', "Ping destination address") 444 445 #defProperty('sinkaddr11', '192.168.6.10', "Ping destination address")446 #defProperty('sinkaddr12', '192.168.5.12', "Ping destination address")447 448 #defProperty('sinkaddr21', '192.168.4.11', "Ping destination address")449 #defProperty('sinkaddr22', '192.168.2.12', "Ping destination address")450 #defProperty('sinkaddr23', '192.168.1.13', "Ping destination address")451 452 #defProperty('sinkaddr31', '192.168.5.11', "Ping destination address")453 #defProperty('sinkaddr32', '192.168.2.10', "Ping destination address")454 #defProperty('sinkaddr33', '192.168.3.13', "Ping destination address")455 #defProperty('sinkaddr34', '192.168.6.14', "Ping destination address")456 457 #defProperty('sinkaddr41', '192.168.1.10', "Ping destination address")458 #defProperty('sinkaddr42', '192.168.3.12', "Ping destination address")459 460 #defProperty('sinkaddr51', '192.168.6.12', "Ping destination address")461 439 462 440 defApplication('ping') do |app| … … 464 442 # Define the path to the binary executable for this application 465 443 app.binary_path = '/usr/local/bin/pingl2' 466 # Define the configurable parameters for this application467 # For example if target is set to foo.com and count is set to 2, then the468 # application will be started with the command line:469 # /usr/bin/ping-oml2 -a foo.com -c 2470 444 app.defProperty('target', 'Address to ping', '-a', {:type => :string}) 471 445 app.defProperty('count', 'Number of times to ping', '-c', {:type => :integer}) … … 473 447 app.defProperty('eth', 'Ethernet Type', '-e', {:type => :string}) 474 448 # Define the OML2 measurement point that this application provides. 475 # Here we have only one measurement point (MP) named 'ping'. Each measurement476 # sample from this MP will be composed of a 4-tuples (addr,ttl,rtt,rtt_unit)477 449 app.defMeasurement('ping') do |m| 478 450 m.defMetric('hw_dest_addr',:string) … … 489 461 end 490 462 end 491 492 493 #defGroup('Source2', property.source2) do |node|494 # node.addApplication("ping") do |app|495 # app.setProperty('target', property.sinkaddr11)496 # app.setProperty('count', 30)497 #app.setProperty('interval', 1)498 # app.measure('ping', :samples => 1)499 #end500 #end501 463 502 464