r14 - 05 Apr 2007 - 12:27:38 - BeckyHYou are here: Wiki >  AppLogic1 Web > RefShell
led-green Sep 7 - AppLogic 2.1 has been officially released! See the release notes for details.

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. volume mount and mount volume 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:

IDEA! 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
component list, info, start, stop, continue, restart, ssh
interface list, info, enable, disable, reset
volume list, info, set, create, destroy, rename, resize, copy, move, mount, unmount, check, repair, migrate, clean
catalog list, info, create, destroy, import, export
class list, move, copy, destroy, import, export
user list, info, create, destroy, set
log list, reset, mark
message list, create, destroy, get, set

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

NEW for those who use GNU bash: ClientSideMacros - an alternative way to access the AppLogic shell commands directly from your local command prompt.

-- BeckyH - 23 May 2006

 
Copyright © 2005-2007 3tera, Inc. All Rights Reserved.
%