Secure Global Desktop 4.40 Administration Guide > Organizing Your Resources > Populating the SGD Organizational Hierarchy Using a Batch Script
You want to populate your organizational hierarchy.
Use the batch scripting functionality of the tarantella object
command
to create objects within the organizational hierarchy.
tarantella object
commands in
sequence. This introduces additional processing overhead, and is not
recommended.Indigo Insurance needs to create the organizational units (OUs), applications, application servers, and users to reflect the structure of the organization. You want to automate this process.
tarantella object new_object_type
command.
For example, to create five OUs you might have a file
orgunits.txt
containing the following:
--name "o=Indigo Insurance/ou=IT" --name "o=Indigo Insurance/ou=Sales" \ --name "o=Indigo Insurance/ou=Marketing" \ --name "o=Indigo Insurance/ou=Finance" \ --name "o=Indigo Insurance/ou=Finance/ou=Administration"
Do not include the command name (for example,
object new_windowsapp
) as part of each line.
Application objects (including groups and OUs) must be created in the o=applications
organization.
Application server objects (including groups and OUs) must be created in the o=appservers
organization.
tarantella object script
command to
process them all at once, for example:
#!/bin/sh tarantella object script << EOF new_orgunit --file orgunits.txt new_group --file groups.txt new_host --file hosts.txt new_person --file people.txt new_xapp --file xapps.txt new_windowsapp --file windowsapps.txt new_charapp --file charapps.txt EOF
The tarantella object script
command runs each
command in order. Each command reads and processes the specified file.
tarantella object
subcommand with
the tarantella object script
command. You do not have to read in
object details from other files. For example, you can customize
webtops from a batch script by including add_link
and
remove_link
lines.tarantella passcache
command, accept --file
arguments, so you can perform multiple related actions at once.Copyright © 1997-2007 Sun Microsystems, Inc. All rights reserved.