Changes between Version 8 and Version 9 of GEC19Agenda/GIMI/Procedure/Execute
- Timestamp:
- 03/18/14 11:46:15 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC19Agenda/GIMI/Procedure/Execute
v8 v9 109 109 === 2.2 Write your OML Application === 110 110 111 Define all varying parameters as properties that can be set within your Application. 112 113 Save the following code to any location on your node. E.g /usr/local/bin/pingl2.rb 114 111 115 {{{ 112 116 … … 208 212 == 3. Instrument your Application using LabWiki == 209 213 210 214 === 3.1 Copy binaries and set permissions === 215 216 {{{ 217 218 cp pingPlusListener /bin 219 cp ping2.rb /usr/local/bin 220 chmod +x /bin/pingPluListener 221 chmod +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 === 211 230 {{{ 212 231 defProperty('source1', "sender-gimiinsta", "ID of a resource") … … 223 242 # For example if target is set to foo.com and count is set to 2, then the 224 243 # application will be started with the command line: 225 # /usr/bin/ping-oml2 -a foo.com-c 2244 # /usr/bin/ping-oml2 -a macaddress -c 2 226 245 app.defProperty('target', 'Address to ping', '-a', {:type => :string}) 227 246 app.defProperty('count', 'Number of times to ping', '-c', {:type => :integer}) … … 229 248 app.defProperty('eth', 'Ethernet Type', '-e', {:type => :string}) 230 249 # Define the OML2 measurement point that this application provides. 231 # Here we have only one measurement point (MP) named 'ping'. Each measurement232 # sample from this MP will be composed of a 4-tuples (addr,ttl,rtt,rtt_unit)233 250 app.defMeasurement('pingrl') do |m| 234 251 m.defMetric('dest_hw_addr',:string) … … 274 291 end 275 292 }}} 293 294 === 3.2.3 Start your application from !LabWiki === 295