Changes between Version 9 and Version 10 of FlowVisor
- Timestamp:
- 01/21/13 16:28:36 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FlowVisor
v9 v10 29 29 The default configuration of !FlowVisor is general suitable for GENI sites. 30 30 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.31 We 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. 32 32 33 33 One easy way to generate a fairly secure password: … … 35 35 {{{ 36 36 sudo apt-get install pwgen 37 test -f /etc/flowvisor /fvpasswd || sudo -u flowvisor sh -c 'pwgen -sB 24 > /etc/flowvisor/fvpasswd'37 test -f /etc/flowvisor.passwd || sudo -u flowvisor sh -c 'pwgen -sB 24 > /etc/flowvisor.passwd' 38 38 sudo apt-get remove pwgen 39 39 }}} … … 45 45 == Useful commands == 46 46 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.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.passwd. 48 48 49 49 NOTE that fvctl can only be run when !FlowVisor is '''running''', and fvconfig can only be run when !FlowVisor is '''not running'''. … … 52 52 53 53 {{{ 54 fvctl --passwd-file=/etc/flowvisor /fvpasswd dumpConfig /tmp/config.json54 fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig /tmp/config.json 55 55 }}} 56 56 … … 78 78 79 79 {{{ 80 fvctl --passwd-file=/etc/flowvisor /fvpasswd dumpConfig ~flowvisor/config.json80 fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig ~flowvisor/config.json 81 81 sudo service flowvisor stop 82 82 sudo -u flowvisor sed -i -e 's/"checkpointing": false/"checkpointing": true/' ~flowvisor/config.json … … 90 90 91 91 {{{ 92 fvctl --passwd-file=/etc/flowvisor /fvpasswd listFlowSpace92 fvctl --passwd-file=/etc/flowvisor.passwd listFlowSpace 93 93 }}} 94 94 … … 96 96 97 97 {{{ 98 fvctl --passwd-file=/etc/flowvisor /fvpasswd listSlices98 fvctl --passwd-file=/etc/flowvisor.passwd listSlices 99 99 }}} 100 100 … … 102 102 103 103 {{{ 104 fvctl --passwd-file=/etc/flowvisor /fvpasswd getSliceInfo default104 fvctl --passwd-file=/etc/flowvisor.passwd getSliceInfo default 105 105 }}} 106 106 … … 110 110 111 111 {{{ 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 ; done112 for 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 113 113 }}} 114 114 … … 116 116 117 117 {{{ 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 ; done118 for 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 119 119 }}} 120 120 … … 125 125 {{{ 126 126 fvpattern=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 ; done128 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 ; done127 for 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 128 for 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 129 129 }}} 130 130 … … 134 134 135 135 {{{ 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 ; done136 for 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 137 137 }}} 138 138 … … 140 140 141 141 {{{ 142 fvctl --passwd-file=/etc/flowvisor /fvpasswd createSlice default tcp:troy.gpolab.bbn.com:50812 jbs@bbn.com143 fvctl --passwd-file=/etc/flowvisor /fvpasswd addFlowSpace all 1000 any "Slice:default=4"142 fvctl --passwd-file=/etc/flowvisor.passwd createSlice default tcp:troy.gpolab.bbn.com:50812 jbs@bbn.com 143 fvctl --passwd-file=/etc/flowvisor.passwd addFlowSpace all 1000 any "Slice:default=4" 144 144 }}} 145 145