Changes between Version 36 and Version 37 of OpenFlow/FOAM
- Timestamp:
- 01/18/13 11:34:29 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenFlow/FOAM
v36 v37 37 37 When you install FOAM for the first time (i.e. not an upgrade to an existing installation), you should configure its ability to send you administrative e-mail; those steps are part of the official [https://openflow.stanford.edu/display/FOAM/0.8.x+Install+Guide FOAM 0.8 install guide]. 38 38 39 We typically put the FOAM admin password into / opt/foam/etc/foampasswd, so you don't have to type it every time you run a foamctl command. Make sure that it's only readable by people who should have full admin access to FOAM on your system! (World-readable might be fine if only FOAM admins have accounts on your FOAM server; or you might want to make it only group-readable by a group that includes the FOAM admins.) The examples on the rest of this page assume that you've done that.39 We typically put the FOAM admin password into /etc/foam.passwd, so you don't have to type it every time you run a foamctl command. Make sure that it's only readable by people who should have full admin access to FOAM on your system! (World-readable might be fine if only FOAM admins have accounts on your FOAM server; or you might want to make it only group-readable by a group that includes the FOAM admins.) The examples on the rest of this page assume that you've done that. 40 40 41 41 You'll then need to configure FOAM to point to your FlowVisor, which you can do interactively with {{{foamctl config:set-flowvisor-info}}}, or non-interactively like this (with values that work for your installation): 42 42 43 43 {{{ 44 foamctl config:set-value --key="flowvisor.hostname" --value="localhost" --passwd-file=/ opt/foam/etc/foampasswd45 foamctl config:set-value --key="flowvisor.passwd" --value="$(cat /etc/flowvisor/fvpasswd)" --passwd-file=/ opt/foam/etc/foampasswd44 foamctl config:set-value --key="flowvisor.hostname" --value="localhost" --passwd-file=/etc/foam.passwd 45 foamctl config:set-value --key="flowvisor.passwd" --value="$(cat /etc/flowvisor/fvpasswd)" --passwd-file=/etc/foam.passwd 46 46 }}} 47 47 … … 49 49 50 50 {{{ 51 foamctl config:set-value --key="geni.site-tag" --value="foam.gpolab.bbn.com" --passwd-file=/ opt/foam/etc/foampasswd51 foamctl config:set-value --key="geni.site-tag" --value="foam.gpolab.bbn.com" --passwd-file=/etc/foam.passwd 52 52 }}} 53 53 … … 62 62 63 63 {{{ 64 foamctl config:set-value --key="site.admin.email" --value="foam-admin@gpolab.bbn.com" --passwd-file=/ opt/foam/etc/foampasswd65 foamctl config:set-value --key="geni.max-lease" --value=9000 --passwd-file=/ opt/foam/etc/foampasswd64 foamctl config:set-value --key="site.admin.email" --value="foam-admin@gpolab.bbn.com" --passwd-file=/etc/foam.passwd 65 foamctl config:set-value --key="geni.max-lease" --value=9000 --passwd-file=/etc/foam.passwd 66 66 }}} 67 67 … … 78 78 cd ~/tmp/foam-upgrade/before 79 79 80 foamctl geni:list-slivers --passwd-file=/ opt/foam/etc/foampasswd > list-slivers-active.txt81 foamctl geni:list-slivers --deleted --passwd-file=/ opt/foam/etc/foampasswd > list-slivers-deleted.txt80 foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt 81 foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd > list-slivers-deleted.txt 82 82 83 83 egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt … … 97 97 cd ~/tmp/foam-upgrade/after 98 98 99 foamctl geni:list-slivers --passwd-file=/ opt/foam/etc/foampasswd > list-slivers-active.txt100 foamctl geni:list-slivers --deleted --passwd-file=/ opt/foam/etc/foampasswd > list-slivers-deleted.txt99 foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt 100 foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd > list-slivers-deleted.txt 101 101 102 102 egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt … … 146 146 147 147 {{{ 148 foamctl config:set-value --key="geni.approval.approve-on-creation" --value="2" --passwd-file=/ opt/foam/etc/foampasswd148 foamctl config:set-value --key="geni.approval.approve-on-creation" --value="2" --passwd-file=/etc/foam.passwd 149 149 }}} 150 150 … … 205 205 Here are some specific commands that we've found useful for performing common tasks. 206 206 207 These commands all assume that you're running them on the FOAM server, and that you have a file / opt/foam/etc/foampasswd, containing the FOAM admin password.207 These commands all assume that you're running them on the FOAM server, and that you have a file /etc/foam.passwd, containing the FOAM admin password. 208 208 209 209 === Get a list of slivers === … … 212 212 213 213 {{{ 214 foamctl geni:list-slivers -s Pending --passwd-file=/ opt/foam/etc/foampasswd214 foamctl geni:list-slivers -s Pending --passwd-file=/etc/foam.passwd 215 215 }}} 216 216 … … 218 218 219 219 {{{ 220 foamctl geni:list-slivers --passwd-file=/ opt/foam/etc/foampasswd220 foamctl geni:list-slivers --passwd-file=/etc/foam.passwd 221 221 }}} 222 222 … … 232 232 233 233 {{{ 234 foamctl geni:list-slivers --deleted --passwd-file=/ opt/foam/etc/foampasswd234 foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd 235 235 }}} 236 236 … … 240 240 241 241 {{{ 242 foamctl geni:list-slivers --passwd-file=/ opt/foam/etc/foampasswd | egrep sliver_urn.+exampleslice242 foamctl geni:list-slivers --passwd-file=/etc/foam.passwd | egrep sliver_urn.+exampleslice 243 243 }}} 244 244 … … 246 246 247 247 {{{ 248 slicename=exampleslice ; sliver_urn=$(foamctl geni:list-slivers --passwd-file=/ opt/foam/etc/foampasswd | egrep sliver_urn.+$slicename | sed -e 's/ *"sliver_urn": "\(.*\)".*/\1/') ; flowvisor_slice=$(echo $sliver_urn | awk -F : '{print $NF}')248 slicename=exampleslice ; sliver_urn=$(foamctl geni:list-slivers --passwd-file=/etc/foam.passwd | egrep sliver_urn.+$slicename | sed -e 's/ *"sliver_urn": "\(.*\)".*/\1/') ; flowvisor_slice=$(echo $sliver_urn | awk -F : '{print $NF}') 249 249 }}} 250 250 … … 256 256 257 257 {{{ 258 foamctl geni:show-sliver -u $sliver_urn --passwd-file=/ opt/foam/etc/foampasswd258 foamctl geni:show-sliver -u $sliver_urn --passwd-file=/etc/foam.passwd 259 259 }}} 260 260 … … 262 262 263 263 {{{ 264 foamctl geni:show-sliver -r -u $sliver_urn --passwd-file=/ opt/foam/etc/foampasswd264 foamctl geni:show-sliver -r -u $sliver_urn --passwd-file=/etc/foam.passwd 265 265 }}} 266 266 … … 268 268 269 269 {{{ 270 foamctl geni:show-sliver -s -u $sliver_urn --passwd-file=/ opt/foam/etc/foampasswd270 foamctl geni:show-sliver -s -u $sliver_urn --passwd-file=/etc/foam.passwd 271 271 }}} 272 272 … … 274 274 275 275 {{{ 276 foamctl geni:show-sliver -f -u $sliver_urn --passwd-file=/ opt/foam/etc/foampasswd276 foamctl geni:show-sliver -f -u $sliver_urn --passwd-file=/etc/foam.passwd 277 277 }}} 278 278 … … 282 282 283 283 {{{ 284 foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/ opt/foam/etc/foampasswd284 foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/etc/foam.passwd 285 285 }}} 286 286 … … 290 290 291 291 {{{ 292 foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/ opt/foam/etc/foampasswd292 foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/etc/foam.passwd 293 293 }}} 294 294 … … 298 298 299 299 {{{ 300 foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/ opt/foam/etc/foampasswd300 foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/etc/foam.passwd 301 301 }}} 302 302 … … 306 306 307 307 {{{ 308 foamctl geni:delete-sliver -u $sliver_urn --passwd-file=/ opt/foam/etc/foampasswd308 foamctl geni:delete-sliver -u $sliver_urn --passwd-file=/etc/foam.passwd 309 309 }}} 310 310 … … 319 319 oldsliver=<old sliver URN> 320 320 newsliver=<new sliver URN> 321 foamctl geni:show-sliver -r -u $oldsliver --passwd-file=/ opt/foam/etc/foampasswd > old.txt322 foamctl geni:show-sliver -r -u $newsliver --passwd-file=/ opt/foam/etc/foampasswd > new.txt321 foamctl geni:show-sliver -r -u $oldsliver --passwd-file=/etc/foam.passwd > old.txt 322 foamctl geni:show-sliver -r -u $newsliver --passwd-file=/etc/foam.passwd > new.txt 323 323 diff -u old.txt new.txt 324 324 }}} … … 375 375 376 376 {{{ 377 foamctl config:set-value --key="flowvisor.passwd" --value="$(cat /etc/flowvisor/fvpasswd)" --passwd-file=/ opt/foam/etc/foampasswd377 foamctl config:set-value --key="flowvisor.passwd" --value="$(cat /etc/flowvisor/fvpasswd)" --passwd-file=/etc/foam.passwd 378 378 }}} 379 379