275 | | '''Method 1:''' OMF framework supports a result service that allows experimenters to query data stored using the OML measurement framework. The query is performed over the web and requires the you know the hostname and port where the result service runs, and the ''experiment ID'' associated with this experiment - this is obtained from the output following the execution of the control script. |
276 | | |
277 | | The result service supports either dumping of the entire database or a SQL-like querying option to selectively retrieve required measurement data. The below HTTP request shows an example query to retrieve certain fields of our above defined measurement point in the mfperf application: |
278 | | |
279 | | {{{ |
280 | | #!sh |
281 | | wget "http://<hostname>:<port>/result/queryDatabase?expID=testing_slice-2010-09-03t09.41.43+10.00&format=csv&query=select ts,msg_no,msg_length from msg_out" -O msg_out.csv |
| 275 | '''Method 1:''' OMF framework supports a result service that allows experimenters to query data stored using the OML measurement framework. The query is performed over the web and requires that you know the hostname and port where the result service runs, and the ''experiment ID'' associated with this experiment - this is obtained from the output following the execution of the control script. It should look something like this : |
| 276 | {{{ |
| 277 | #!sh |
| 278 | Experiment ID: default_slice-2014-10-15t02.12.19.869-04.00 |
| 279 | }}} |
| 280 | |
| 281 | The result service supports either dumping of the entire database or a SQL-like querying option to selectively retrieve required measurement data. The below HTTP request shows an example query to retrieve the reported statistics from the OML enabled monitor for MobilityFirst Routers: |
| 282 | |
| 283 | {{{ |
| 284 | #!sh |
| 285 | wget "http://<hostname>:<port>/result/dumpDatabase?expID=testing_slice-2010-09-03t09.41.43+10.00" -O msg_out.csv |
| 286 | }}} |
| 287 | Which in our case the hostname is "oml.orbit-lab.org" and the port number is "5054". So the command will look like : |
| 288 | {{{ |
| 289 | #!sh |
| 290 | wget "http://oml.orbit-lab.org:5054/result/dumpDatabase?expID=default_slice-2014-10-15t00.36.59.743-04.00" -O msg_out.csv |