Changes between Version 9 and Version 10 of FlowVisor


Ignore:
Timestamp:
01/21/13 16:28:36 (7 years ago)
Author:
Josh Smift
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FlowVisor

    v9 v10  
    2929The default configuration of !FlowVisor is general suitable for GENI sites.
    3030
    31 We typically put the !FlowVisor fvadmin password into /etc/flowvisor/fvpasswd, so you don't have to type it every time you run an fvctl command. Make sure that it's only readable by people who should have full admin access to !FlowVisor on your system! (World-readable might be fine if only FV admins have accounts on your FV server; or you might want to make it only group-readable by a group that includes the FV admins.) The examples on the rest of this page assume that you've done that.
     31We typically put the !FlowVisor fvadmin password into /etc/flowvisor.passwd, so you don't have to type it every time you run an fvctl command. Make sure that it's only readable by people who should have full admin access to !FlowVisor on your system! (World-readable might be fine if only FV admins have accounts on your FV server; or you might want to make it only group-readable by a group that includes the FV admins.) The examples on the rest of this page assume that you've done that.
    3232
    3333One easy way to generate a fairly secure password:
     
    3535{{{
    3636sudo apt-get install pwgen
    37 test -f /etc/flowvisor/fvpasswd || sudo -u flowvisor sh -c 'pwgen -sB 24 > /etc/flowvisor/fvpasswd'
     37test -f /etc/flowvisor.passwd || sudo -u flowvisor sh -c 'pwgen -sB 24 > /etc/flowvisor.passwd'
    3838sudo apt-get remove pwgen
    3939}}}
     
    4545== Useful commands ==
    4646
    47 Here are some useful fvctl and fvconfig commands; run these on the system that runs the !FlowVisor you want to configure, with the fvadmin password in /etc/flowvisor/fvpasswd.
     47Here are some useful fvctl and fvconfig commands; run these on the system that runs the !FlowVisor you want to configure, with the fvadmin password in /etc/flowvisor.passwd.
    4848
    4949NOTE that fvctl can only be run when !FlowVisor is '''running''', and fvconfig can only be run when !FlowVisor is '''not running'''.
     
    5252
    5353{{{
    54 fvctl --passwd-file=/etc/flowvisor/fvpasswd dumpConfig /tmp/config.json
     54fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig /tmp/config.json
    5555}}}
    5656
     
    7878
    7979{{{
    80 fvctl --passwd-file=/etc/flowvisor/fvpasswd dumpConfig ~flowvisor/config.json
     80fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig ~flowvisor/config.json
    8181sudo service flowvisor stop
    8282sudo -u flowvisor sed -i -e 's/"checkpointing": false/"checkpointing": true/' ~flowvisor/config.json
     
    9090
    9191{{{
    92 fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace
     92fvctl --passwd-file=/etc/flowvisor.passwd listFlowSpace
    9393}}}
    9494
     
    9696
    9797{{{
    98 fvctl --passwd-file=/etc/flowvisor/fvpasswd listSlices
     98fvctl --passwd-file=/etc/flowvisor.passwd listSlices
    9999}}}
    100100
     
    102102
    103103{{{
    104 fvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo default
     104fvctl --passwd-file=/etc/flowvisor.passwd getSliceInfo default
    105105}}}
    106106
     
    110110
    111111{{{
    112 for slice in $(fvctl --passwd-file=/etc/flowvisor/fvpasswd listSlices 2>&1 | grep Slice | grep -v fvadmin | awk '{ print $3; }') ; do echo $slice ; fvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo $slice | grep controller ; done
     112for slice in $(fvctl --passwd-file=/etc/flowvisor.passwd listSlices 2>&1 | grep Slice | grep -v fvadmin | awk '{ print $3; }') ; do echo $slice ; fvctl --passwd-file=/etc/flowvisor.passwd getSliceInfo $slice | grep controller ; done
    113113}}}
    114114
     
    116116
    117117{{{
    118 for id in $(fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace 2>&1 | sed -e 's/rule.*id=\[\([0-9]*\)\].*/\1/' | egrep ^[0-9]*$) ; do fvctl --passwd-file=/etc/flowvisor/fvpasswd removeFlowSpace $id ; done
     118for id in $(fvctl --passwd-file=/etc/flowvisor.passwd listFlowSpace 2>&1 | sed -e 's/rule.*id=\[\([0-9]*\)\].*/\1/' | egrep ^[0-9]*$) ; do fvctl --passwd-file=/etc/flowvisor.passwd removeFlowSpace $id ; done
    119119}}}
    120120
     
    125125{{{
    126126fvpattern=00:0c:29:82:59:5b
    127 for id in $(fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace | egrep -i $fvpattern 2>&1 | sed -e 's/rule.*id=\[\([0-9]*\)\].*/\1/' | egrep ^[0-9]*$) ; do echo fvctl --passwd-file=/etc/flowvisor/fvpasswd removeFlowSpace $id ; done
    128 for id in $(fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace | egrep -i $fvpattern 2>&1 | sed -e 's/rule.*id=\[\([0-9]*\)\].*/\1/' | egrep ^[0-9]*$) ; do fvctl --passwd-file=/etc/flowvisor/fvpasswd removeFlowSpace $id ; done
     127for id in $(fvctl --passwd-file=/etc/flowvisor.passwd listFlowSpace | egrep -i $fvpattern 2>&1 | sed -e 's/rule.*id=\[\([0-9]*\)\].*/\1/' | egrep ^[0-9]*$) ; do echo fvctl --passwd-file=/etc/flowvisor.passwd removeFlowSpace $id ; done
     128for id in $(fvctl --passwd-file=/etc/flowvisor.passwd listFlowSpace | egrep -i $fvpattern 2>&1 | sed -e 's/rule.*id=\[\([0-9]*\)\].*/\1/' | egrep ^[0-9]*$) ; do fvctl --passwd-file=/etc/flowvisor.passwd removeFlowSpace $id ; done
    129129}}}
    130130
     
    134134
    135135{{{
    136 for slice in $(fvctl --passwd-file=/etc/flowvisor/fvpasswd listSlices 2>&1 | grep Slice | grep -v fvadmin | awk '{ print $3; }') ; do fvctl --passwd-file=/etc/flowvisor/fvpasswd deleteSlice $slice ; done
     136for slice in $(fvctl --passwd-file=/etc/flowvisor.passwd listSlices 2>&1 | grep Slice | grep -v fvadmin | awk '{ print $3; }') ; do fvctl --passwd-file=/etc/flowvisor.passwd deleteSlice $slice ; done
    137137}}}
    138138
     
    140140
    141141{{{
    142 fvctl --passwd-file=/etc/flowvisor/fvpasswd createSlice default tcp:troy.gpolab.bbn.com:50812 jbs@bbn.com
    143 fvctl --passwd-file=/etc/flowvisor/fvpasswd addFlowSpace all 1000 any "Slice:default=4"
     142fvctl --passwd-file=/etc/flowvisor.passwd createSlice default tcp:troy.gpolab.bbn.com:50812 jbs@bbn.com
     143fvctl --passwd-file=/etc/flowvisor.passwd addFlowSpace all 1000 any "Slice:default=4"
    144144}}}
    145145