7773a98b38f67fa39a0c4f9240576e5f1e216e15
[unfold.git] / portal / templates / slice-tab-experiment.html
1 <div class="col-md-10 col-md-offset-1">
2         {% if ple_resources or iotlab_resources or nitos_resources or nitos_paris_resources%}
3                 <h2>How to access your reserved resources</h2>
4         {% endif %}
5         {% if ple_resources %}
6         <h3>PlanetLab Europe</h3>
7         
8         <p>
9                 PlanetLab Europe resources are accessible directly via SSH. Your SSH public key is deployed automatically
10                 on the reserved nodes. To access your slice on a resource just type the following command:
11         </p>
12         <p class="command">
13         {%for resource in ple_resources %}
14                 <b>Resource</b><br>
15                 $ ssh {{ple_slicename}}@{{resource}}<br>
16         {%endfor%}
17         </p>
18         <p><strong>NOTE:</strong> Your original slicename <b>{{slicename}}</b> has been converted to PlanetLab specific format <b>{{ple_slicename}}</b> in order to do SSH.</p>
19         <p>
20                 Be aware that after you reserve a PlanetLab Europe resource your slice will be deployed with a delay of about 15 minutes, 
21                 after witch you will be able to access the resource.
22         </p>
23     <div id="initscript">
24         <div>
25             <h4>Init Script on PLE</h4>
26             <i>This bash script will be deployed on all PLE nodes of your slice</i>
27         </div>
28         <textarea style="width:100%; height:100px;" id="initscript_code"></textarea><br>
29         <button name="deploy" class="btn btn-success btn-sm" onclick="deploy('{{slicename}}');">Deploy</button>
30         <button name="delete" class="btn btn-danger btn-xs" onclick="del('{{slicename}}');">Delete</button>
31     </div>
32     <script type="text/javascript">
33     $(document).ready(function() {
34         $.post("/initscript/get/",{'slice_hrn':'onelab.upmc.express'}, function( data ) {
35             console.log(data);
36             jQuery('#initscript_code').val(data['initscript_code']);
37         });
38     });
39     function deploy(slice_hrn){
40         console.log("deploy = "+slice_hrn);
41         var initscript_code = jQuery('#initscript_code').val()
42         $.post("/initscript/update/",{'slice_hrn':slice_hrn, 'initscript_code':initscript_code}, function( data ) {
43             console.log(data);
44             if (data['ret'] == 0) {
45                 mysliceAlert('Success: initscript deployed','success', true);
46             }else{
47                 mysliceAlert('Rest Error for: '+data.error,'warning', true);
48             }
49             //jQuery('#initscript_code').val(data['initscript_code']);
50         });
51     }
52     function del(slice_hrn){
53         console.log("delete");
54         $.post("/initscript/delete/",{'slice_hrn':slice_hrn}, function( data ) {
55             console.log(data);
56             if (data['ret'] == 0) {
57                 mysliceAlert('Success: initscript deleted','success', true);
58                 jQuery('#initscript_code').val('');
59             }else{
60                 mysliceAlert('Rest Error for: '+data.error,'warning', true);
61             }
62
63         });
64     }
65     </script>
66     <br>
67         {% endif %}
68
69         {% if iotlab_resources %}       
70         <h3>FIT IoT-Lab</h3>
71         <p>FIT IoT-Lab resources are accessible directly via SSH and <a href="https://devgrenoble.senslab.info/testbed/" target="_blank">web GUI.</a>
72                 To acess IoT-Lab resources using web GUI, use the same login and  password of OneLab portal. To acess Iot-Lab resources using SSH type
73                 the following command:
74         </p>
75         <p class="command">
76                 ssh {{iot_login}}@fit3-dev.inrialpes.fr
77         </p>
78         {% endif %}
79         {% if nitos_resources or nitos_paris_resources %}
80         <h3>NITOS</h3>
81         
82         <p>
83          NITOS resources are not directly accessible. You will need to log in on a gateway server and from there access the node.
84          You will find the ssh commands to connect to NITOS nodes below:
85         </p>
86
87         {% if nitos_resources %}        
88         <h4>NITLab</h4>
89         <p class="command">
90         $ ssh {{slicename}}@nitlab.inf.uth.gr
91         </p>
92         
93         <p>For each of the reserved nodes, follo the steps given below:</p>
94         <p class="command">
95         {%for resource in nitos_resources %}
96                 <b>Resource</b><br>
97         $ omf load -i baseline_grid.ndz -t {{resource}}  #loading OMF image on the node<br>
98                 $ omf tell -a on -t {{resource}}  #turn on the node <br>
99                 $ ssh root@{{resource}}  #ssh to the node<br><br>
100         {%endfor%}
101         </p>
102         {% endif %}
103
104         {% if nitos_paris_resources %}
105         <h4>FIT NITOS-Lab Paris</h4>
106          <p class="command">
107                 $ ssh {{slicename}}@griffin.ipv6.lip6.fr
108          </p>
109         <p>For each of the reserved nodes, follo the steps given below:</p>
110         <p class="command">
111         {%for resource in nitos_paris_resources %}
112                 <b>Resource</b><br>
113         $ omf load -i baseline_grid.ndz -t {{resource}}  #loading OMF image on the node<br>
114         $ omf tell -a on -t {{resource}}  #turn on the node <br>
115         $ ssh root@{{resource}}  #ssh to the node<br><br>
116         {%endfor%}
117         </p>
118         {%endif%}
119
120         <p>
121                 On the node itself you will have to modify the file /etc/omf-resctl-5.3/omf-resctl.yaml according to your slice settings and then
122                 restart the OMF Resource Controller and finally execute the experiment:
123         </p>
124         <p class="command">
125                 $ omf exec --slice {{slicename}} your_exp.rb
126         </p>
127         <p>
128         The complete tutorial is available at the following address:
129         <a target="_blank" href="http://nitlab.inf.uth.gr/NITlab/index.php/testbed/instructions/basic-tutorial">NITOS basic tutorial</a>
130         </p>
131         <p>To learn more about OMF6, please click <a href="http://omf.mytestbed.net/projects/omf6/wiki/Wiki" target="_blank">here.</a></p>
132
133         {% endif %}
134         
135         <h2>Available Tools</h2>
136         <p><img src="{{ STATIC_URL }}img/terminal_icon.png" width="50"> <b>SSH</b></p>
137         <p>
138         Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers that connects, via a secure channel over an insecure network, a server and a client (running SSH server and SSH client programs, respectively). The protocol specification distinguishes between two major versions that are referred to as SSH-1 and SSH-2.
139         </p>
140         <p> More info: <a href="http://en.wikipedia.org/wiki/Secure_Shell" target="_blank">http://en.wikipedia.org/wiki/Secure_Shell</a></p>
141         <br>
142         <p><img src="{{ STATIC_URL }}img/putty-logo.png" width="50"> <b>PuTTY</b></p>
143         <p>
144                 PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. PuTTY is open source software that is available with source code and is developed and supported by a group of volunteers.
145         </p>
146         <p>More info: <a href="http://www.putty.org/" target="_blank">http://www.putty.org/</a></p>     
147         <br>
148         <p><img src="{{ STATIC_URL }}img/nepi_logo.png" width="90"></p>
149         <p>NEPI, the Network Experimentation Programming Interface, is a life-cycle management tool for network experiments. The idea behind NEPI is to provide a single tool to design, deploy, and control network experiments, and gather the experiment results. Going further, NEPI was specially conceived to function with arbitrary experimentation platforms, so researchers could use a single tool to work with network simulators, emulators, or physical testbeds, or even a mixture of them. To accomplish this, NEPI provides a high-level interface to describe experiments that is independent from any experimentation platform, but is able to capture platform specific configurations. Experiment definitions can be stored in XML format to be later reproduced, and modified according to experimentation needs. Experiment execution is orchestrated by a global experiment controller, that is platform independent, and different platform-dependent testbed controllers, creating a control hierarchy that is able t adapt to platform specific requirements while providing an integrated control scheme.</p>
150         <p> More info: <a href="http://nepi.inria.fr" target="_blank">http://nepi.inria.fr</a></p>
151         <br>
152         <p><img src="{{ STATIC_URL }}img/omf-logo.png" width="90"></p>
153         <p>OMF is a Testbed Control, Measurement and Management Framework.</p>
154         <p>
155         OMF was originally developed for the ORBIT wireless testbed at Winlab, Rutgers University. Since 2007, OMF has been actively extended to operate on testbeds with many different type of network and resource technologies. It is now deployed and used on different testbeds in Australia, Europe, and in the U.S. OMF is currently being extended further to support exciting new features and technologies. This website is hosting this ongoing activity. OMF development is now conducted essentially within the TEMPO project at NICTA (Australia) in strong collaboration with Winlab (Rutgers University).
156         </p>
157         <p>In addition to the main OMF software, this site also hosts OMF sub-projects addressing various related aspects of a testbed's control, measurement, and management.</p>
158         <p>More Info: <a href="http://mytestbed.net/projects/omf" target="_blank">http://mytestbed.net/projects/omf</a></p>
159 </div>