| 408 | |
| 409 | === 1/25/20100 === |
| 410 | |
| 411 | The script is mostly done. I've added an update method to the USB class (a subclass of device). There were a few sanity check tweaks that had to be added (empty vendor string, disks with no size e.g. cdroms). That being said the omf-5.2 setup required a complete rewrite of the calling/executing script. The newst version is now named inventory-5.2.rb. |
| 412 | The checking/inserting/updating function of the update method remains mostly the same as the network, however I've trimmed the header array a bit since I don't have as much information for Usb as I do for network. |
| 413 | |
| 414 | All the non hardware specific infromation has been pulled into a new System class (node_id, inventory_id, location_id, etc...). It's a subclass of component (most for mysql stuff), but doesn't require any "external" refrences. |
| 415 | |
| 416 | The omf-5.2 problems are still being worked on but once those are ironed out we can call the "script" portion done. The final step requires moving the functionality to a pxeimage, and then tweaking the "load" expirment to become the "inventory" expirment (by replacing frisbee lines with ruby /gatherer.rb lines). |
| 417 | |
| 418 | I think version 2.23 is feature complete (with the exception of dreaming up a way to figure out usb devices mac addres, and making some of the other flags e.g. xml, file, etc.. ) do something |
| 419 | |
| 420 | In the inventory script I call gatherer.rb with a -d -l /tmp/gatherer.log so I can check the log if any thing goes wrong. Since We're using the def application facility, if the script throw any errors, the framework captures them and brings them back to console. |