Changes between Version 15 and Version 16 of Internal/InventoryV3
- Timestamp:
- Oct 26, 2009, 6:45:39 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/InventoryV3
v15 v16 1 1 James is working on a second generation inventory script. 2 2 3 Currently on: Testing - Have working prototype3 Currently on: Merging scripts and getting motherboard serial number. 4 4 5 5 … … 13 13 1. Writer: checks the mysql repository for changes from the current state. If different changes them. 14 14 15 '''NOTE''' Gatherer and Writer are being merged into a single file which I will call inventory2_client.rb 15 16 16 17 The sql structure is a bit of a bit mess, the major tables of interest are: … … 40 41 1. update devices if diffrent and stamp with inventory number 41 42 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) 42 54 43 55 ---- … … 161 173 Also now writer only checks vendor and device id. If no match is found it will add it with the description string. 162 174 175 ---- 176 === 10/26/09 === 177 178 Modifying 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 180 Originally 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