Object Data Manager (ODM) in AIX - Quick Overview

Object Data Manager (ODM)

What is ODM?


ODM
  • Maintains system config, device and vital product data
  • Provide a more robust, secure and sharable resource
  • Provide a reliable object oriented database facility
Data Managed By ODM
  • Device Configuration Information
  • Software Vital Product Data
  • SRC information
  • Communications configuration data
  • Menus and commands for SMIT
ODM has three components
  • Object class - These are datafiles.
  • Objects - Records within Datafiles
  • Descriptors - Field within a record

Where ODM Object Class files are stored?

This can be defined in /etc/environment file. The ODM object clases are held in three repositories
  1. /etc/objrepos
  2. /usr/lib/objrepos
  3. /usr/share/lib/objrepos

Some important ODM Database files

Supported devices and attributes and connection information are stored in
 PdDv, PdAt, PdCn, etc..
Records or customizrd Devices and attributes, VPD are stored in
 CuDv, CuAt, CuDep, Config_Rules, CuVPD, etc ...
Have software information
lpp, history, product, inventory, etc..
SMIT menus, commands, options
sm_cmd_hdr, sm_cmd_opt, sm_menu_opt
NIM Resource and configuraion informations
nim_object, nim_pdattr, nim_altr
Errorlog, alog and dump file info
 SWservAt

Useful ODM Commands

odmget     - To retrives objects from an Object Class in stanza format
odmdelete  - To delete objects what meet a specifig criteria.
             If no criteria specified, all objects are deleted
odmadd     - To add a new object to an object class
odmchange  - To change all objects with in an Object Class that meet a
             specifig criteria
odmshow    - To display object class definition
odmcreate  - To create Object Class for application that will use ODM DB
odmdrop    - To remove an Oobject Class

Some ODM Command examples

To list all records with an Object Class CuDv
# odmget CuDv
To find out an object within CuAt with condition name=sys0 and attibute=maxuproc
  # odmget -q "name=sys0 and attribute=maxuproc" CuAt
    CuAt:
          name = "sys0"
          attribute = "maxuproc"
          value = "2000"
          type = "R"
          generic = "DU"
          rep = "nr"
          nls_index = 20
To delete the above object
  # odmget -q "name=sys0 and attribute=maxuproc" CuAt > file.1
  # odmdelete -q "name=sys0 and attribute=maxuproc" -o CuAt
To add the deleted object again to the above object class
  # odmadd file.1   # add the file content to appropriate Object class

Share this

Related Posts

Previous
Next Post »

10 comments

Write comments
Anonymous
December 21, 2010 at 10:59 AM delete

this is helpful to me...
thanku so much...

Reply
avatar
December 21, 2010 at 1:37 PM delete

Thanks much for visit and comments..!

Reply
avatar
Anonymous
May 26, 2011 at 11:47 PM delete

Just a quick note nim_altr should be nim_attr.
Nice summary.

Reply
avatar
July 27, 2012 at 10:03 PM delete

nice aix documents........

Reply
avatar
Anonymous
September 20, 2012 at 4:41 PM delete

Thanks it is helpful ...

Reply
avatar
Md Sanowar Sah
September 20, 2012 at 4:43 PM delete

Nice information in brief note....

Reply
avatar
October 31, 2012 at 2:27 PM delete

A nice short note ... good intro for me as a beginner.
Thanks.

Reply
avatar
Anonymous
November 22, 2012 at 9:54 AM delete

Required scripting documents for practice... olso tel that if c or c++ is required for learning programming

Reply
avatar
Anonymous
September 6, 2013 at 3:39 PM delete

Hi, I am new to AIX and I understood what ODM does and how it manages objects, but I am not able to understand is why ODM is required. I mean lot of other OSs do not have ODM and still they are managing data very well. So why ODM id required in AIX?

Reply
avatar
Anonymous
September 16, 2013 at 8:28 PM delete

Nicely compiled short summary, v. good for someone looking for some quick info

Reply
avatar

What do you think about this Article? Add your Opinion..! EmoticonEmoticon