r14 - 14 Jul 2009 - 15:18:21 - BeckyHYou are here: Wiki >  AppLogic24 Web > CliServer
ALERT! AppLogic 2.4 Documentation The latest production release is AppLogic 3.0.30

Server Management Commands

The following commands are supported:

      Command       Description
  list   List set of servers
  info   Retrieve server information
  reboot   Reboot a server
  shutdown   Shutdown a server
  enable   Enable a server
  disable   Disable a server

list

Description: List servers
Syntax: server list [--batch] [--verbose] [--map]
Arguments: --batch  Display output in UDL format
--verbose  Display all server information in the list
--map  Display list of components running on each server
Examples: server list - List all servers of the grid.
Notes: A specification of the output of this command can be found here.
Typical Output
   Name            State                        CPU         Mem(MB)     BW (Mbps)
                                            Alloc   Free  Alloc  Free  Alloc  Free
   srv1            up                        0.27   0.63    456  1056      9  1990
   srv2            up                        0.00   1.00      0  1768      0  1999

info

Description: Retrieve detailed information for a specific server.
Syntax: server info name [ --batch ] [ --map ]
Arguments: name  Name of server for which to retrieve information.
--batch  Display information in UDL format
--map  Display list of components running on the server
Examples: server info srv1 - Display information for 'srv1'
Notes: A specification of the output of this command can be found here.
Typical Output
   Name                : srv1
   State               : up
   Enabled             : true
   IP Address  1       : 192.168.5.1
   IP Address  2       : 64.46.38.95

   --- CPU Information ---
   Total CPUs          : 1
   CPU Type            : Intel(R) Xeon(TM) CPU 2.80GHz
   CPU Frequency       : 2800 Hz
   CPU Bogomips        : 5596
   CPU Load            : 0.00
   Reserved CPUs       : 0.10
   Free CPUs           : 0.90
   Allocated CPUs      : 0.00

   --- Memory Information ---
   Total Memory        : 2047.00 MB
   Reserved Memory     : 535.00 MB
   Free Memory         : 1512.00 MB
   Allocated Memory    : 0.00 MB
   Service Memory      : 0.00 MB

   --- Network Bandwidth Information ---
   Total Bandwidth     : 2000.00 Mbps
   Reserved Bandwidth  : 0.20 Mbps
   Free Bandwidth      : 1999.80 Mbps
   Allocated Bandwidth : 0.00 Mbps

   --- Disk Information ---
   Total Disks         : 1
   Disk Total          : 72978.90 MB
   Disk Reserved       : 50.00 MB
   Disk Free           : 9410.85 MB

reboot

Description: Reboot a server
Syntax: server reboot name [ --force ]
Arguments: name  Name of the server to reboot. If name is "--all", then all servers are rebooted.
Examples: server reboot srv1 - Reboot 'srv1'
Notes This command will fail if there is an application currently running on the server (a volume is in use, or a component on the server) and if the --force option is not specified.

shutdown

Description: Shutdown a server
Syntax: server shutdown name [ --force ]
Arguments: name  Name of the server to shutdown. If name is "--all", then all servers are rebooted.
Examples: server shutdown srv1 - Shutdown 'srv1'
Notes This command will fail if there is an application currently running on the server (a volume is in use, or a component on the server) and if the --force option is not specified.

enable

Description: Enable a server for scheduling
Syntax: server enable name
Arguments: name  Name of the server to enable. If name is "--all", then all servers that are currently disabled are enabled.
Examples: server enable srv1 - Enable 'srv1' for scheduling
server enable --all - Enable all servers for scheduling
Notes: No error will be displayed when this command is executed on a server that is already enabled.

disable

Description: Disable a server for scheduling
Syntax: server disable name
Arguments: name  Name of the server to disable. If name is "--all", then all servers are disabled.
Examples: server disable srv1 - Disable srv1 for scheduling
server disable --all - Disable all servers for scheduling
Notes: This command does not affect the operation of appliances and volumes that are already on the server; it just prevents the placement of new appliances and volumes on that server.

-- BeckyH - 23 May 2006

 
Copyright © CA 2005-2011. All Rights Reserved.
%