Changes between Version 41 and Version 42 of GiB-gettingStarted


Ignore:
Timestamp:
10/16/12 10:31:49 (12 years ago)
Author:
Vic Thomas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GiB-gettingStarted

    v41 v42  
    238238
    239239=== 2.3 Using your Resources ===
    240 You can now ssh into the hosts allocated to you and do what you need to do to get your experiment working.  For example, you can install and run software.  If needed, you can use the {{sudo}} command to do things that require root privileges. 
    241 
    242 In the case of our experiment, the software needed (iperf) was installed by our startup script.  Our startup script put the output of iperf in a file accessible from a web browser.   Since our iperf client ran on node {{{pc101}}} (the node labeled 'left' in the request spec), we can use a browser to view the output of this client.  Start up Firefox in a terminal on the GENI-in-a-Box virtual machine and enter the url {{{http://pc101.geni-in-a-box.net/iperf-client.log}}}.  The iperf client output should appear in your browser window.
    243 
    244 You can also ssh into the node pc102 to view this file.  GENI-in-a-Box comes with a user account 'alice' with private and public keys for alice installed in it.  When experimenter nodes are created an account is created for alice on these nodes and alice's public key installed in the .ssh directory inside alice's home directory.  You can create your own user accounts; see [wiki:GiB-tips this page] for instructions.
    245 
    246 You can ssh into node {{{pc101}}} as alice type {{{ssh -lalice pc101.geni-in-a-box.net}}} or just {{{ssh -lalice pc101}}}.  The terminal session below shows the ssh'ing into {{{pc101}}}, going to the directory with the iperf log file, and viewing that file.  The password for alice can be found in {{{~/.gcf/passwords}}}.
    247 {{{
    248 $ ssh -lalice pc101
     240You can now ssh into the hosts allocated to you and do what you need to do to get your experiment working.  For example, you can install and run software.  If needed, you can use the {{{sudo}}} command to do things that require root privileges. 
     241
     242In the case of our experiment, the software needed (iperf) was installed by our startup script.  Our startup script put the output of iperf in a file accessible from a web browser.   Since our iperf server ran on node {{{pc101}}} (the node labeled 'left' in the request spec), we can use a browser to view the output of this client.  Start up Firefox in a terminal on the GENI-in-a-Box virtual machine and enter the url {{{http://pc101.geni-in-a-box.net/iperf-server.log}}}.  The iperf server output should appear in your browser window.  You can view the iperf client output at {{{http://pc102.geni-in-a-box.net/iperf-client.log}}}.   
     243
     244You can also ssh into the node pc101 or pc102 to view these log files.  Your username on GENI-in-a-Box (gibuser) is given an account on the nodes allocated to your experiment and the public key for this user ({{{~/.gcf/gibuser.pub}}} is copied into gibuser's {{{.ssh}}} directory in each of these nodes.  The private key for gibuser is in {{{~/.ssh/gibuser}}} and must be provided to the {{{ssh}}} command. 
     245{{{
     246$ ssh -i ~/.ssh/gibuser pc101
    249247The authenticity of host 'pc101 (10.0.1.101)' can't be established.
    250 RSA key fingerprint is d1:ea:fe:92:38:69:6b:85:3e:7c:65:cb:83:26:f5:0a.
     248RSA key fingerprint is e3:7c:8a:21:16:05:93:fd:dd:56:1c:f5:5c:5b:f3:c7.
    251249Are you sure you want to continue connecting (yes/no)? yes
    252250Warning: Permanently added 'pc101,10.0.1.101' (RSA) to the list of known hosts.
    253251
    254 alice@pc101's password:
    255 [alice@left ~] $ cd /var/www/html
    256 [alice@left html] $ ls
    257 iperf-client.log
    258 [alice@left html] $ cat iperf-client.log
     252[gibuser@left ~]$ cd /var/www/html
     253[gibuser@left html]$ ls
     254iperf-server.log
     255[gibuser@left html]$ cat iperf-server.log
    259256------------------------------------------------------------
    260257Server listening on TCP port 5001
    261258TCP window size: 85.3 KByte (default)
    262259------------------------------------------------------------
    263 [  4] local 10.0.3.101 port 5001 connected with 10.0.3.102 port 53488
     260[  4] local 10.0.3.101 port 5001 connected with 10.0.3.102 port 60542
    264261[ ID] Interval       Transfer     Bandwidth
    265 [  4]  0.0-10.1 sec  50.1 MBytes  41.6 Mbits/sec
    266 [alice@left html] $
    267 }}}
     262[  4]  0.0-10.1 sec  61.8 MBytes  51.5 Mbits/sec
     263[gibuser@left html]$
     264}}}
     265
     266You can have the GENI-in-a-Box aggregate create additional user accounts on your experiment nodes; see [wiki:GiB-tips this page] for instructions.
    268267
    269268=== 2.4. Freeing up Resources ===