Changes between Version 5 and Version 6 of HowTo/LabWikiGraphUsingCSV
- Timestamp:
- 06/09/14 18:39:00 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo/LabWikiGraphUsingCSV
v5 v6 1 1 = Example to Plot !LabWiki Graph from a CSV File = 2 2 3 == 1. On InstaGENI, use the following image which has the latest GIMI and other Tools installed:==3 == 1. On InstaGENI, use the following image which has the latest GIMI and other required Tools installed == 4 4 5 5 … … 16 16 For this example, the CSV File used is attached here (wimaxss.csv) 17 17 18 Each of the fields has beentaken as a separate measurement point for this example.18 Each of the fields is taken as a separate measurement point for this example. 19 19 20 20 … … 54 54 === 3.1 Define a class of measurement point variables === 55 55 56 This is based on the number and type of the fields in the CSV file56 This is based on the number and data type of the fields in the CSV file 57 57 58 58 {{{ … … 95 95 === Specify number of lines to read === 96 96 97 The log.backward() function specifies the number of lines to read while doing a file tail. In this example, it reads only1 line from the file's history.97 The log.backward() function specifies the number of lines to read while doing a file tail. In this example, we read 1 line from the file's history. 98 98 99 99 {{{ … … 108 108 end 109 109 }}} 110 111 110 112 111 … … 222 221 === 4.3 Define OML Application with path on VM === 223 222 223 Here, you will need to define a measurement function for the measurement points as defined in step 3.1. Replace "/usr/local/bin/ofcollect.rb" with the path of your OML4R application script written in Step 3. 224 224 225 225 {{{ … … 231 231 app.defProperty("interval","Interval",'-i', {:type => :string}) 232 232 app.defMeasurement('wrapper_wimaxss') do |m| 233 m.defMetric(' :pathtype', :string)234 m.defMetric(' throughput',:int64)235 m.defMetric(' instput',:int64)233 m.defMetric('ifacemac', :string) 234 m.defMetric('ssid',:int64) 235 m.defMetric('netoper', :string) 236 236 end 237 237 end … … 239 239 240 240 === 4.4 Create Node Group with Application === 241 242 The 'target' property specifies the path of the CSV file on the VM. 241 243 242 244 {{{ … … 252 254 253 255 === 4.5 Define parameters for Graph === 256 257 Here, we draw two types of graphs. The first one is a Line Graph which plots SSID as a function of time for ever Hardware MAC Address. [[BR]] 258 259 The second graph is a Histogram which plots SSID as a function of time for every Network Operator 254 260 255 261 Line Graph … … 300 306 app.defProperty("interval","Interval",'-i', {:type => :string}) 301 307 app.defMeasurement('wrapper_wimaxss') do |m| 302 m.defMetric(' :pathtype', :string)303 m.defMetric(' throughput',:int64)304 m.defMetric(' instput',:int64)308 m.defMetric('ifacemac', :string) 309 m.defMetric('ssid',:int64) 310 m.defMetric('netoper', :string) 305 311 end 306 312 end