AppLogic 2.3 Beta Documentation The latest production release is AppLogic 3.0.30
Command Line Shell Reference
CONTENTS
Overview
The AppLogic command-line shell gives you control of all aspects of an AppLogic grid. The shell is located in the AppLogic controller and can be accessed over SSH using any suitable SSH client package. The shell commands are designed with the following objectives in mind:
- make the shell easy to use by humans
- provide simple means for scripting automation
- support advanced web interfaces and datacenter management systems
This section specifies the command line usage of the AppLogic Shell. Each shell command is executed using one of the following three command line forms:
command [ args ]*
object command [ args ]*
command object [ args ]*
Where
- object - specifies the type of object and may be: grid, server, application, component, interface, volume, catalog, class, appclass, user, or log.
- command - specifies the command that is to be executed
- args - specifies additional command-specific arguments.
The "object command" and "command object" forms are interchangeable, e.g. app start and start app are both valid and will produce the same result. This is done to avoid religious wars over which comes first and promote your freedom of choice.
The following simple commands are supported:
- help - Retrieve top-level help or help for a specific object and/or command
- ca - Set current application
- clear - Clear screen
- ls - List applications or components of current application
- exit - Exit shell
AppLogic Shell Commands
The AppLogic shell commands are sub-divided into the following major groups:
Note: Some commands are replicated between object groups, consistent with the view that different objects may implement the same operation. Whenever the same operation is executed with a different object, the results are likely to be similar, but not identical. The following table describes which commands belong to which groups:
| Object | Commands |
| grid | info, reboot, shutdown |
| server | list, info, reboot, shutdown, enable, disable |
| application | list, info, create, destroy, rename, copy, config, start, stop, continue, restart, build, clean, export, import, migrate, provision, get_desc, put_desc, lock, unlock, login |
| component | list, info, start, stop, continue, restart, ssh, login |
| interface | list, info, enable, disable, reset |
| volume | list, info, set, create, destroy, rename, resize, copy, move, manage, fscheck, fsrepair, check, repair, migrate, clean |
| catalog | list, info, create, destroy, import, export, rename, get_desc, put_desc |
| class | list, move, copy, destroy, import, export, get_desc, put_desc, lock, unlock |
| user | list, info, create, destroy, set |
| log | list, reset, mark |
| message | list, create, destroy, get, set |
| ha | info, check |
Simple Shell Commands
help
| Description: | Retrieve AppLogic shell help |
| Syntax: | help : retrieve top-level help |
| help object : retrieve info about an object and to see a list of valid commands |
| help command : retrieve a list of objects to which it applies |
| help object command : retrieve details on a specific command |
| Arguments: | object | Name of object |
| command | Name of command |
| Notes: | None. |
ca
| Description: | Set currrent application |
| Syntax: | ca name |
| Arguments: | name | Name of application |
| Notes: | When the current application is set, the application argument for the commands that require it becomes optional. If skipped, the current application is used. |
clear
| Description: | Clear screen |
| Syntax: | clear |
| Arguments: | None. | |
| Notes: | None. |
ls
| Description: | List applications or components of current application |
| Syntax: | ls |
| Arguments: | None. | |
| Notes: | If current application is not set this command is identical to app list. If current application is set, this command is identical to comp list. |
exit
| Description: | Exit AppLogic shell |
| Syntax: | exit |
| Arguments: | None. | |
| Notes: | None. |
Advanced Usage
for those who use GNU bash: Client-side Macros - an alternative way to access the AppLogic shell commands directly from your local command prompt.
--
BeckyH - 23 May 2006
Copyright © CA 2005-2011. All Rights Reserved.