Fifth Chapter Object Database Manager (ODM)

Source: Internet
Author: User

First, ODM overview

The AIX system uses a special method to manage and maintain system configuration information, device information, and key product information. All of this information is stored in the/etc/objrepos,/usr/lib/objrepos and/usr/share/lib/objrepos directories, and the files located in these directories are referred to as System object classes.

The System object class is managed by the Object Database Manager (ODM), the object Database Manager, or ODM, which is a set of programs and commands for managing object-oriented databases. Therefore the System object class also becomes the ODM database.

The basic components of ODM are object classes and objects. An object class is a collection of identical objects of the same structure, equivalent to a record-type file with a fixed format. For example, the code that defines the Pdat object class:

An object is a member of an object class, like an instance of a class in C + +, an array element of an array of structures in the Pdat, or a record in a record-type file, similar to an instance of the object class:

Second, ODM responsible for the data

ODM is responsible for the management and maintenance of the system data are:

1) Device configuration information

2) display information for the Smit tool's menus, selections, and dialog boxes

3) keyword product database used during software installation and update (SWVPD)

4) network communication configuration information

5) System Resource Information

There are two types of device information: predefined (predefined) and user-defined (customized). Predefined data contains all device configuration information that the system may support, and user-defined data contains configuration information for the actual device that is already defined or configured in the system. When the system installs and initializes the boot, the system detects the devices that the current system is connected to, and defines the current settings of the device in the user-defined database, updating the user-defined database when the user executes the command definition configuration device when the system is running. When installing the software, the ODM database is also updated, and the resources managed by the system resource controller are stored in the ODM database, but not all system data is stored in the ODM database.
Third, the ODM database file

The OMD database also exists as a text file, but is not ASCII encoded, so the general editor cannot edit it. The ODM database files are stored in the/etc/objrepos,/usr/lib/objrepos and/usr/share/lib/objrepos directories.

The files in the /etc/objrepos directory are: User-defined Device object classes and 4 object classes for the root (root) portion of SWVPD. The information located in this directory cannot be shared over the network. It mainly includes what hardware information is configured in this host system, which readable/writable software and the representative configuration information details of this host system .

For example, the first stage of the start of a small machine definition defines a basic device that is a device with a phase property of 1 in the Config_rules class, and this Config_rules file is in the/etc/objrepos directory:

Files located in the /usr/lib/objrepos directory include the predefined device classes, the Smit Menu object class, and the 4 object classes of the SWVPD installable Software PRODUCT and/usr section . The object classes in this directory are read-only and can be shared over the network by the/USR client, diskless and no data workstations. software installed in/usr can only be shared by the AIX system via the network.

Files located in the /usr/share/lib/objrepos directory include 4 object classes for the/usr/share portion of the SWVPD installable Software PRODUCT . The difference between the files saved by/usr/lib and/usr/share/lib is that the/usr/share/lib directory includes a read-only shareable device portion of the software, such as text files and message files, such as text files and message files, which do not depend on aix,/usr/ Lib includes parts of the software that are executed on a particular machine.

Four, the object class

The ODM database consists of 6 objects, respectively, with the definition of device information, user-defined device information, software information, Smit menu, log information and network Installation Manager.

1) Pre-defined device information includes the object class has PDDV,PDAT,PDCN;

The PDDV object class includes all and defined devices supported by the system, and it also includes a link to a Pdat object class.

The Pdat object class includes all the possible properties of all predefined devices supported by the system.

PDCN object classes include pre-linked properties for each device supported by the system

2) User-defined device information includes the object classes Cudv,cuat,cudep,cudvdr,config_rules,CUVPD, which include all user-defined devices. User-defined devices are those devices that actually exist in the system, and they are already defined, the system is in use or ready to use the devices, not the devices that can be connected to the system, because there are more devices connected to the system than the connected devices.

3) software information refers to the software's important product database, including the object class has history,inventory,lpp,product.

The History object class includes a historical record of installing and updating software products.

The Inventory object class includes information about the files associated with a software product.

The LPP object class includes information about the software products that are already installed, and of course the status information for the current software PRODUCT

The Product object class describes information about the products that are installed and updated for the SOFTWARE product, and of course the status information for the current software PRODUCT.

4) The Smit menu includes an object class with Sm_menu_opt,sm_name_hdr,sm_cmde_hdr,sm_cmd_opt.

5) The log information includes error log information, Alog and dump information, and its object class is Swservat. The object class includes the name, type, size, location, and some other property information for these log files.

Five, ODM command

Before using the ODM command, you must ensure that the ¥ODMDIR environment variable is set correctly and set the method as follows:

#export Odmdir=/etc/objrepos

Fifth Chapter Object Database Manager (ODM)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.