Changes between Version 10 and Version 11 of GIMIv1.1Tutorial/Orchestrate


Ignore:
Timestamp:
10/14/12 22:40:12 (12 years ago)
Author:
zink@cs.umass.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIMIv1.1Tutorial/Orchestrate

    v10 v11  
    3737
    3838{{{
     39defProperty('source1', "nodeA", "ID of a resource")
     40defProperty('source2', "nodeB", "ID of a resource")
     41defProperty('source3', "nodeC", "ID of a resource")
     42defProperty('source4', "nodeD", "ID of a resource")
     43defProperty('source5', "nodeE", "ID of a resource")
     44
     45#defProperty('sink1', "nodeA", "ID of a sink")
     46#defProperty('sink2', "nodeB", "ID of a sink")
     47#defProperty('sink3', "nodeC", "ID of a sink")
     48#defProperty('sink4', "nodeD", "ID of a sink")
     49#defProperty('sink5', "nodeE", "ID of a sink")
     50
     51defProperty('sinkaddr11', '192.168.4.10', "Ping destination address")
     52defProperty('sinkaddr12', '192.168.5.12', "Ping destination address")
     53
     54defProperty('sinkaddr21', '192.168.4.11', "Ping destination address")
     55defProperty('sinkaddr22', '192.168.2.12', "Ping destination address")
     56defProperty('sinkaddr23', '192.168.1.13', "Ping destination address")
     57
     58defProperty('sinkaddr31', '192.168.5.11', "Ping destination address")
     59defProperty('sinkaddr32', '192.168.2.10', "Ping destination address")
     60defProperty('sinkaddr33', '192.168.3.13', "Ping destination address")
     61defProperty('sinkaddr34', '192.168.6.14', "Ping destination address")
     62
     63defProperty('sinkaddr41', '192.168.1.10', "Ping destination address")
     64defProperty('sinkaddr42', '192.168.3.12', "Ping destination address")
     65
     66defProperty('sinkaddr51', '192.168.6.12', "Ping destination address")
     67
     68defApplication('ping_app', 'pingmonitor') do |a|
     69    a.path = "/root/pingWrap.rb"
     70    a.version(1, 2, 0)
     71    a.shortDescription = "Wrapper around ping"
     72    a.description = "ping application"
     73    a.defProperty('dest_addr', 'Address to ping', '-a', {:type => :string, :dynamic => false})
     74    a.defProperty('count', 'Number of times to ping', '-c', {:type => :integer, :dynamic => false})
     75    a.defProperty('interval', 'Interval between pings in s', '-i', {:type => :integer, :dynamic => false})
     76
     77    a.defMeasurement('myping') do |m|
     78     m.defMetric('dest_addr',:string)
     79     m.defMetric('ttl',:int)
     80     m.defMetric('rtt',:float)
     81     m.defMetric('rtt_unit',:string)
     82   end
     83end
    3984
    4085}}}