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 objectcommands 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_typecommand. For example, to create five OUs you might have a file
orgunits.txtcontaining 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
Application server objects (including groups and OUs) must be created in the
tarantella object scriptcommand 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
tarantella object script command runs each
command in order. Each command reads and processes the specified file.
tarantella objectsubcommand with the
tarantella object scriptcommand. You do not have to read in object details from other files. For example, you can customize webtops from a batch script by including
tarantella passcachecommand, accept
--filearguments, so you can perform multiple related actions at once.
Copyright © 1997-2007 Sun Microsystems, Inc. All rights reserved.