This section describes commands that manage the components of the application.
Continue starting of a component.
component continue name
Name of component to continue starting. name should be of the form application name:component name
component continue sugarcrm:main.config
Continue starting component 'main.config' in application 'sugarcrm'
Note: This command is useful following the failed start of a component started with --debug option.
Display information for a specific component.
component info <name> [ --batch [--extended]][ --verbose ]
Name of component for which to retrieve information. <Name> should be of the form: <application name>:<component name>
Display output in UDL format
Display extended component information
Include list of interfaces for the component
component info sugarcrm:main.config - Display information for component 'main.config' in application 'sugarcrm'
name : main.WEB5 state : running default IP address : 10.96.32.1 console options : web:80,ssh time started : Tue Sep 16 13:49:29 2008 server : srv1 cpu : 0.30 mem : 512.00 MB bw : 250.00 Mbps OS type : Linux OS name : CentOS OS version : 5 OS kernel : Linux 2.6.18.8-xenU #1 SMP Mon Aug 18 15:15:18 PDT 2008 PV driver : unknown APK_version : 3.8 class : .WEB5
The output of this command follows:
name : <val> state : <val> default IP address : <val> console options : <val> time started : <val> server : <val> cpu : <val> mem : <val> service mem : <val> bw : <val> OS type : <val> OS name : <val> OS version : <val> OS kernel : <val> PV driver : <val> APK version : <val> class : <val> Metered RX Packets : val (if --verbose is specified) Metered TX Packets : val (if --verbose is specified) Metered RX Bytes : val (if --verbose is specified) Metered TX Bytes : val (if --verbose is specified) Interfaces : (if --verbose is specified) Name State default active
component <name>
{
state = <val>
dflt_ip = <val>
console_options = <val>
t_start = <val>
t_state_chg = <val>
server = "<val>"
cpu = <val>
mem = <val>
mem_hypervisor = <val>
bw = <val>
os_guess = "<val>"
os_type = "<val>"
os_name = "<val>"
os_version = "<val>"
os_kernel = "<val>"
pv_driver = "<val>"
APK version = "<val>"
class = "<val>"
metered_rx_pkts = <val>
metered_tx_pkts = <val>
metered_rx_bytes = <val>
metered_tx_bytes = <val>
interface <name> : state = <val>
...
}
List all components for the specified running application.
component list <name> [ --batch [--extended] ]
Name of application
Display output in UDL format
Display all component information in the list
component list sugarcrm
List components for application 'sugarcrm'
Name Server State CPU Mem(MB) Bandwidth(Mbps) main.mail srv1 running 0.01 32.00 1.00 main.logs srv2 running 0.01 32.00 1.00 main.config srv3 running 0.01 32.00 1.00 main.dbase srv1 running 0.01 128.00 1.00 main.srv2 srv2 running 0.10 64.00 1.00 main.srv1 srv3 running 0.10 64.00 1.00 main.webs srv1 running 0.01 32.00 1.00 main.admin srv2 running 0.01 32.00 1.00 main.usr srv3 running 0.01 32.00 1.00
Name Server State CPU Mem(MB) Bandwidth(Mbps) val val val val val val …
component name : cpu = val, mem = val, bw = val, server = val, state = val …
component name: cpu=val, mem=val, mem_hypervisor=val, bw=val, server=val, state=val, n_int_ifc=val, n_ext_ifc=val, n_vols=val, pinned=val, is_hvm=val, failover_grp="val", os_name="val", os_version="val", os_extra="val", pv_driver="val", apk_version="val", virt_mode=<val>, supported_virt_modes=<val>, metered_rx_pkts = val, metered_tx_pkts = val, metered_rx_bytes = val, metered_tx_bytes = val …
Login to component's virtual machine.
component login <name> [--ssh] [console=text|graphic] [--force] [--abort] [command]
Name of component to login to
SSH into component (default)
Access text console
Access graphical console
Take control of console (kill existing console)
Kill existing console (if any)
Optional command line to execute. If there is more than one argument, the command must be enclosed in quotes (for example, "ls /tmp"). This argument is only valid if --ssh is specified.
SSH into component 'main.config' in application 'sugarcrm'
SSH into component 'main.config' in application 'sugarcrm' and execute ls /tmp
Access text boot console of appliance instance.
Notes:
Graphical console should be accessed through the GUI.
Whenever a user logs into an appliance, CA AppLogic creates an environment variable named _APPLOGIC_USERID which contains the name of the user that logged into the appliance. This is only valid if the appliance uses the DHCP configuration mode (APK).
Relocate a running component to a different server. The location may be performed live or may be performed using a component restart.
component relocate <name> server=<server> [ --restart ]
Parameters
Name of component. <name> should be of the form:
<application name>:<component name>
Name of server where the component is to be relocated to.
Perform the relocation using component restart.
relocate component to srv2
relocate component to srv3 using component restart
Restart a component.
component restart <name> (prop=val)* [ --debug ] [ --kill ] [ --force]
Name of component to restart. <Name> should be of the form: <application name>:<component name >
Parameters for scheduling of component. The following parameters may be specified:
Start component in debug mode.
Force the stopping of the component (that is, abort) prior to restart. .
Skip user verification.
Restart component 'main.config' in 'application sugarcrm'
Restart component in debug mode
Restart component with scheduling parameters
Note: This command will fail if the application is not running. This command combines component stop and start commands.
Ssh into the virtual machine of a component.
[component] ssh <name> [command]
Name of component to log into
Optional command to execute on the appliance.
SSH into component 'main.config' in application 'sugarcrm'
SSH into component 'main.config' in application 'sugarcrm' and execute ls /tmp
Notes:
The ssh login is performed using a special appliances ssh key installed on your grid. This key does not need a passphrase -- it is assumed that if you are logged in on the controller, you are authorized to log in on the appliances. Contact Technical Support if you cannot log in on an appliance or if you believe your appliance key has been compromised and want to have it replaced.
Start a component.
component start <name> (prop=val)* [ --debug ]
Name of component to start. <Name> should be of the form: <application name>:<component name>
Parameters for initial scheduling of component. The following parameters may be specified:
Start component in debug mode.
Start component 'main.config' in 'application sugarcrm'
Start component in debug mode
Start component with scheduling parameters
Notes:
Stop a component.
component stop <name> [ --kill ] [ --force ]
Name of component to stop. <Name> should be of the form:<application name>:<component name>
Force the component to stop (that is,, non-graceful shutdown). This option is supported only in CA AppLogic 2.8.x+. Forcing a component to stop may cause data corruption.
Skip user verification. Prior to CA AppLogic 2.8.x this option has the same functionality as the --kill option.
Stop component 'main.config' in application 'sugarcrm'
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|