[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 4

odmget Command

Purpose

Retrieves objects from the specified object classes into an odmadd input file.

Syntax

odmget -q Criteria ] ObjectClass ...

Description

The odmget command takes as input a search criteria and a list of object classes, retrieves the selected objects from the specified object classes, and writes an ASCII odmadd input file to standard output.

Flags

-q Criteria Specifies the search criteria used to select objects from the object class or classes. For information on search criteria, see "Understanding ODM Object Searches" in AIX General Programming Concepts: Writing and Debugging Programs. If no criteria are specified (no -q flag), all objects in the object class or classes are retrieved.

Example

The following odmget command retrieves objects from an existing object class called Supporting_Cast_Ratings that has an Others descriptor equal to the string `Fairy Godmother':

odmget -q"Others='Fairy Godmother'" Supporting_Cast_Ratings

See the odmadd command or "ODM Example Code and Output" in AIX General Programming Concepts: Writing and Debugging Programs for an example of an ASCII odmadd input file.

Related Information

The odmadd command.

Object Data Manager (ODM) Overview for Programmers in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.

Understanding ODM Object Classes and Objects in AIX General Programming Concepts: Writing and Debugging Programs.

ODM Example Code and Output in AIX General Programming Concepts: Writing and Debugging Programs.

List of ODM Commands and Subroutines in AIX General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Contents | Glossary | Home | Search ]