| | 1 | == How to Run Inventory == |
| | 2 | To run inventory preform the following: |
| | 3 | |
| | 4 | From repository1: |
| | 5 | {{{ |
| | 6 | 1. root@repository1:~# cd /tftpboot/pxelinux.cfg/ |
| | 7 | }}} |
| | 8 | Create link to domain |
| | 9 | {{{ |
| | 10 | 2. root@repository1:/tftpboot/pxelinux.cfg# ln -s inventory-nb-grid 0A0A |
| | 11 | }}} |
| | 12 | || '''HEX''' || '''Domain''' || |
| | 13 | || 0A0A || Grid || |
| | 14 | || 0A0B || SB1 || |
| | 15 | || 0A0C || SB2 || |
| | 16 | || 0A0D || SB3 || |
| | 17 | || 0A0E || SB4 || |
| | 18 | || 0A0F || SB5 || |
| | 19 | || 0A11 || SB6 || |
| | 20 | || 0A12 || SB7 || |
| | 21 | || 0A13 || SB8 || |
| | 22 | || 0A14 || SB9 || |
| | 23 | || 0A28 || Outdoor || |
| | 24 | From grid: |
| | 25 | {{{ |
| | 26 | 3. omf tell -a on -t <topo> |
| | 27 | }}} |
| | 28 | 4. Wait 5-10 minutes for nodes to boot and load inventory information. If doing a large portion of the grid the nodes should be turned on in small batches to avoid overloading the server. |
| | 29 | 5. Turn nodes back off |
| | 30 | 6. '''Break the link''' if this is not done the next person to use the grid will have a bad time. |
| | 31 | {{{ |
| | 32 | ? |
| | 33 | }}} |
| | 34 | From internal1, run the ruby scripts: |
| | 35 | {{{ |
| | 36 | 7. root@internal1:~# cd /usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory/ |
| | 37 | root@internal1:/usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory# ruby mktopo_cpu.rb |
| | 38 | root@internal1:/usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory# ruby mktopo_dev.rb |
| | 39 | root@internal1:/usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory# ruby mktopo_disk.rb |
| | 40 | }}} |
| | 41 | |
| | 42 | '''Note''': each ruby script takes some time to preform all the actions, and the omf-agg-manager restarts every even hour on the 11th minute. If the ruby process is running at that time it will fail. |