Changes between Version 9 and Version 10 of Internal/Infrastructure/OMF/GridServices/Inventory


Ignore:
Timestamp:
Jun 5, 2008, 6:21:49 PM (12 years ago)
Author:
Joseph F. Miklojcik III
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/Infrastructure/OMF/GridServices/Inventory

    v9 v10  
    6363The gathering procedure uses {{{lspci}}}, {{{lsusb}}}, {{{dmidecode}}} and {{{sysfs}}}.  The most frustrating and difficult part of maintaining the code is keeping up with changes in {{{/sys}}} over even minor kernel revisions.
    6464
    65 The current inventory code can all be found in the image {{{inventory.ndz}}}.  Source is controlled by {{{git}}}.  At the time of this writing there is no functioning {{{git}}} server at WINLAB, so just mail patches to {{{jfm3}}} at {{{winlab.rutgers.edu}}}.
    66  
     65The current inventory code can all be found in the image {{{inventory.ndz}}} in {{{/root/inv.tar}}}.  Source is controlled by {{{git}}}.  At the time of this writing there is no functioning {{{git}}} server at WINLAB, so just mail patches to {{{jfm3}}} at {{{winlab.rutgers.edu}}}.  From {{{baseline.ndz}}}, you will also need the packages {{{sbcl}}}, {{{cl-sql}}}, and {{{cl-ppcre}}}.  '''Porting to a new baseline image is usually a fair amount of work.''' {{{sysfs}}} has proven to be a very moving target, so far.
     66
     67To run inventory, follow the following procedure from the console.  (It would be good to script more of this.)
     68
     69 1. {{{sh> tar xvf inv.tar}}}
     70 1. {{{sh> mkdir -p ~/.sbcl/systems}}}
     71 1. {{{sh> cd inventory}}}
     72 1. {{{sh> ln -s *.asd ~/.sbcl/systems}}}
     73
     74You only need to do the above steps once ever.  If you use symbolic links, untarring new versions of the code over the old will not cause any problems downstream.
     75
     76 1. {{{sh> sbcl}}}
     77 1. {{{sbcl> (asdf:operate 'asdf:load-op 'inventory)}}}
     78 1. {{{sbcl> (inv:open-inventory)}}}
     79 1. {{{sbcl> (quit)}}}
     80 1. {{{sh> orbit load all inventory.ndz}}}
     81 1. {{{sh> orbit exec inv}}}
     82 1. {{{sh> sbcl}}}
     83 1. {{{sbcl> (asdf:operate 'asdf:load-op 'inventory)}}}
     84 1. {{{sbcl> (inv:regenerate-tags-table)}}}
     85 1. {{{sbcl> (inv:close-inventory)}}}
     86 1. {{{sbcl> (quit)}}}