Changes between Version 15 and Version 16 of Internal/InventoryV3


Ignore:
Timestamp:
Oct 26, 2009, 6:45:39 PM (15 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/InventoryV3

    v15 v16  
    11James is working on a second generation inventory script.
    22
    3 Currently on: Testing - Have working prototype
     3Currently on: Merging scripts and getting motherboard serial number.
    44
    55
     
    1313 1. Writer: checks the mysql repository for changes from the current state. If different changes them.
    1414
     15'''NOTE''' Gatherer and Writer are being merged into a single file which I will call inventory2_client.rb
    1516
    1617The sql structure is a bit of a bit mess, the major tables of interest are:
     
    4041  1. update devices if diffrent and stamp with inventory number
    4142 1. profit.
     43
     44----
     45== Require Tools / Libraries ==
     46
     47 1. lsusb (usbutils.deb)
     48 1. lspci (native)
     49 1. dmesg (native)
     50 1. ifconfig (native)
     51 1. libxml-simple-ruby.deb
     52 1. libmysql-ruby.deb
     53 1. lshw (lshw.deb)
    4254
    4355----
     
    161173Also now writer only checks vendor and device id. If no match is found it will add it with the description string.
    162174
     175----
     176=== 10/26/09 ===
     177
     178Modifying gather to use lshw to collect uuid (motherboard serial number) also changing the internal data types to more closely match the table contents e.g devices and motherboards.
     179
     180Originally I thought to just used lshw to gather most of the information, but this doesn't really gain us any thing since I would have to resort to the other tools (lsusb and lspci) to find the relevant entries in lshw output (and would require a huge rewrite of the gatherer). Lshw can output in a few diffrent ways. I'm currently using the direct line by line approach to search for the uuid. I did however experiment with the -xml output. When combined with XmlSimple.xml_in()
     181