Changes between Version 18 and Version 19 of OnTimeMeasureTutorial
- Timestamp:
- 02/15/12 14:04:32 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OnTimeMeasureTutorial
v18 v19 165 165 In text field of {{{Execute}}}, input 166 166 {{{ 167 167 sudo sh /tmp/ontime_software_install.sh otm_slice_password 168 168 }}} 169 169 … … 190 190 191 191 {{{ 192 192 http://ontime.oar.net/INSTALL/OTCNodeInstall.tgz 193 193 }}} 194 194 … … 197 197 {{{ 198 198 /tmp 199 200 199 }}} 201 200 … … 204 203 In text field of {{{Execute}}}, input 205 204 {{{ 206 205 sudo sh /tmp/ontime_software_install.sh 207 206 }}} 208 207 … … 252 251 cd /opt/OnTimeMeasure/OnTimeControl 253 252 cp config_example.yaml config.yaml 254 255 253 }}} 256 254 … … 270 268 - name: node2 271 269 IP: 155.98.39.62 272 273 270 }}} 274 271 … … 281 278 {{{ 282 279 python service_status.py 283 284 280 }}} 285 281 [[Image(image3.1.jpg)]] … … 328 324 {{{ 329 325 python 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 331 326 }}} 332 327 … … 403 398 The sample CPUSpecs.yaml file: 404 399 {{{ 405 406 400 Metrics: 407 401 Mycpu: … … 421 415 duration: 2 422 416 conflict: [] 423 424 417 }}} 425 418 … … 428 421 Run command "add_metric.py" to add the custom metric specifications file and parser file into !OnTimeMeasure framework 429 422 {{{ 430 423 python add_metric.py -c CPUSpecs.yaml -p CPUParser.pm 431 424 }}} 432 425 … … 501 494 502 495 {{{ 503 504 496 <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"/> 505 497 <!-- 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 507 498 }}} 508 499 … … 543 534 544 535 {{{ 545 546 536 sudo apt-get update 547 537 sudo apt-get install -y openssh-server subversion keychain g++-4.1 autoconf2.59 makedepend emacs23 … … 559 549 wget http://gush.cs.williams.edu/gush-bin-32bit.tgz 560 550 tar xzf gush-bin-32bit.tgz 561 562 563 551 }}} 564 552 … … 584 572 585 573 {{{ 586 587 574 [omni] 588 575 default_cf = pg … … 600 587 urn = urn:publicid:IDN+emulab.net+user+xyx 601 588 keys=~/.ssh/id_rsa.pub 602 603 589 }}} 604 590 … … 638 624 639 625 </rspec> 640 641 626 }}} 642 627 … … 649 634 650 635 ./handle-geni.py -n -f pg -a https://www.emulab.net/protogeni/xmlrpc/am createsliver OTMGushDemo OTMGushDemo.rspec 651 652 636 }}} 653 637 … … 706 690 707 691 </gush> 708 709 692 }}} 710 693 … … 712 695 In gush folder, invoke the following command to start gush and show nodes information. 713 696 {{{ 714 715 697 ./gush -P 15888 698 info nodes 716 699 }}} 717 700 … … 732 715 [ P ] xyx@pc337.emulab.net:61601(pref=0) (Disconnected.) 733 716 [ P ] xyx@pc262.emulab.net:61601(pref=0) (Disconnected.) 734 735 717 }}} 736 718 … … 740 722 In section 2.4, we got 741 723 {{{ 742 743 744 724 Root Beacon - pc355.emulab.net (155.98.39.155) 725 Node Beacon 1 - pc337.emulab.net (155.98.39.137) 726 Node Beacon 2 - pc262.emulab.net (155.98.39.62) 745 727 }}} 746 728 747 729 In section 7.3, we got 748 730 {{{ 749 731 Node Beacon 3 - pc513.emulab.net(155.98.38.113) 750 732 }}} 751 733 … … 764 746 shell "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" 765 747 shell "python task_manage.py -c measurement.yaml" 766 767 748 }}} 768 749 … … 771 752 The output: 772 753 {{{ 773 774 754 gush> connect pc355.emulab.net:61601 775 755 Connecting to host xyx@pc355.emulab.net:61601. … … 797 777 10 new tasks added 798 778 You have to restart the measurement service to put them into effort 799 800 779 }}} 801 780 … … 807 786 shell "python service_status.py" 808 787 shell "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 810 788 }}} 811 789 … … 831 809 http://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 832 810 Downloaded to local folder: /opt/OnTimeMeasure/OnTimeControl/results/20120131173719_IperfTcp_Throughput.png 833 834 835 811 }}} 836 812 … … 858 834 python-pyopenssl libxmlsec1 xmlsec1 \ 859 835 libxmlsec1-openssl libxmlsec1-dev python-lxml 860 861 836 }}} 862 837 … … 871 846 872 847 {{{ 873 874 848 <?xml version="1.0" ?> 875 849 <!-- Resources at AM: … … 897 871 898 872 </rspec> 899 900 873 }}} 901 874 … … 933 906 Saved createsliver results to OTCDemo-manifest-rspec-www-planet-lab-org.xml. 934 907 INFO:omni: ============================================================ 935 936 908 }}} 937 909 … … 940 912 Invoke the following command to check the sliver status 941 913 {{{ 942 914 src/omni.py --api-version 2 -a http://www.planet-lab.org:12346 -o sliverstatus OTCDemo 943 915 }}} 944 916 … … 968 940 Returned status of slivers on 1 of 1 possible aggregates. 969 941 INFO:omni: ============================================================ 970 971 942 }}} 972 943 973 944 Check the output file OTCDemo-sliverstatus-www-planet-lab-org.json 974 945 {{{ 975 976 946 {'geni_resources': [{'geni_error': '', 977 947 'geni_status': 'ready', … … 985 955 'pl_expires': '2012-02-20T12:38:46Z', 986 956 'pl_login': 'emulabnet_OTCDemo'} 987 988 957 }}} 989 958