Changes between Version 18 and Version 19 of Internal/InventoryV3


Ignore:
Timestamp:
Nov 17, 2009, 11:32:36 PM (15 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/InventoryV3

    v18 v19  
    11James is working on a second generation inventory script.
    22
    3 Currently on: Merging scripts and getting motherboard serial number.
    4 
     3Currently on: reorganising code
     4
     5Versions:
     6
     7Gather:0.87
     8Writer:0.9
    59
    610It's plan is to be simpler and less ambitious than it's predecessor, but still respect the sql table structure ("as much as possible.")
     
    220224 * If a motherboard is not found then we insert it.
    221225 * should get node id from sql table matching against location
     226
     227----
     228=== 11/17/09 ===
     229
     230Modifications on writer have been completed (preliminary checks worked).
     231 * reverted Db.hupdate to only update. The calling functions should decide whether to insert or update.
     232 * Mb_id nows checks against serial instead of location in the Identify class
     233 * update_mb now checks for mb_id. If the ID is present it will update the record
     234   otherwise it will insert WITHOUT specifying and ID since SQL should autoincremt the ids
     235 * Nodes are uniquely identified by a triple of (node_id, location_id, motherboar_id). Its assumed that the (node_id,location_id)
     236   portion is constant. Thus the only change/ update we should check for and preform is to ensure that the motherboard id matches
     237   for a given node_id, location_id pair. the update_node function only modifies motherboard_id's
     238
     239Things that need to be done:
     240 * move all the "checks" into the get methods (depreciate the get methods). check() should simply call the sub_check methods and retain
     241   a hash of matches for specific data structures (table entries).
     242 * update can then iterate that hash and call the respective update functions for each give table.
     243 * the data structure design paradigm should be to have one data structure for each table that needs to be checked / update. It's
     244   pretty close to this, but needs a little work.
     245