odmadd Command

Purpose

Adds objects to created object classes.

Syntax

odmaddInputFile ... ]

Description

The odmadd command takes as input one or more InputFile files and adds objects to object classes with data found in the stanza files. Each InputFile file is an ASCII file containing the data that describes the objects to be added to object classes. If no file is specified, input is taken from stdin (standard input).

The classes to be added to are specified in the ASCII input file. The file is in the following general format:

class1name:
        descriptor1name = descriptor1value
        descriptor2name = descriptor2value
        descriptor3name = descriptor3value
  
class2name:
        descriptor4name = descriptor4value
.
.
.
   

The input file can contain the \ (backslash), which is handled as it is in C language. String and method values in the input file must be enclosed in " " (double-quotation marks). A descriptor value can span more than one line.

Security

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

An ASCII input file used by the odmadd command looks like the following:

Fictional_Characters:
Story_Star       = "Cinderella"
Birthday         = "Once upon a time"
Age              = 19
Friends_of       = Cinderella
Enemies_of       = "Cinderella"
  
Friend_Table:
Friend_of        = "Cinderella"
Friend           = "Fairy godmother"
   
Friend_Table:
Friend_of        = "Cinderella"
Friend           = "Mice"
   
Enemy_Table:
Enemy_of         = "Cinderella"
Enemy            = "Wicked sisters"
   
Enemy_Table:
Enemy_of         = "Cinderella"
Enemy            = "Mean stepmother"

If the preceding file is named NewObjects, the following command adds the objects to existing object classes:

odmadd NewObjects

See html