Core Admin Sample Scripts
The sample scripts provide a simple and fast way to run the core Admin samples.
These are bash scripts. On Windows, install Cygwin64.
Admin scripts are available in the following folders:
$BW_HOME/samples/core/admin and
$BW_HOME/scripts/admin
For information about running the sample scripts, see the "Running Admin Sample Scripts" section in the TIBCO ActiveMatrix BusinessWorks™ Getting Started guide.
This sets the TIBCO_HOME, BW_HOME, TEA_HOME, EMS_HOME, and JAVA_HOME environment variables necessary to run the admin scripts.
All scripts support the
-h and command-line argument with full documentation of what each script does.
Location of the Admin Scripts
The admin scripts are available in the following folders:
- The sample scripts are available in
$BW_HOME/samples/core/admin. - The scripts that are generic for ActiveMatrix BusinessWorks are available in
$BW_HOME/scripts/admin.
The scripts are updated to rely on the PATH setting to find the generic scripts. To make this easier to configure, after installation you can generate
$BW_HOME/scripts/bashrc.sh that can be sourced from your
~/.bashrc.
Source the $BW_HOME/scripts/bashrc.sh to set up the following environment variables required to run the scripts mentioned in the table below:
| Variable | Required |
|---|---|
| TIBCO_HOME | Yes |
| BW_HOME | Yes |
| TEA_HOME | No. But required if you run TIBCO® Enterprise Administrator on this machine. |
| EMS_HOME | No. But required if Enterprise Message Service™ is configured on this machine. |
| PATH | This variable is auto-populated based on the values set for the above variables. |
Core Admin Scripts
The following table lists some of the available scripts; browse the folder to see the complete list.
| Script | Description | Script Location |
|---|---|---|
| AppManage.sh | This is a ActiveMatrix BusinessWorks 6.x utility program that emulates ActiveMatrix BusinessWorks 5.x AppManage commands.
The main purpose of this utility is to demonstrate how the AppManage commands from ActiveMatrix BusinessWorks 5.x translate to the corresponding ActiveMatrix BusinessWorks 6.x BWAdmin commands. This utility creates a
Note: Not all AppManage commands are implemented in this emulation utility.
ActiveMatrix BusinessWorks Augmented Options:
Note: ActiveMatrix BusinessWorks supports both
-sapp and
-mapp modes. The default is
-mapp mode.
|
$BW_HOME/samples/core/admin
|
| bootstrap.sh | Usage:
bootstrap.sh [-h|-help] [-clean] [-forceClean|-force] This utility is a wrapper script around the following scripts:
Note: The -clean command on the Data Store is not reversible, so back up your data stores before using the command. Use this option carefully, as you may lose all your configurations if you do not have a backup.
This script assumes that the following products are installed correctly and the environment variables are set accordingly: TIBCO_HOME = TIBCO_HOME directory where you installed ActiveMatrix BusinessWorks. TEA_HOME = Parent directory to TIBCO Enterprise Administrator's /bin directory. Supports generation of bwagent.ini file for either Database/TIBCO EMS™, or Database/TIBCO FTL® as the technology type. |
$BW_HOME/scripts/admin |
| bounce.sh | This utility does the following:
|
$BW_HOME/scripts/admin |
| bounceagent.sh | Ends and restarts BWAgent process.
|
$BW_HOME/scripts/admin |
| bwadmin.sh | This is a utility script that wraps around the
bwadmin executable.
[-network <bwagent Network Name>] - Connects to a named BWAgent network. This is an optional argument. By default, this script uses $BW_HOME/config/bwagent.ini [<bwadminArgs> ...] - Use BWAdmin to run commands found in the input files. Start BWAdmin in the interactive mode if cmdFile is not specified. A BWAgent network name is a named directory under
${TIBCO_HOME}/bw/networks and contains the corresponding
How to Set Up a Newly Named Network
|
$BW_HOME/scripts/admin |
| bwagent.sh | This script starts the BWAgent in the background and waits until it is fully initialized, or the maxWait time (<n> * 2 sec) expires.
[-network <Network>] - Starts up BWAgent using the configuration of a named network. [-maxWait <n>] - Maximum amount of wait time (2 sec increment) for BWAgent startup success. The default value for <n> is 30, which means 30 * 2 sec = 60 seconds |
$BW_HOME/scripts/admin |
| bwclean.sh | This utility script cleans up ActiveMatrix BusinessWorks Domain Data and internal Data Store. The end effect of this clean up is similar to a fresh installation of ActiveMatrix BusinessWorks.
By default, the script prompts user confirmation. |
$BW_HOME/scripts/admin |
| configureBWEngineGroup.sh |
This utility configures AppNodes in a Domain or AppSpace to form a fault-tolerant group and cross-engine persistence
Use this option carefully. This operation cannot be undone. Do not specify both
By default, <$BW_HOME>/scripts/admin/config/bwengine-group-<dbtype>.sh
|
$BW_HOME/scripts/admin |
| deploy.sh | Usage:
deploy.sh -ear <EARFile> [-h|-help] [-domain <DomainName>] [-appspace <AppSpaceName>] [-redeploy|-force] [-profile <Profile>] Deploys the specified ActiveMatrix BusinessWorks EAR file into -
[-domain <DomainName>] - Domain Name - Optional parameter If it is not specified, DomainName is computed from ${USER}-Domain This utility creates the Domain if it does not exist.
If it is not specified, AppSpaceName is computed from the name of the EAR file. This utility creates the AppSpace and AppNode if they do not exist. [-redeploy|-force]: Redeploy if the application has been previously deployed. The application is not redeployed if it exists and this option is not specified.
If it is not specified, the default profile as packaged in the Enterprise Archive file is used.
|
$BW_HOME/scripts/admin |
| genbwagentini.sh | This script auto generates
${BW_HOME}/config/bwagent.ini based on configurations defined in
./config/bwadmin-default- config.sh
The following variables are required from ./config/bwadmin-default- config.sh:
This script uses
You can assume that the
If the
You can edit either the
Generates a
|
$BW_HOME/scripts/admin |
| kill.sh | Ends all processes that match the specified
<process name>
<process name> - Name of the process you want to end. This script ends all instances of the
|
$BW_HOME/scripts/admin |
| killall.sh | This script finds and ends all instances of processes that match the following names:
|
$BW_HOME/scripts/admin |
| killbwagent.sh | This script finds and ends all instances of processes that match bwagent.
|
$BW_HOME/scripts/admin |
| killbwappnodes.sh | This script finds and ends all instances of processes that match bwappnode.
|
$BW_HOME/scripts/admin |
| killtea.sh | This script finds and ends all instances of processes that match tea.
|
$BW_HOME/scripts/admin |
| killtibemsd64.sh | This script finds and ends all instances of processes that match tibemsd.
|
$BW_HOME/scripts/admin |
| recreatedb.sh | This script cleans up and recreates the PostgreSQL database needed by the ActiveMatrix BusinessWorks BookStore REST sample available in:
${BW_HOME}/samples/binding/rest/BookStore
|
$BW_HOME/samples/core/admin |
| registeragent.sh | This utility registers the local BWAgent with the TIBCO Enterprise Administrator server.
This utility assumes that the following environment variables have been set:
At least one of the following environment variables is set:
Or,
If the TEA_HOSTNAME environment variable is set, it assumes that the TIBCO Enterprise Administrator server is running remotely from the local BWAgent instance. If the TEA_HOSTNAME environment variable is not set, this script registers the local BWAgent to the locally running TIBCO Enterprise Administrator server. |
$BW_HOME/scripts/admin |
| runAcme.sh | Creates <domain> and deploys all EAR files found under
${BW_HOME}/samples/core/admin/ears/acme.
-mapp - Multiple App AppSpace deployment mode. Each AppSpace supports one or more application deployments.
Note: ActiveMatrix BusinessWorks supports both This script dynamically creates a
-sapp and -mapp modes. The default is -mapp mode.
bwadmin command file in
cmd/<domain>-<mode>.cmd
and runs it.
|
$BW_HOME/samples/core/admin |
| runAll.sh | This utility is a wrapper script that performs the following:
The Data Store clean is not reversible. Make sure you back up your data stores before running this command. Use this option with utmost care, otherwise you risk losing all your configurations.
Note: ActiveMatrix BusinessWorks supports both -sapp and -mapp modes. The default is -mapp mode.
Generates the bwagent.ini file for either Database/EMS™, or Database/FTL® technology type. |
$BW_HOME/samples/core/admin |
| runBookStore.sh | Creates BookStore-Domain and deploys all EAR files found under
${BW_HOME}/samples/core/admin/ ears/bookstore
Note: ActiveMatrix BusinessWorks supports both -sapp and -mapp modes. The default is -mapp mode.
This script dynamically creates a
|
$BW_HOME/samples/core/admin |
| runSamples.sh | Creates Samples-Domain and deploys all EAR files found under
${BW_HOME}/samples/core/admin/ ears/samples
Note: ActiveMatrix BusinessWorks supports both -sapp and -mapp modes. The default is -mapp mode. This script dynamically creates a
bwadmin command file in
cmd/Samples-Domain-<mode>.cmd and runs it.
|
$BW_HOME/samples/core/admin |
| showprocs.sh | Shows process ID and complete binary path of all processes required in ActiveMatrix BusinessWorks:
|
$BW_HOME/scripts/admin |
| tea.sh | This script starts TIBCO Enterprise Administrator in the background and waits until it is completely initialized, or the maxWait time (<n> * 2 sec) expires.
The default value for <n> is 30, which means 30 * 2 sec = 60 seconds. |
$BW_HOME/scripts/admin |
| teaclean.sh | This utility script cleans the TIBCO Enterprise Administrator Server's configuration data store.
The end effect of this clean up is similar to a fresh installation of TIBCO Enterprise Administrator.
By default, the script prompts user confirmation. |
$BW_HOME/scripts/admin |
| tibemsd64.sh | This script starts
tibemsd64 in the background and waits until it is completely initialized, or the maxWait time (<n> * 2 sec) expires.
The default value for <n> is 30, which means 30 * 2 sec = 60 seconds. This script is only supported on UNIX-based systems. For Windows, use Windows Systems Services to start or stop tibemsd64. |
$BW_HOME/scripts/admin |
runAcme.sh,
runBookStore.sh,
runSamples.sh,
deploy.sh, and
AppManage.sh generates
bwadmin commands before execution.
The generated
bwadmin command files are found under thecmd subdirectory.