|
|
|
Copyright © 2003-2009 ZeroC, Inc. |
39.23 Administrative Utilities
39.23.1 Command Line Client
The icegridadmin utility is a command-line tool for administering an IceGrid domain. Deploying an application with this utility requires an XML file that defines the descriptors.Usage
Usage: icegridadmin [options]
Options:
‑h, ‑‑help Show this message.
‑v, ‑‑version Display the Ice version.
‑e COMMANDS Execute COMMANDS.
‑d, ‑‑debug Print debug messages.
‑s, ‑‑server Start icegridadmin as a server (to parse XML
files).
‑u, ‑‑username Login with the given username.
‑p, ‑‑password Login with the given password.
‑S, ‑‑ssl Authenticate through SSL.
‑r, ‑‑replica NAME Connect to the replica NAME.The -e option causes the tool to execute the given commands and then exit without entering an interactive mode. The -s option starts icegridadmin in a server mode that supports the IceGrid::FileParser interface; a proxy for the object is printed to standard output. If neither -e nor -s is specified, the tool enters an interactive mode in which you issue commands at a prompt.To communicate with the IceGrid registry, icegridadmin establishes an administrative session as described in Section 39.14.1. The tool uses SSL authentication if you specify the -S option or define its equivalent property IceGridAdmin.AuthenticateUsingSSL. Otherwise, icegridadmin uses password authentication and prompts you for the username and password if you do not specify them via command-line options or properties. If you want icegridadmin to establish its session using a Glacier2 router, define Ice.Default.Router appropriately. See Section C.16 for more information on the tool’s configuration properties.Once the session is successfully established, icegridadmin displays its command prompt. The help command displays the following usage information:exit, quitPrint the help section of the given CATEGORY.Print the help of the given COMMAND.The tool’s commands are organized by category. The supported command categories are shown below:• node• registry• server• service• adapter• object>>> application helpApplication Commands
Add applications described in the XML descriptor file DESC. If specified the optional targets are deployed. Variables are defined using the NAME=VALUE syntax. The application is automatically patched unless the -n or --no-patch option is used to disable it (see Section 39.13).Print the differences between the application in the XML descriptor file DESC and the current deployment. Variables are defined using the NAME=VALUE syntax.Update the application in the XML descriptor file DESC. Variables are defined using the NAME=VALUE syntax.Patch the application named NAME. If -f or --force is specified, IceGrid will first shut down any servers that depend on the data to be patched.Node Commands
Ping node NAME.Print the text from the node’s standard error or standard output. The supported options are shown below:Print the last N lines of text.Print the first N lines of text.Shutdown node NAME.Registry Commands
Ping registry NAME.Print the text from the registry’s standard error or standard output. The supported options are shown below:Print the last N lines of text.Print the first N lines of text.Shutdown registry NAME.Server Commands
Remove server ID.Describe server ID.Start server ID.Stop server ID.Patch server ID.Print the text from the server’s standard error, standard output, or the log file LOGFILE. The supported options are shown below:Print the last N lines of text.Print the first N lines of text.Enable server ID.Disable server ID (a disabled server can’t be started on demand or administratively).Service Commands
Adapter Commands
Object Commands
Describe all well-known objects whose stringified identities match the expression EXPR. A trailing wildcard is supported in EXPR, for example "object describe Ice*".List all well-known objects whose stringified identities match the expression EXPR. A trailing wildcard is supported in EXPR, for example "object list Ice*".Server Template
Instantiate the requested server template defined in the given application on a node. Variables are defined using the NAME=VALUE syntax.Describe a server template TEMPLATE from the given application.Service Template
Describe a service template TEMPLATE from the given application.Configuration
icegridadmin requires that the locator proxy be defined in the configuration property Ice.Default.Locator. If a configuration file already exists that defines this property, you can start icegridadmin using the configuration file as shown below:$ icegridadmin --Ice.Config=<file>$ icegridadmin --Ice.Default.Locator=<proxy>Section 39.4.3 describes how to configure the Ice.Default.Locator property for an IceGrid client.39.23.2 Graphical Client
The graphical administration tool, IceGrid Admin, allows you to perform anything that you can do from the command line via a GUI. Please refer to the instructions included with your Ice distribution for details on how to start the administration tool.
|
|