opsi Version 3.3.1 - opsi Download - uib
opsi Version 3.3.1 - opsi Download - uib
opsi Version 3.3.1 - opsi Download - uib
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
9.3. MySQL-backend for inventory data<br />
9.3.1. overview and datastructure<br />
9. <strong>opsi</strong> data storage (backend)<br />
Inventory data is stored in structured text files by default. This type of storage is not very<br />
useful if you wish to form free queries on these data. In order to allow free queries and<br />
reports a mysql based backend for the inventory data has been introduced.<br />
The main characteristics of this backend are:<br />
● only for inventory data (up to now)<br />
● optional (not the default backend)<br />
● a very fine granulated data structure with an additional table to make queries<br />
easier.<br />
● a history function which tracks changes in the inventory.<br />
The MySQL based backend for the inventory data exists since <strong>opsi</strong> 3.3. Regarding the<br />
very different structure of the components in the inventory the resulting datastructure is<br />
complex.<br />
The table 'hosts' comprises all known hosts. For every device type we use two tables:<br />
The HARDWARE_DEVICE_ .table describes the model without individual aspects like<br />
the serial number. The HARDWARE_CONFIG table stores these individual and<br />
configuration data.<br />
These both tables are connected via the field hardware_id. This is the resulting list of<br />
tables:<br />
HARDWARE_CONFIG_1394_CONTROLLER<br />
HARDWARE_CONFIG_AUDIO_CONTROLLER<br />
HARDWARE_CONFIG_BASE_BOARD<br />
HARDWARE_CONFIG_BIOS<br />
HARDWARE_CONFIG_CACHE_MEMORY<br />
HARDWARE_CONFIG_COMPUTER_SYSTEM<br />
HARDWARE_CONFIG_DISK_PARTITION<br />
HARDWARE_CONFIG_FLOPPY_CONTROLLER<br />
HARDWARE_CONFIG_FLOPPY_DRIVE<br />
HARDWARE_CONFIG_HARDDISK_DRIVE<br />
HARDWARE_CONFIG_IDE_CONTROLLER<br />
HARDWARE_CONFIG_KEYBOARD<br />
HARDWARE_CONFIG_MEMORY_BANK<br />
HARDWARE_CONFIG_MEMORY_MODULE<br />
115