Changes between Version 18 and Version 19 of OnTimeMeasureTutorial


Ignore:
Timestamp:
02/15/12 14:04:32 (13 years ago)
Author:
yxu@osc.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OnTimeMeasureTutorial

    v18 v19  
    165165In text field of {{{Execute}}},  input 
    166166{{{
    167       sudo sh /tmp/ontime_software_install.sh otm_slice_password
     167sudo sh /tmp/ontime_software_install.sh otm_slice_password
    168168}}}
    169169
     
    190190
    191191{{{
    192    http://ontime.oar.net/INSTALL/OTCNodeInstall.tgz
     192http://ontime.oar.net/INSTALL/OTCNodeInstall.tgz
    193193}}}
    194194
     
    197197{{{
    198198/tmp
    199 
    200199}}}
    201200
     
    204203In text field of {{{Execute}}},  input
    205204{{{
    206     sudo sh /tmp/ontime_software_install.sh
     205sudo sh /tmp/ontime_software_install.sh
    207206}}}
    208207 
     
    252251cd /opt/OnTimeMeasure/OnTimeControl
    253252cp config_example.yaml config.yaml
    254 
    255253}}}
    256254
     
    270268- name: node2
    271269  IP: 155.98.39.62
    272 
    273270}}}
    274271
     
    281278{{{
    282279python service_status.py
    283  
    284280}}}
    285281[[Image(image3.1.jpg)]]
     
    328324{{{
    329325python query.py -f "2012-01-24 18:00:00" -t "2012-01-27 20:00:00" -s node2 -d node1 -m Throughput -r TimeSeries
    330 
    331326}}}
    332327
     
    403398The sample CPUSpecs.yaml file:
    404399{{{
    405 
    406400Metrics:
    407401  Mycpu:
     
    421415    duration: 2
    422416    conflict: []
    423 
    424417}}}
    425418
     
    428421Run command "add_metric.py" to add the custom metric specifications file and parser file into !OnTimeMeasure framework
    429422{{{
    430  python add_metric.py  -c CPUSpecs.yaml -p CPUParser.pm
     423python add_metric.py  -c CPUSpecs.yaml -p CPUParser.pm
    431424}}}
    432425 
     
    501494
    502495{{{
    503 
    504496<img src= "http://pc355.emulab.net:17280/render?height=300&width=500&&from=-3d&until=now&target=Graphite.node1_node2.RoundTripDelay&uniq='+new Date().getTime();" align ="middle" alt = "round-trip delay graph"/>
    505497<!-- This is for link named node1_node2 in graphite and returns Round-trip Delay for last 3 days, for link node2 to node1, change "node1_node2" -->
    506 
    507498}}}
    508499
     
    543534
    544535{{{
    545 
    546536sudo  apt-get update
    547537sudo apt-get install  -y  openssh-server subversion keychain g++-4.1 autoconf2.59 makedepend emacs23
     
    559549wget  http://gush.cs.williams.edu/gush-bin-32bit.tgz
    560550tar xzf gush-bin-32bit.tgz
    561 
    562 
    563551}}}
    564552
     
    584572
    585573{{{
    586 
    587574[omni]
    588575default_cf = pg
     
    600587urn = urn:publicid:IDN+emulab.net+user+xyx
    601588keys=~/.ssh/id_rsa.pub
    602 
    603589}}}
    604590
     
    638624 
    639625</rspec>
    640 
    641626}}}
    642627
     
    649634
    650635./handle-geni.py -n -f pg -a https://www.emulab.net/protogeni/xmlrpc/am createsliver OTMGushDemo OTMGushDemo.rspec
    651 
    652636}}}
    653637
     
    706690
    707691</gush>
    708 
    709692}}}
    710693
     
    712695In gush folder,  invoke the following command to start gush and show nodes information.
    713696{{{
    714  ./gush -P 15888
    715  info nodes
     697./gush -P 15888
     698info nodes
    716699}}}
    717700
     
    732715[ P         ] xyx@pc337.emulab.net:61601(pref=0) (Disconnected.)
    733716[ P         ] xyx@pc262.emulab.net:61601(pref=0) (Disconnected.)
    734 
    735717}}}
    736718
     
    740722In section 2.4, we got
    741723{{{
    742   Root Beacon   - pc355.emulab.net (155.98.39.155)
    743   Node Beacon 1 - pc337.emulab.net (155.98.39.137)
    744   Node Beacon 2 - pc262.emulab.net (155.98.39.62)
     724Root Beacon   - pc355.emulab.net (155.98.39.155)
     725Node Beacon 1 - pc337.emulab.net (155.98.39.137)
     726Node Beacon 2 - pc262.emulab.net (155.98.39.62)
    745727}}}
    746728
    747729In section 7.3, we got
    748730{{{
    749   Node Beacon 3 - pc513.emulab.net(155.98.38.113)
     731Node Beacon 3 - pc513.emulab.net(155.98.38.113)
    750732}}}
    751733
     
    764746shell "sed -i 's/IP: 192.168.1.3/IP: 155.98.39.62\n\n- name: node3\n  IP: 155.98.38.113\n\n/g'   config.yaml"
    765747shell "python task_manage.py -c measurement.yaml"
    766 
    767748}}}
    768749
     
    771752The output:
    772753{{{
    773 
    774754gush> connect pc355.emulab.net:61601
    775755Connecting to host xyx@pc355.emulab.net:61601.
     
    79777710 new tasks added
    798778You have to restart the measurement service to put them into effort
    799 
    800779}}}
    801780
     
    807786shell "python service_status.py"
    808787shell "python query.py -f '2012-01-30 18:00:00' -t '2012-01-31 20:00:00' -s node2 -d node1 -m RoundTripTime -r TimeSeries"
    809 
    810788}}}
    811789
     
    831809http://155.98.38.103:17280/render?height=300&width=500&from=18%3A00%2001/30/2012&until=20%3A00%2001/31/2012&target=Graphite.node2_node1.Throughput
    832810Downloaded to local folder: /opt/OnTimeMeasure/OnTimeControl/results/20120131173719_IperfTcp_Throughput.png
    833 
    834 
    835811}}}
    836812
     
    858834                     python-pyopenssl libxmlsec1 xmlsec1 \
    859835                     libxmlsec1-openssl libxmlsec1-dev  python-lxml
    860 
    861836}}}
    862837
     
    871846
    872847{{{
    873 
    874848<?xml version="1.0" ?>
    875849<!-- Resources at AM:
     
    897871
    898872</rspec>
    899 
    900873}}}
    901874
     
    933906   Saved createsliver results to OTCDemo-manifest-rspec-www-planet-lab-org.xml.
    934907INFO:omni: ============================================================
    935 
    936908}}}
    937909
     
    940912Invoke the following command to check the sliver status
    941913{{{
    942  src/omni.py --api-version 2 -a http://www.planet-lab.org:12346 -o sliverstatus OTCDemo
     914src/omni.py --api-version 2 -a http://www.planet-lab.org:12346 -o sliverstatus OTCDemo
    943915}}}
    944916
     
    968940Returned status of slivers on 1 of 1 possible aggregates.
    969941INFO:omni: ============================================================
    970 
    971942}}}
    972943
    973944Check the output file OTCDemo-sliverstatus-www-planet-lab-org.json
    974945{{{
    975 
    976946{'geni_resources': [{'geni_error': '',
    977947                     'geni_status': 'ready',
     
    985955 'pl_expires': '2012-02-20T12:38:46Z',
    986956 'pl_login': 'emulabnet_OTCDemo'}
    987 
    988957}}}
    989958