a) Local script
running
This requires a full, native Acs installation on your machine: Acs
Command Center
will use shell and python scripts to run your Acs installation.
Make sure "Local" is selected in the
Common Settings
(
1).
Specify the
Acs Instance to use (
2,
see
Acs
Instance in the glossary).
b) Pure Java running
This is a platform-independent variant that offers not all, yet the
most frequently used features. Acs Command Center will execute all
workers within its own Java Virtual Machine.
Make sure "Java-only Acs" is selected in the
Common
Settings
section of the user interface.
Specify the
Acs Instance to use (
2,
see
Acs Instance in the
glossary).
You need to specify a directory where an Acs configuration database is
located (see also
Cdb in the
glossary). Commonly,
there are three ways of gaining access to such a directory:
a) Download a Cdb and install it in your filesystem
Go to the
Command
Center Cdb Page and get yourself a tarred Cdb. Extract the
archive
in your local file system. The path plus the name of the archive will
be your Cdb root.
Example: You downloaded acc-cdb-2.tar, stored it
in
your
local home and extracted it there. This yields a new directory
<home>/acc-cdb-2 which is your
Cdb root:
on Windows
|
c:/docume~1/johnny/acc-cdb-2
|
Note: Use 8.3 names, no
whitespace
allowed
|
on Linux
|
/home/johnny/acc-cdb-2
|
|
b) Java Web Start
If you have started (or plan to start) Acs Command Center via Java Web
Start, the installation of a Cdb is done for you automatically in your
local home directory. The correct directory then simply
is
<home>/.acsjava, e.g.:
on Windows
|
c:/docume~1/johnny/.acsjava
|
Note: Use 8.3 names, no
whitespace
allowed
|
on Linux
|
/home/johnny/.acsjava
|
|
c) Native Acs Installation
If you have access to a native Acs installation, there are chances you
can use the Cdb that comes with it. The problem is that such a Cdb does
not contain several necessary schema files - instead those schema files
are located within the
ACSROOT structure,
outside the
Cdb structure. Acs Command Center will attempt to find those schema
files using the Java system properties
ACS.cdbpath
or
ACS.root.
As a convenience, it will likewise examine the Java system properties
ACS.cdbroot
or
ACS.data to find out the Cdb root
directory.
Note that on Linux these properties are automatically set from your
environment variables when you run
acscommandcenter.
On
Windows, you need to set them yourself (e.g.
-D
ACS.cdbroot=y:/ACS-4.0/ACSSW) if you'd like to use this
feature.
For
the
Cdb-Root Directory ...
|
|
...set
environment
variable
|
|
(or
alternatively:
|
$ACSDATA)
|
| ...or set Java
system property |
ACS.cdbroot |
(or
alternatively:
|
ACS.data)
|
|
For the Additional-Schemas Directory ... |
|
| ...set environment variable |
$ACSROOT
|
| ...or set Java
system property |
ACS.cdbpath
|
| (or
alternatively: |
ACS.root)
|
To make a long story short: If you're on Linux, everything might
instantly work without further interaction required - just try it out.
If it doesn't work, use one of the afore described solutions.
Note: The Container name you specify
here is used by
the Manager to associate components with the Container. It must
therefore be the same as the name specified in the CDB for the
component(s) you're interested in working with. For C++, this is
typically bilboContainer, for Java frodoContainer,
and
for Python aragornContainer.
Note: There's an asymmetry in the
behavior of
starting the Acs Suite and stopping the Acs Suite: The first starts the
Services and the Manager, the latter stops the Services, the Manager plus
any Containers.
As of version 5.0, Acs
Command Center supports two variants of SSH operations:
a) The
platform-independent
variant is
self-contained within Acs Command Center, and you get it "for free"
without the need to configure anything. It has certain
limitations, however: in particular, it only supports
user/password authentication. This means, when you want to start/stop
Acs on a remote host, you have to provide a valid accountname and a
password for the remote host. The platform-independent variant is the
default.
b) The
native
variant, on the other hand, makes use of an
ssh program already
installed on your local system. Thus, it can allow for all features of
your native
ssh:
for instance, and foremost, the public-key authentication. That means,
if your native
ssh
is configured properly, you wont' be required to provide a password for
the remote host you want to start/stop Acs on.
The
ssh
program is available for virtually all platforms (see
http://openssh.org/),
and many systems already have it installed.
Beware: If you use the native variant but you did not configure
ssh for public-key
authentication, it will prompt for your password - and that
prompt will be on the
terminal
(xterm, dos box) from which you started Acs Command Center. This
behavior is part of the security concept of
ssh.
Three ways exist to choose which of the two variants you want to use:
a)
Through Java System Properties
AcsCommandCenter.useNativeSSH
"true"
|
use native variant |
"false" or undefined
|
use platform-independent variant |
There are more, rather expert-level, properties that control
the
behavior of the native mode. Foremost, the following property may be
useful if you find unwanted SSH processes lingering around
after quitting the Acs Command Center:
AcsCommandCenter.killNativeSSH
"true"
|
forcibly destroy still running SSH processes when
exiting Acs Command Center |
"false" or undefined
|
don't automatically destroy running SSH processes,
let operating system decide what to do with these processes, instead. |
To define
a
Java System Property, issue the following command before running Acs
Command Center:
export JAVA_OPTIONS="$JAVA_OPTIONS -Dname=value"
with the possible
name
and
value
arguments listed above. Note that there must be
no spaces anywhere
in "-Dname=value".
b) By
specifying command line switches to the
acscommandcenter
command
-useNativeSSH
-killNativeSSH
Example:
acscommandcenter -useNativeSSH -r myProject.xml
For a more detailed explanation of the meaning of these
command line switches, please refer to foregoing section a).
c) Through Acs Command Center's
Expert menu
In the main menu, go to
Expert->SSH
Mode
and choose the desired mode. Note that the
choice you make here will not be saved when you quit Acs
Command
Center. That is, you will have to redo your choice on your next run.
For persistent behavior, you need to use one of the afore mentioned
possibilities a) or b).
To continue with remote script running, make sure "Remote" is selected
in the Note: Any passwords you enter as part
of user
credentials will not be saved when you store a project. You will have
to reenter them the next time you use the project.