OSF DCE Administration Guide--Core Components

OSF DCE Administration Guide—Core Components
To invoke a dcecp script, omit the -c argument but include the name of the script. The
following example invokes a script that lists the names of all hosts in the cell in
alphabetical order:
% dcecp list_hosts
earth
jupiter
krypton
mars
mercury
neptune
planets
pluto
saturn
uranus
venus
%
When you want to invoke complex or multiple operations, you might want to invoke
operations from within dcecp. The program provides a convenient history facility and a
command-line editing capability that is useful for recalling and reusing previous
operations. The following example operations invoke the dcecp program and add a new
user to a DCE cell:
% dcecp
dcecp> principal create J_Jones
dcecp> group add users -member J_Jones
dcecp> organization add staff -member J_Jones
dcecp> account create J_Jones -group users -organization staff \
> -password change.me -mypwd mxyzptlk
dcecp>
All dcecp object, operation, and option names can be abbreviated to the shortest unique
string when used interactively. These names have been chosen with this in mind so that
unique abbreviations are usually not more than one or two characters.
Avoid using object or command abbreviations within scripts as this limits a script’s
portability. Users defining their own commands could alter the uniqueness of
abbreviations, resulting in ambiguous command names or object names.
1.4 Doing More with dcecp
The DCE control program accepts commands ranging from simple to complex, with
more complex commands offering greater strength and versatility. Although simple
commands are the easiest to compose, they are also limited, usually to performing one
operation on a single object. So while it’s always possible to enter simple commands,
you’ll probably find that, at times, you want to repeat operations over several or even
many objects, or to perform some operation only under certain conditions. For instance
1 6 Tandem Computers Incorporated 124243