| 1 | |
| 2 | Before configuring your omni, you will need to run this command. For <USERNAME>, |
| 3 | you can use anything you want. |
| 4 | |
| 5 | {{{ |
| 6 | gen-certs.py -f gcf.ini -u <USERNAME> |
| 7 | }}} |
| 8 | |
| 9 | Then we would need to start a local clearing house, slice authority and aggregate manager. |
| 10 | Run this command to start the CH and the SA: |
| 11 | {{{ |
| 12 | xterm -e gcf-ch.py -f gcf.ini & |
| 13 | }}} |
| 14 | |
| 15 | Run this command to start the AM: |
| 16 | {{{ |
| 17 | xterm -e gcf-am.py -f gcf.ini & |
| 18 | }}} |
| 19 | |
| 20 | Now you can go ahead and configure omni. You can go through the omni commands |
| 21 | that we go over in the tutorial just use the option '-f my_gcf'. |
| 22 | |
| 23 | * 'createslice' command would look like |
| 24 | {{{ |
| 25 | omni.py createslice <USERNAME>slice -f my_gcf |
| 26 | }}} |
| 27 | |
| 28 | * 'listmyslices' |
| 29 | {{{ |
| 30 | omni.py listmyslices <USERNAME> -f my_gcf |
| 31 | }}} |
| 32 | |
| 33 | * 'renewslice' |
| 34 | {{{ |
| 35 | omni.py renewslice -c omni_config_inki inkislice -f my_gcf 20110727T00:00:00 |
| 36 | }}} |
| 37 | |
| 38 | Also use the '--omnispec' in listresources, createsliver. So listresources would look like |
| 39 | |
| 40 | * 'listresources' |
| 41 | {{{ |
| 42 | omni.py listresources -f my_gcf --omnispec -o |
| 43 | }}} |
| 44 | Copy the output file from the above command to a new file |
| 45 | {{{ |
| 46 | cp omnispec-1AMs.json rspecs/mygcf.rspec |
| 47 | }}} |
| 48 | |
| 49 | * 'createsliver' |
| 50 | Edit the above created file, 'mygcf.rspec', and change the 'allocate' ('''NOT''' the 'allocated') from false to true and then |
| 51 | {{{ |
| 52 | omni.py createsliver -f my_gcf --omnispec <USERNAME>slice rspecs/mygcf.rspec |
| 53 | }}} |
| 54 | |
| 55 | * 'listresources' in a slice |
| 56 | {{{ |
| 57 | omni.py listresources -f my_gcf --omnispec <USERNAME>slice |
| 58 | }}} |
| 59 | |
| 60 | * 'deletesliver' |
| 61 | {{{ |
| 62 | {{{ |
| 63 | omni.py deletesliver -f my_gcf --omnispec <USERNAME>slice |
| 64 | }}} |