Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Sunday 26 June 2011

AIX - ODM (Object Data Manager)

AIX - ODM (Object Data Manager)


ODM generally used for Maintain the System information, whenever we install and reconfigure the hardware device and software, that information’s added in ODM,

Mainly ODM used to store the following information’s

1. Hardware vital product data information
2. Software information
3. Smit menu
4. Nim
5. TCPIP
6. Error log
1. Device configuration information
2. Display information for SMIT (menus, selectors, and dialogs)
3. Vital product data for installation and update procedures
4. Communications configuration information
5. System resource information.
But we cannot see any ODM information in file format, but this ODM information available in many files and different path,
1. /etc/objrepos
2. /usr/lib/objrepos
3. /usr/share/lib/objrepos
NOTE:
For ODM some variable entry available in /etc/environment file.U should not edit anything in this file. If you want to check the variable entry using command
#env
The above command is used to display the variable details
ODM has two kinds of Databases
1. Pre-defined (PdDv)
2. Customized(CuDv)


1. Predefined
In this predefined Database has one Object class (PdDv) and Objects i.e.
PdDv (Object class)
Object: (Physical Information’s)
Floppy drive
Harddisk drive
Mouse like this all the devices.


2. Customized

In this customized Database has one Object class (CuDv) and Objects i.e.

CuDv (Object class)

Objects: (Installed configuration information’s)

Hdisk0
Hdisk1
Fd0
Sa0
Rmt0
Cd0
Scsi0 like this all the devices

ODM States:

ODM has two states

1. Available (device status will be 1)
2. Defined (device status will be 0)

Suppose we are installing one HDD in server. That device is currently accessible this is available state.

Suppose that installed device is removed from server or hdd has failed. This case that device is moved to defined state. i.e. that device configuration is available in server but currently device is not accessible.

We can see this available and defined device status using odmget command

#odmget CuDv ( It will display the customized device status)




ODM Commands:

For object:

1. odmadd
2. odmchange
3. odmget
4. odmdelete

1. odmadd

The above command is used to manually we can add object information in ODM

2. odmchange

The above command is used to change configurations for object in ODM
3. odmget

#odmget –q name=hdisk0 CuDv

The above command is used to display the specified object hdisk0 information in ODM

We can see this available and defined device status using odmget command

#odmget CuDv (It will display the customized device status)


4. odmdelete

#odmdelete –o CuDv –q name=hdisk0
The above command is used to delete the specified object hdisk0 in ODMe

For object class:

1. odmcreate
2. odmdrop
3. odmshow




1. odmcreate

The above command is used to manually we can add object class (PdDv) in ODM

2. odmdrop

The above command is used to stop the specified Object class in ODM
3. odmshow
The above command is used to display the specified object class in ODM

NOTE:
You should not add, delete, change, for object and object class in ODM
(100 % we don’t have permissions for ODM)

AIX - ODM Management



ODM information is stored in the directories /etc/objrepos (default ODM directory, $ODMDIR env variable), /usr/lib/objrepos and /usr/share/lib/objrepos.

odmadd
Adds objects to created object classes.

odmchange
Changes the contents of a selected object in the specified object class.

odmcreate
Produces the .c (source) and .h (include) files necessary for ODM application development and creates empty object classes.

odmdelete
Deletes selected objects from a specified object class.

odmdrop
Removes an object class.

odmget
Retrieves objects from the specified object classes and places them into an odmadd input file.

odmshow
Displays an object class definition.
odmshow CuDv : displays the object class definition for the Customized Device Database.

No comments:

Post a Comment