Changes between Version 10 and Version 11 of GENIExperimenter/Tutorials/GENIDesktop/GEC23/GENIDesktop_CLI


Ignore:
Timestamp:
06/10/15 11:40:46 (9 years ago)
Author:
Hussamuddin Nasir
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/GENIDesktop/GEC23/GENIDesktop_CLI

    v10 v11  
    1717So to get started please follow the steps below.
    1818
    19   1. [wiki:GENIExperimenter/Tutorials/GENIDesktop/GEC23/GENIDesktop_CLI#DownloadandInstallandTestGENIDesktopCLITool Download and Install and Test GENIDesktop CLI Tool.]
    20   1. Generate and Download GDCLI key.
    21   1. Enable the GDCLI using the GDCLI key.
    22   1. Using GENIDesktop CLI
     19  1. [wiki:GENIExperimenter/Tutorials/GENIDesktop/GEC23/GENIDesktop_CLI#STEP1.DownloadandInstallandTestGENIDesktopCLITool Download and Install and Test GENIDesktop CLI Tool.]
     20  1. [wiki:GENIExperimenter/Tutorials/GENIDesktop/GEC23/GENIDesktop_CLI#STEP2.GenerateandDownloadGDCLIkey. Generate and Download GDCLI key.]
     21  1. [wiki:GENIExperimenter/Tutorials/GENIDesktop/GEC23/GENIDesktop_CLI##STEP3.EnabletheGDCLIusingtheGDCLIkey. Enable the GDCLI using the GDCLI key.]
     22  1. [wiki:GENIExperimenter/Tutorials/GENIDesktop/GEC23/GENIDesktop_CLI#STEP4.UsingGENIDesktopCLI Using GENIDesktop CLI.]
    2323
    2424 == STEP 1. Download and Install and Test GENIDesktop CLI Tool ==
     
    2626 == STEP 3. Enable the GDCLI using the GDCLI key. ==
    2727 == STEP 4. Using GENIDesktop CLI ==
     28
     29  === Sample GENIDesktop CLI operations
     30
     31   NOTE: Slicename = demo , ProjectName = UKGENI
     32
     33   1. ListNodes operation
    2834
    2935{{{
     
    3339}}}
    3440
     41   2. Run Command operation
     42
    3543{{{
    36 gdcli run -s demo -r UKGENI -n "node-0,node-1" -c "sudo apt-get -y update;sudo apt-get -y install iperf"
    37 
    38 Ign http://www.cs.uky.edu trusty InRelease
    39 Ign http://www.cs.uky.edu trusty-updates InRelease
    40 Hit http://www.cs.uky.edu trusty Release.gpg
    41 Get:1 http://www.cs.uky.edu trusty-updates Release.gpg [933 B]
    42 Hit http://www.cs.uky.edu trusty Release
    43 Get:2 http://www.cs.uky.edu trusty-updates Release [63.5 kB]
    44 Hit http://www.cs.uky.edu trusty/main Sources
    45 Hit http://www.cs.uky.edu trusty/restricted Sources
    46 Hit http://www.cs.uky.edu trusty/universe Sources
    47 Hit http://www.cs.uky.edu trusty/main amd64 Packages
    48 Hit http://www.cs.uky.edu trusty/restricted amd64 Packages
    49 Hit http://www.cs.uky.edu trusty/universe amd64 Packages
    50 Hit http://www.cs.uky.edu trusty/main i386 Packages
    51 Hit http://www.cs.uky.edu trusty/restricted i386 Packages
    52 Hit http://www.cs.uky.edu trusty/universe i386 Packages
    53 Get:3 http://www.cs.uky.edu trusty-updates/main Sources [263 kB]
    54 Get:4 http://www.cs.uky.edu trusty-updates/restricted Sources [3,158 B]
    55 Get:5 http://www.cs.uky.edu trusty-updates/universe Sources [148 kB]
    56 Get:6 http://www.cs.uky.edu trusty-updates/main amd64 Packages [674 kB]
    57 Get:7 http://www.cs.uky.edu trusty-updates/restricted amd64 Packages [18.1 kB]
    58 Get:8 http://www.cs.uky.edu trusty-updates/universe amd64 Packages [371 kB]
    59 Get:9 http://www.cs.uky.edu trusty-updates/main i386 Packages [657 kB]
    60 Get:10 http://www.cs.uky.edu trusty-updates/restricted i386 Packages [18.1 kB]
    61 Get:11 http://www.cs.uky.edu trusty-updates/universe i386 Packages [372 kB]
    62 Ign http://www.cs.uky.edu trusty-updates/main Translation-en
    63 Ign http://www.cs.uky.edu trusty-updates/restricted Translation-en
    64 Ign http://www.cs.uky.edu trusty-updates/universe Translation-en
    65 Ign http://www.cs.uky.edu trusty/main Translation-en_US
    66 Ign http://www.cs.uky.edu trusty/main Translation-en
    67 Ign http://www.cs.uky.edu trusty/restricted Translation-en_US
    68 Ign http://www.cs.uky.edu trusty/restricted Translation-en
    69 Ign http://www.cs.uky.edu trusty/universe Translation-en_US
    70 Ign http://www.cs.uky.edu trusty/universe Translation-en
    71 Fetched 2,587 kB in 1s (2,016 kB/s)
    72 Reading package lists...
    73 Reading package lists...
    74 Building dependency tree...
    75 Reading state information...
    76 The following NEW packages will be installed:
    77   iperf
    78 0 upgraded, 1 newly installed, 0 to remove and 219 not upgraded.
    79 Need to get 56.3 kB of archives.
    80 After this operation, 174 kB of additional disk space will be used.
    81 Get:1 http://www.cs.uky.edu/ubuntu/ trusty/universe iperf amd64 2.0.5-3 [56.3 kB]
    82 Fetched 56.3 kB in 0s (4,642 kB/s)
    83 Selecting previously unselected package iperf.
    84 (Reading database ... 91795 files and directories currently installed.)
    85 Preparing to unpack .../iperf_2.0.5-3_amd64.deb ...
    86 Unpacking iperf (2.0.5-3) ...
    87 Processing triggers for man-db (2.6.7.1-1) ...
    88 Setting up iperf (2.0.5-3) ...
    89 
    90 Ign http://www.cs.uky.edu trusty InRelease
    91 Ign http://www.cs.uky.edu trusty-updates InRelease
    92 Hit http://www.cs.uky.edu trusty Release.gpg
    93 Get:1 http://www.cs.uky.edu trusty-updates Release.gpg [933 B]
    94 Hit http://www.cs.uky.edu trusty Release
    95 Get:2 http://www.cs.uky.edu trusty-updates Release [63.5 kB]
    96 Hit http://www.cs.uky.edu trusty/main Sources
    97 Hit http://www.cs.uky.edu trusty/restricted Sources
    98 Hit http://www.cs.uky.edu trusty/universe Sources
    99 Hit http://www.cs.uky.edu trusty/main amd64 Packages
    100 Hit http://www.cs.uky.edu trusty/restricted amd64 Packages
    101 Hit http://www.cs.uky.edu trusty/universe amd64 Packages
    102 Hit http://www.cs.uky.edu trusty/main i386 Packages
    103 Hit http://www.cs.uky.edu trusty/restricted i386 Packages
    104 Hit http://www.cs.uky.edu trusty/universe i386 Packages
    105 Get:3 http://www.cs.uky.edu trusty-updates/main Sources [263 kB]
    106 Get:4 http://www.cs.uky.edu trusty-updates/restricted Sources [3,158 B]
    107 Get:5 http://www.cs.uky.edu trusty-updates/universe Sources [148 kB]
    108 Get:6 http://www.cs.uky.edu trusty-updates/main amd64 Packages [674 kB]
    109 Get:7 http://www.cs.uky.edu trusty-updates/restricted amd64 Packages [18.1 kB]
    110 Get:8 http://www.cs.uky.edu trusty-updates/universe amd64 Packages [371 kB]
    111 Get:9 http://www.cs.uky.edu trusty-updates/main i386 Packages [657 kB]
    112 Get:10 http://www.cs.uky.edu trusty-updates/restricted i386 Packages [18.1 kB]
    113 Get:11 http://www.cs.uky.edu trusty-updates/universe i386 Packages [372 kB]
    114 Ign http://www.cs.uky.edu trusty-updates/main Translation-en
    115 Ign http://www.cs.uky.edu trusty-updates/restricted Translation-en
    116 Ign http://www.cs.uky.edu trusty-updates/universe Translation-en
    117 Ign http://www.cs.uky.edu trusty/main Translation-en_US
    118 Ign http://www.cs.uky.edu trusty/main Translation-en
    119 Ign http://www.cs.uky.edu trusty/restricted Translation-en_US
    120 Ign http://www.cs.uky.edu trusty/restricted Translation-en
    121 Ign http://www.cs.uky.edu trusty/universe Translation-en_US
    122 Ign http://www.cs.uky.edu trusty/universe Translation-en
    123 Fetched 2,587 kB in 1s (1,946 kB/s)
    124 Reading package lists...
    125 Reading package lists...
    126 Building dependency tree...
    127 Reading state information...
    128 The following NEW packages will be installed:
    129   iperf
    130 0 upgraded, 1 newly installed, 0 to remove and 219 not upgraded.
    131 Need to get 56.3 kB of archives.
    132 After this operation, 174 kB of additional disk space will be used.
    133 Get:1 http://www.cs.uky.edu/ubuntu/ trusty/universe iperf amd64 2.0.5-3 [56.3 kB]
    134 Fetched 56.3 kB in 0s (1,983 kB/s)
    135 Selecting previously unselected package iperf.
    136 (Reading database ... 91795 files and directories currently installed.)
    137 Preparing to unpack .../iperf_2.0.5-3_amd64.deb ...
    138 Unpacking iperf (2.0.5-3) ...
    139 Processing triggers for man-db (2.6.7.1-1) ...
    140 Setting up iperf (2.0.5-3) ...
    141 
     44#Start Iperf Server in daemon on node-0
     45bash:~$ gdcli run -s demo -r UKGENI -n "node-0" -c "iperf -s -D> /dev/null 2>&1"
    14246}}}
    14347
    144 Start Iperf Server in daemon on node-0
    14548{{{
    146 gdcli run -s demo -r UKGENI -n "node-0" -c "iperf -s -D> /dev/null 2>&1"
    147 }}}
     49#Start iperf client on node-1
    14850
    149 Start iperf client on node-1
    150 
    151 {{{
    152 nasir@thirdday:~$ gdcli run -s demo -r UKGENI -n "node-1" -c "iperf -t 30 -c node-0 -b 1000M"
    153 ------------------------------------------------------------
    154 Client connecting to node-0, UDP port 5001
    155 Sending 1470 byte datagrams
    156 UDP buffer size:  208 KByte (default)
    157 ------------------------------------------------------------
    158 [  3] local 10.10.1.2 port 52305 connected with 10.10.1.1 port 5001
    159 [ ID] Interval       Transfer     Bandwidth
    160 [  3]  0.0-30.0 sec  2.69 GBytes   771 Mbits/sec
    161 [  3] Sent 1967561 datagrams
    162 
    163 nasir@thirdday:~$ gdcli run -s demo -r UKGENI -n "node-1" -c "iperf -t 30 -c node-0 -b 10000M"
     51bash:~$ gdcli run -s demo -r UKGENI -n "node-1" -c "iperf -t 30 -c node-0 -b 10000M"
    16452------------------------------------------------------------
    16553Client connecting to node-0, UDP port 5001
     
    17462}}}
    17563
    176 Fetch graphs for the link in the slice.
     64   3. Download graph in PNG Format
     65
    17766{{{
    178 gdcli getpng -s demo -r UKGENI  -g linkbytes -l link-0 -n node-0 -o mygraphs
     67# Fetch graphs for the link in the slice.
     68
     69bash:~$ gdcli getpng -s demo -r UKGENI  -g linkbytes -l link-0 -n node-0 -o ~/mygraphs
    17970}}}
    180 cd into mygraphs directory. You will get two graphs one for each end of the link.