Tib TRA Script Deploy Usr
Tib TRA Script Deploy Usr
Tib TRA Script Deploy Usr
Two-Second Advantage®
Important Information
SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED
OR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (OR PROVIDE LIMITED
ADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THE EMBEDDED OR BUNDLED
SOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANY OTHER TIBCO SOFTWARE OR FOR
ANY OTHER PURPOSE.
USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS AND CONDITIONS OF A
LICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTED SOFTWARE LICENSE
AGREEMENT, OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THE CLICKWRAP END USER
LICENSE AGREEMENT WHICH IS DISPLAYED DURING DOWNLOAD OR INSTALLATION OF THE
SOFTWARE (AND WHICH IS DUPLICATED IN THE LICENSE FILE) OR IF THERE IS NO SUCH SOFTWARE
LICENSE AGREEMENT OR CLICKWRAP END USER LICENSE AGREEMENT, THE LICENSE(S) LOCATED
IN THE “LICENSE” FILE(S) OF THE SOFTWARE. USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS
AND CONDITIONS, AND YOUR USE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN
AGREEMENT TO BE BOUND BY THE SAME.
This document contains confidential information that is subject to U.S. and international copyright laws and
treaties. No part of this document may be reproduced in any form without the written authorization of TIBCO
Software Inc.
TIBCO, Two-Second Advantage, TIBCO Hawk, TIBCO Rendezvous, TIBCO Runtime Agent, TIBCO
ActiveMatrix BusinessWorks, TIBCO Administrator, TIBCO Designer, TIBCO ActiveMatrix Service Gateway,
TIBCO BusinessEvents, TIBCO BusinessConnect, and TIBCO BusinessConnect Trading Community
Management are either registered trademarks or trademarks of TIBCO Software Inc. in the United States and/or
other countries.
Enterprise Java Beans (EJB), Java Platform Enterprise Edition (Java EE), Java 2 Platform Enterprise Edition
(J2EE), and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle Corporation
in the U.S. and other countries.
All other product and company names and marks mentioned in this document are the property of their
respective owners and are mentioned for identification purposes only.
THIS SOFTWARE MAY BE AVAILABLE ON MULTIPLE OPERATING SYSTEMS. HOWEVER, NOT ALL
OPERATING SYSTEM PLATFORMS FOR A SPECIFIC SOFTWARE VERSION ARE RELEASED AT THE SAME
TIME. SEE THE README FILE FOR THE AVAILABILITY OF THIS SOFTWARE VERSION ON A SPECIFIC
OPERATING SYSTEM PLATFORM.
THIS DOCUMENT IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS.
CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE
INCORPORATED IN NEW EDITIONS OF THIS DOCUMENT. TIBCO SOFTWARE INC. MAY MAKE
IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN
THIS DOCUMENT AT ANY TIME.
THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY OR
INDIRECTLY, BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE, INCLUDING
BUT NOT LIMITED TO ANY RELEASE NOTES AND "READ ME" FILES.
This Product is covered by U.S. Patent No. 6,970,981.
Copyright © 1998-2015 TIBCO Software Inc. ALL RIGHTS RESERVED.
TIBCO Software Inc. Confidential Information
| iii
Contents
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vii
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Changes from the previous Release of this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
TIBCO Runtime Agent Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Other TIBCO Product Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Connecting with TIBCO Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii
How to Join TIBCOmmunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii
How to Access TIBCO Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii
How to Contact TIBCO Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii
Credential File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Installed Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Starting the Scripting Utilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Accessing Online Help for Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Specifying Application Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Working with Passwords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Protecting Sensitive Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Log Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
AppManage Log Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
buildear Log File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
Figures
Tables
Preface
This document details the command line utility AppManage, by which you can
automate and customize application deployment tasks using shell scripts.
Topics
All the screenshots have been updated with new TIBCO logo.
Related Documentation
• TIBCO Designer™: This graphical user interface is used for designing and
creating integration project configurations and building an Enterprise Archive
(EAR) for the project. The EAR can then be used by TIBCO Administrator for
deploying and running the application.
• TIBCO Hawk®: This is a tool for monitoring and managing distributed
applications and operating systems.
• TIBCO Rendezvous®: Rendezvous enables programs running on many
different kinds of computers on a network to communicate seamlessly. It
includes two main components: the Rendezvous application programming
interface (API) in several languages, and the Rendezvous daemon.
• TIBCO Enterprise Message Service™: This software lets application programs
send and receive messages using the Java Message Service (JMS) protocol. It
also integrates with TIBCO Rendezvous and TIBCO SmartSockets®
messaging products.
• TIBCO ActiveMatrix BusinessWorks™: ActiveMatrix BusinessWorks is a
scalable, extensible, and easy to use integration platform that allows you to
develop integration projects. ActiveMatrix BusinessWorks includes a GUI for
defining business processes and an engine that executes the process.
• TIBCO® Adapter software: TIBCO Runtime Agent is a prerequisite for TIBCO
Adapter products. You will therefore find TIBCO Adapter product
documentation useful.
Typographical Conventions
Convention Use
ENV_NAME TIBCO products are installed into an installation environment. A product
installed into an installation environment does not access components in other
TIBCO_HOME
installation environments. Incompatible products and multiple instances of the
TRA_HOME same product must be installed into different installation environments.
An installation environment consists of the following properties:
• Name Identifies the installation environment. This name is referenced in
documentation as ENV_NAME. On Microsoft Windows, the name is
appended to the name of Windows services created by the installer and is a
component of the path to the product shortcut in the Windows Start > All
Programs menu.
• Path The folder into which the product is installed. This folder is referenced
in documentation as TIBCO_HOME.
TIBCO Runtume Agent installs into a directory within a TIBCO_HOME. This
directory is referenced in documentation as <ProductAcronym>_HOME. The
default value of <ProductAcronym>_HOME depends on the operating system.
For example on Windows systems, the default value is
C:\tibco\<ProductAcronym>\<ReleaseNumber>.
code font Code font identifies commands, code examples, filenames, pathnames, and
output displayed in a command window. For example:
Use MyCommand to start the foo process.
Convention Use
italic font Italic font is used in the following ways:
• To indicate a document title. For example: See TIBCO ActiveMatrix
BusinessWorks Concepts.
• To introduce new terms For example: A portal page may contain several
portlets. Portlets are mini-applications that run in a portal.
• To indicate a variable in a command or code syntax that you must replace.
For example: MyCommand PathName
Key Key name separated by a plus sign indicate keys pressed simultaneously. For
combinations example: Ctrl+C.
Key names separated by a comma and space indicate keys pressed one after the
other. For example: Esc, Ctrl+Q.
The note icon indicates information that is of special interest or importance, for
example, an additional action required only in certain circumstances.
The tip icon indicates an idea that could be useful, for example, a way to apply
the information provided in the current section to achieve a specific result.
The warning icon indicates the potential for a damaging situation, for example,
data loss or corruption if certain steps are taken or not taken.
Convention Use
[ ] An optional item in a command or code syntax.
For example:
MyCommand [optional_parameter] required_parameter
| A logical OR that separates multiple items of which only one may be chosen.
For example, you can select only one of the following parameters:
MyCommand param1 | param2 | param3
Convention Use
{ } A logical group of items in a command. Other syntax notations may appear
within each logical group.
For example, the following command requires two parameters, which can be
either the pair param1 and param2, or the pair param3 and param4.
MyCommand {param1 param2} | {param3 param4}
In the next example, the command requires two parameters. The first parameter
can be either param1 or param2 and the second can be either param3 or param4:
MyCommand {param1 | param2} {param3 | param4}
In the next example, the command can accept either two or three parameters.
The first parameter must be param1. You can optionally include param2 as the
second parameter. And the last parameter is either param3 or param4.
MyCommand param1 [param2] {param3 | param4}
This chapter introduces the TIBCO Runtime Agent™ scripting utilities that are
used to upload, configure and deploy applications in administration domains.
Topics
• Overview, page 2
• buildear Utility, page 3
• AppManage Utility, page 4
• Installed Files, page 6
• Starting the Scripting Utilities, page 7
• Accessing Online Help for Commands, page 8
• Working with Passwords, page 11
• Log Files, page 13
Overview
The scripting tools allow you to build an EAR file for an application configured in
TIBCO Designer, then load the application into one or more TIBCO Administrator
administration domains. Deployment options can be specified in a deployment
configuration file that is created using the AppManage utility.
• If your application is not complex and needs only machine bindings defined
for each domain, you can use the AppManage utility to create the deployment
configuration file from information in the EAR file, then edit the configuration
file with the machine names where the applications will be deployed. In this
scenario, the TIBCO Administrator GUI is not used.
• If your application is complex and needs more then machine bindings
defined, you can import an EAR file into the TIBCO Administrator GUI and
specify deployment configuration options for the application. This method is
preferred if your application includes complex mappings, such as fault
tolerance, runtime variables, alerts and so on.
In this scenario, the TIBCO Administrator GUI is used to initially set the
application’s deployment configuration options. After the options are set, the
TIBCO Administrator GUI is no longer used. The AppManage utility updates
the deployment configuration file from the application configured in the
TIBCO Administrator GUI. The file is edited for each administration domain
by changing machine bindings and so on, then deployed into each
administration domain.
buildear Utility
The buildear utility builds an EAR file based on the Enterprise Archive
resource that is defined in a TIBCO Designer project. The project directories and
files must be writable so that buildear can save the file. When saving, buildear
increments the archive build number and saves it to the project.
An EAR file size can be very large. You should ensure that the machine on which
the EAR file is loaded and deployed has sufficient disk space. See Enterprise
Archive File Size in TIBCO Designer User’s Guide for details.
It is recommended that you configure the components that are included in the
archive and build the archive in TIBCO Designer. After the archive is built you
can use buildear to send the archive to multiple machines.
AppManage Utility
Credential File
A credential file contains the administration domain user’s name and encrypted
password.
The -cred option takes the name and location of a property file containing
username and encrypted password. If the -cred option is used, the -user and-pw
options should not be used.
In some cases, message "Specify userID and password" is generated even after
providing the credential file because of incorrect credential file or it doesn't
contain the required two field in proper format : - user pw
When invoking an AppManage option, use the -cred option to specify the name
and location of the property file.
AppManage -upload -ear <ear_name> -cred <file-path\cred123.txt>
-domain <domain_name>
2. Save the file and invoke the utility giving the file as input.
user=username-2
pw=#!password-2
.....
.....
.....
user=username-N
pw=#!password-N
Installed Files
AppManage Utility
The AppManage utility and the AppManage.tra file are installed in the
TIBCO_HOME/tra/version/bin directory. The AppManage.jar file is installed in
the TIBCO_HOME/tra/version/lib directory.
Buildear Utility
The buildear utility and the buildear.tra file are installed in the
TIBCO_HOME/tra/version/bin directory.
This section explains how to start the AppManage and buildear utilities.
Starting AppManage
To start the AppManage utility, change directory to TIBCO_HOME/tra/version/bin
and type AppManage -action. See the next section for information about using
online help for information about the actions available.
The AppManage utility must be run on a machine that is part of the administration
domain you are updating.
The user account used to run the AppManage utility must have Write permissions
set in the TIBCO Administrator GUI for the application, domain repository and
application repository that is being updated.
Starting Buildear
To start the buildear utility, change directory to TIBCO_HOME/tra/version/bin
and type buildear -options. See the next section for information about using
online help.
You should verify your project by loading it into TIBCO Designer before you use
the project with the buildear utility. If the project doesn't load correctly in TIBCO
Designer, the buildear utility doesn't support it.
AppManage Help
The AppManage online help shows the command line syntax, describes each
command option and provides command line examples. For example, typing
AppManage on the command line produces the following help.
C:\tibco\tra\<version>\bin>appmanage
Usage: AppManage [options] [args...]
(to execute a task)
or AppManage -? [options]
(to print detailed message of each option)
where options include:
-export export a deployment configuration file
-upload upload an archive
-config configure an application
If -ear is specified, upload the archive first
-deploy deploy an application
If -ear is specified, upload the archive first
If -deployConfig is specified, configure the
application first
-undeploy undeploy an application
-delete delete an application
If -force is specified, undeploy the
application first.
-start start successfully deployed service instances
of an application
-stop gracefully shutdown successfully deployed
service instances of an application
-kill immediately kill successfully deployed
service instances of an application
-moveAppData Redeploy application with new location for
Application Data
-truncate Truncate the application deployment revision
-batchExport To export deployment configuration files for
all the archives under a directory
-batchUpload Uplaod all applications specified in
AppManage.batch
-batchConfig Config all applications specified in
AppManage.batch
-batchDeploy Deploy all applications specified in
AppManage.batch
-batchUndeploy Undeploy all applications specified in
AppManage.batch
-batchDelete Delete all applications specified in
AppManage.batch
-batchstart Start all applications specified in
AppManage.batch
-batchstop Stop all applications specified in
AppManage.batch
-batchkill Kill all applications specified in
On UNIX systems, ? has special meaning and must be enclosed within quotation
marks. To display help for a command line option on UNIX, type:
AppManage "-?" comand line option
Buildear Help
The buildear utility help can be displayed by typing:
buildear -h
The buildear utility online help does not explain that the -p and -o options
require the full path to the project and EAR file .
The buildear utility always reports success even if the operation was not
successful.
When running a command option such as -undeploy against the top level
DefaultDesktop application, the following syntax must be used for the -app
option:
AppManage -undeploy -app DefaultDesktop -user a -pw a -domain test
When running the same command against the NewHireApp application that is
contained in the HireApp folder, the following syntax must be used for the -app
option. A forward slash separates the folder and application name.
AppManage -undeploy -app HireApp/NewHireApp -user a -pw a -domain
test
Each action specified using the AppManage utility requires a password to access
the administration domain where the action will be executed. You can specify the
password using clear text or an encrypted key. The -pw option always takes a
clear text password. The -cred option takes the name and location of a property
file containing username and encrypted password. If the -cred option is used, the
-user and-pw options should not be used.
2. Save the file and invoke the obfuscate utility giving the file as input. The
utility is in TIBCO_HOME/tra/version/bin. (Refer to TIBCO Runtime Agent
Installation for more information about Obfuscate Utility.)
3. When invoking an AppManage option, use the -cred option to specify the
name and location of the property file.
AppManage -upload -ear c:\ears\timer_wait.ear -cred
c:\ears\psswd\tp001Psw.txt -domain tp001
When you export an application, sensitive data in the EAR file is encrypted using
either a static key or dynamically generated symmetric key, depending on
whether you choose to use dynamic symmetric key at the time of deployment.
Likewise, sensitive data in the deployment configuration file is encrypted using a
static key when it is exported. However, you can generate a custom key for better
security by specifying an encryption password. If you do so, you will also be
required to provide the same password when you upload or deploy with the
deployment configuration file.
See Other Options on page 24 for descriptions and example usage of the
-password and -passwordFile options.
Log Files
Both the AppManage and buildear utilities write information to a log file.
Note that the default log location can be changed in TIBCO Designer.
This chapter explains how to use the AppManage utility for simple and complex
deployments.
Topics
In this scenario, a file notification project has been modified using TIBCO
BusinessWorks. The buildear utility builds an EAR file for deployment. Based
on the EAR file, the AppManage utility creates a deployment configuration file
which includes XML tags for each deployment option. Using a text editor, the
machine binding tags are edited. The AppManage utility is then used to deploy the
application.
1. Build the EAR file.
The project is configured using TIBCO Designer. After all components in an
archive resource are configured, the buildear utility can be used to build the
EAR file.
The command line to build the EAR file is listed next. The -s option is saves
the archive as another version in the project.
You can have multiple archive resources defined in a project. The -ear option
allows you to provide the location of the archive resource that contains the
changed components. You can get the archive resource URI in TIBCO
Designer by selecting the archive and clicking Resource > Inspect Resource.
The Resource Inspector dialog shows the URI next to the icon.
The -o option identifies the location and name of the output EAR file. The
EAR file name must use the .ear suffix. If not specified, the EAR file location
for the Enterprise Archive is used.
The -p option provides the location of the TIBCO Designer project where the
archive has been created.
buildear -s -ear /filenotify.archive
-o c:\ears\deployment\filenotify.ear
-p c:\tibco\projects\filenotify
new file and change the substitution variables defined by the AppManage
utility for the processes. In this example the <machine> XML tags are
modified with the name of the machine on which the processes run.
The generated file includes substitution variables for the machine element
value. The variables use the syntax, %%<archive-type>-machine%% (a
combination of percent symbols, archive type and computer name). During
deployment you must configure an element that uses such a variable by
replacing the substitution value with the actual value, without the percent
symbols.
<services>
<bw name="Process Archive.par">
<enabled>true</enabled>
<bindings>
<binding name="">
<machine>%%Process Archive.par-machine%%</machine>
.
.
.
<bindings>
<binding name="">
<machine>%%deuxiemeprocess.par-machine%%</machine>
.
.
.
Redeploying an Application
You can use the scripting utilities to redeploy an already deployed application.
The AppManage utility does not include a redeploy command; the -deploy
command is used to redeploy an application. The options to use with the -deploy
command vary depending on where changes were made. The -force option
provided for AppManage is equivalent to the Force redeployment of all services
in the TIBCO Adminitrator GUI. This section shows these options.
For example, the following command redeploys the filenotify application with
the changed filenotify_tp003.xml file.
AppManage -deploy
-deployconfig c:\ears\deployment\filenotify_tp003.xml
-app filenotify -domain tp003 -user admin -pw admin
2. Generate a new deployment configuration file using the EAR file created in
the previous step, the deployment configuration file used when previously
deploying the application and specify a new deployment configuration file.
For example, when the following command is run, a log file is generated in
the same folder where the new deployment configuration file is created. The
log file lists all changes that were made to the deployment configuration file,
as a result of changes to the EAR file.
AppManage -export -ear c:\ears\deployment\filenotify.ear
-deployconfig c:\ears\deployments\filenotify.xml
-out c:\ears\deployments\filenotify-changed.xml
The new deployment configuration file may need to be further modified, for
example, by replacing machine binding substitution variables with actual
machine names for new services, modifying deployment or service level
variable values, picking up the right checkpoint repository from the list of
checkpoint repositories, and so.
3. After you have made the changes to your deployment configuration file, you
are ready to deploy the application. For example:
AppManage -deploy -ear c:\ears\deployment\filenotify.ear
-deployconfig c:\ears\deployment\filenotify-changed.xml
-app filenotify -domain tp003 -user admin -pw admin
Exporting an Application
You can use the appManage -export option to create and export an application’s
deployment configuration file and archive (EAR) file. You can also use the
appManage -batchExport option to create and export the deployment
configuration files and EAR files for all applications in an administration domain.
Other Options
In addition to the -export and -deploy options, the AppManage utility allows
you to use:
• -upload to upload an application into an administration domain without
configuring the application’s deployment options.
• -config to upload an application along with its deployment configuration
file, which defines the application’s configuration options, but not deploy the
application.
• -undeploy to undeploy an application.
• -delete to remove an application from an administration domain.
• -start or -stop to start or stop a service or process configured under an
application.
• -override to use global variable values defined in the EAR file, instead of
those defined in the original deployment configuration file when redeploying.
• -min to generate only XML tags for options you have changed.
• -max to export a template deployment configuration file with every possible
setting included.
• -template to generate a deployment configuration file in template format.
• -password to prompt for a password that is used to encrypt or decrypt
sensitive data in the deployment configuration file.
• -passwordFile to use a password file to encrypt or decrypt sensitive data in
the deployment configuration file.
• -MoveAppData to change the transport setting for a given application.
• -truncate to truncate the application deployment revision.
• -desc to specify a description for the deployed application.
• -serialize to deploy service instances one at a time instead of in parallel.
• -exportDeployed to export the configuration for the last successful
deployment rather than what is currently being modified and will be used for
the next deployment.
-upload Option
You can use the AppManage utility to upload an EAR file into an administration
domain. Specifying the -upload option is identical to importing an EAR in the
TIBCO Administrator GUI. The application is loaded, but no deployment options
are specified and the application is not deployed.
AppManage -upload -ear c:\ears\timer_wait.ear -user admin -pw admin
-domain tp002
-config Option
You can upload an EAR file and a deployment configuration file into an
administration domain and not deploy the application. The -config option
uploads the EAR file and the deployment configuration file, but does not deploy
the application. You can omit the -ear option if the EAR file is already loaded in
the domain.
AppManage -config -ear c:\ears\timer_wait.ear -deployConfig
c:\ears\deployments\timer_wait.xml -app timer_wait -user admin -pw
admin -domain tp002
-undeploy Option
You can undeploy an application using a command line similar to the following.
The application will remain in the domain, but in an undeployed state.
AppManage -undeploy -app timer_wait -domain tp001 -user admin -pw
admin
-delete Option
You can remove an application from an administration domain. If the application
is deployed, you can undeploy and delete the application in one operation using
the -force option. An error is returned if you attempt to delete a deployed
application without specifying the -force option.
AppManage -delete -app timer_wait -user admin -pw admin -domain
tp001 -force
-start Option
You can use the AppManage utility to start an application and all its associated
processes, or use the utility to start just one service. The -service tag takes the
name of a service. Each service contains a name. For example, if there is a TIBCO
BusinessWorks service element <bw name="BW Processes.par"> in a
deployment configuration file, -service takes the value "BW Processes.par".
In the case where -binding is provided without -service, all services in the
application are started.
AppManage -start -app myApp -binding
ActiveDatabaseAdapterConfiguration -user a -pw a -domain test
-stop Option
You can use the AppManage utility to stop an application and all its associated
processes, or use the utility to stop just one service. The -binding tag takes the
name of a binding. Each binding contains a name. For example, if there is a
binding element <binding name="BW Processes"> in a deployment
configuration file, -binding takes the value "BW Processes".
AppManage -stop -app myApp -user a -pw a -domain test
-breaklock Option
You can use the AppManage utility to break the lock held on the application by
other users. This will result in loosing uncommited changes by the other users.
–override Option
This option is only applicable when a deployment configuration file already
exists. That is, you are redeploying with a changed archive file.
By default, a newly generated deployment configuration file preserves the value
in the original deployment config file. Use this option with the -export option to
create a deployment configuration file that uses the values defined for global
variables in the archive file, rather than the values defined for global variables in
the original deployment configuration file.
AppManage -export -ear c:\ears\deployment\filenotify.ear
-deployconfig c:\ears\deployments\filenotify.xml
-out c:\ears\deployments\filenotify-changed.xml
-override
-min Option
Use this option with the -export and -ear options to create a small deployment
configuration file that only includes XML tags for options you have changed in
the EAR file. XML tags are not generated for default options that have values,
which have not been changed from their defaults. Options for which XML tags
are not generated will use default values.
-max Option
Use this option with the -export option to create a deployment configuration file
that includes all possible XML tags. For example:
appmanage -export -app SendMsg -domain tp041 -user admin -pw admin
-out c:\temp\sendmsg.xml -max
-template Option
Use this option with the -export option to create a deployment configuration file
that includes XML tags for all options. Certain options, such as machine tags will
include values defined within percent (%%) characters that can be searched for
and replaced. For example:
<bindings>
<binding name="">
<machine>%%demo2sub.aar-machine%%</machine>
<product>
<type>adb</type>
<version/>
<location/>
</product>
<description/>
<contact/>
</binding>
</bindings>
-password Option
Use this option with the -export option to encrypt sensitive data in the exported
deployment configuration file. You will be prompted to enter an encryption
password. For example:
AppManage -export -out c:\ears\deployments\timer_wait.xml -app
timer_wait -user admin -pw admin -domain tp002 -password
Also use this option with the -deploy or -config option to upload a deployment
configuration file whose sensitive data is encrypted with your custom password.
You will be prompted to enter the encryption password that you specified when
generating the deployment configuration file. For example:
-passwordFile Option
Use this option with the -export option to encrypt sensitive data in the exported
deployment configuration file using a properties file. The properties file contains
the password encrypted using the obfuscate utility (Refer to TIBCO Runtime
Agent Installation for more information about Obfuscate Utility). For example:
AppManage -export -out c:\ears\deployments\timer_wait.xml -app
timer_wait -user admin -pw admin -domain tp002 -passwordFile
c:\my_password.txt
Also use this option with the -deploy or -config option to upload a deployment
configuration file whose sensitive data is encrypted with your custom password.
To use this option, you must provide a properties file which contains the
password encrypted using the obfuscate utility when generating the
deployment configuration file. For example:
AppManage -config -ear c:\ears\timer_wait.ear -deployConfig
c:\ears\deployments\timer_wait.xml -app timer_wait -user admin -pw
admin -domain tp002 -passwordFile c:\my_password.txt
-moveAppData Option
This option allows you to change the transport setting for a given application. It is
similar to the -batchMoveAppData option, but operates against a single
application. If the application is within a directory, use a forward slash (/) to
separate it from the application name. For an overview of this option, see ,
Changing the Transport for Applications, on page 43.
The -deployconfig option can be used to configure the application with a given
XML file.
The following example shows how to change the transport setting for an
application from rv (Rendezvous) to local.
AppManage -moveAppData -app SendMsg -user admin -pw admin -domain
tp041 -local
-truncate Option
With this option you can remove unwanted revisions of an application. Note that
this option does not change the value of Max Deployment Revision for your
application. The following example truncates the application’s revision history.
-serialize Option
If this option is used, then deployment will be done to one machine at a time.
Without this, deployment is done simultaneously to all machines with service
instances for the application being deployed.
When deployment is being done to multiple machines and there are contention
issues, the use of this flag can alleviate them and greatly speedup the overall
deployment process.
Contention issues can be identified by deployment taking many minutes, but not
using significant amounts of CPU time on the admin server or target machines.
The following example shows how to use this option in a domain.
AppManage -deploy -app myApp -user user1 -pw user1 -domain test
-serialize
-exportDeployed Option
This option is to be used with -export or -batchExport option. If -exportDeployed
is specified, the active deployed configuration is exported. If not, then the current
configuration changes that would be picked up by the next deployment are what
is exported. If the application is in undeployed status, but was deployed earlier,
the last deployed configuration is exported. If the application has never been
deployed, the current configuration is exported just as if the flag was not
specified.
When used with -export:
AppManage -export -app <app> -domain <domain> -out <uri> [-user
<user> -pw <password>] [-cred <cred>] [-template] [-min] [-genEar]
[-ear <archive>] [-exportDeployed]
A deployment configuration file can contain specifications for event elements and
TIBCO Hawk rulebases. This section provides examples about how to configure
these elements. For an introduction to monitoring events and rulebases, see the
TIBCO Administrator User’s Guide.
Event Element
When defining an event in the TIBCO Administrator GUI, the Add Event panel
displays the General, Alert, Email and Command sections. The General section
defines how events defined in the alert, email and command sections are handled.
Events are defined in the deployment configuration file in a similar way. Similar
to the General section, the failureEvent element describes how an event is
handled. The Alert, Email and Command sections correspond to the alertAction,
emailAction and customAction elements.
Alert
The following XML fragment shows the definition of a monitoring alert section.
The restart element is set to true and the failure element is set to FIRST. This
means when the alert is triggered, only for the first failure occurrence, TIBCO
Administrator will attempt to restart the service instance. For all subsequent
failure occurrences, the service instance is not restarted. If the failure element was
set to Subsequent, each time a failure occurred, the TIBCO Administrator would
attempt to restart the failed service.
An alertAction is enabled and set to medium level. The alert is enabled for only
for the first failure occurrence. To generate an alert for each failure occurrence, the
performPolicy element must be set to Always.
The emailAction and customAction sections are not enabled.
<monitor>
<events>
<failureEvent>
<restart>true</restart>
<description>Restart on first failure</description>
<actions>
<alertAction>
<performPolicy>Once</performPolicy>
<enabled>true</enabled>
<level>Medium</level>
<message>Component failed!</message>
</alertAction>
<emailAction>
<performPolicy>Once</performPolicy>
Email
The following XML fragment shows the definition for a monitoring email event.
The restart element is set to true, so when an enabled action evaluates to true, the
service instance is restarted. The failure element is set to ANY, which means that
any failure will trigger the restart.
Only the emailAction element is enabled. The alertAction and customAction
elements are disabled. The performPolicy element for email is defined as Always
and the enabled element is defined as true. This means that the email alert action
will be performed each time a failure event occurs for the application.
<monitor>
<events>
<failureEvent>
<restart>true</restart>
<description>Restart service instance.</description>
<actions>
<alertAction>
<performPolicy>Once</performPolicy>
<enabled>false</enabled>
<level>Low</level>
</alertAction>
<emailAction>
<performPolicy>Always</performPolicy>
<enabled>true</enabled>
<message>MyMessage</message>
<to>SentTo</to>
<cc>CCTo</cc>
<subject>MySubject</subject>
<sMTPServer>my.mail.server</sMTPServer>
</emailAction>
<customAction>
<performPolicy>Once</performPolicy>
<enabled>false</enabled>
</customAction>
</actions>
<failure>ANY</failure>
</failureEvent>
</events>
</monitor>
Command
The following XML fragment shows the definition for a monitor command event.
The restart element is set to false, so the service instance is not restarted upon
failure. The alertAction and emailAction elements are disabled.
The customAction element is enabled such that the command is executed only
once. The command element lists the batch file to execute upon failure.
<monitor>
<events>
<suspendProcessEvent>
<restart>false</restart>
<description>Execute command upon failure.</description>
<actions>
<alertAction>
<performPolicy>Once</performPolicy>
<enabled>false</enabled>
<level>Low</level>
</alertAction>
<emailAction>
<performPolicy>Once</performPolicy>
<enabled>false</enabled>
</emailAction>
<customAction>
<performPolicy>Once</performPolicy>
<enabled>true</enabled>
<command>c:\commands\bin\mycommand.bat</command>
</customAction>
</actions>
</suspendProcessEvent>
</events>
</monitor>
Rulebase
In a scenario where a TIBCO Hawk rulebase file is used to monitor a TIBCO
BusinessWorks process or an adapter service, when configuring deployment
options using the TIBCO Administrator GUI, the rulebase file is picked up by
browsing the file system or by specifying the full path to the file in the file system.
When the rulebase file is loaded, path information is lost and only the file name
and the contents are stored within Administrator.
If a deployment that makes use of this feature is exported into a deployment
configuration file, using the AppManage -export command, the XML file has a
section similar to:
<monitor>
<rulebases>
<rulebase>
<uri>myrulebase.hrb</uri>
<data>Hawk Rulebase file in Binary format</data>
When using this deployment configuration file to redeploy, you must change the
uri to the absolute uri of the new Hawk rulebase file. For example:
<monitor>
<rulebases>
<rulebase>
<uri>c:\tibco\hkrulebases\myrulebase.hrb</uri>
<data>Hawk Rulebase file in Binary format</data>
</rulebase>
</rulebases>
</monitor>
Note that:
• If the uri is a path to a valid Hawk rulebase file, it will be used in the
deployment, even if the contents of the rulebase file do not match the content
within the data tag <data></data>.
• If the uri is not a valid path to a Hawk rulebase file, the binary content within
the <data> tag will be used to create the Hawk rulebase file and the name
given to the rulebase file will be the Filename portion of the uri.
• If the uri is invalid and a Hawk rulebase cannot be created out of the content
within the data tag, an exception will be thrown.
<application
xmlns="http://www.tibco.com/xmlns/ApplicationManagement"
name="RVCM_Project">
<description></description>
<contact></contact>
<NVPairs name="Global Variables">
<NameValuePair>
<name>DirLedger</name>
<value>.</value>
</NameValuePair>
.
.
.
<NameValuePairInteger>
<name>RVCM/Worker_Tasks</name>
<value>0</value>
</NameValuePairInteger>
<NameValuePairInteger>
<NameValuePairInteger>
<name>RVCM/Worker_Weight</name>
<value>0</value>
</NameValuePairInteger>
</NVPairs>
</binding>
<binding name="">
<machine>RECEIVER-MACHINE2</machine>
.
.
.
<NVPairs name="INSTANCE_RUNTIME_VARIABLES">
<NameValuePairInteger>
<name>RVCM/Worker_Tasks</name>
<value>0</value>
</NameValuePairInteger>
<NameValuePairInteger>
<name>RVCM/Scheduler_Weight</name>
<value>0</value>
</NameValuePairInteger>
<NameValuePairInteger>
<name>RVCM/Worker_Weight</name>
<value>0</value>
</NameValuePairInteger>
</NVPairs>
</binding>
</bindings>
.
.
.
</bw>
</services>
</application>
Topics
• Overview, page 38
• Creating the AppManage.batch File by Exporting Applications, page 39
• Deploying Applications in Batch Mode, page 40
• Starting Applications in Batch Mode, page 41
• Deleting Applications in Batch Mode, page 42
Overview
To use the AppManage utility in batch mode you must first create an
AppManage.batch file. The file lists the applications and their corresponding EAR
and XML files. While you can create the file manually, the easiest way is to
generate the file using the -batchExport option. In addition to creating the
AppManage.batch file, the option creates an enterprise archive file and XML file
for each application in the given domain.
If you are creating the AppManage.batch file manually, the files listed in the
AppManage.batch file must be specified using relative file paths. The base of
those relative paths is the directory specified by the –dir option that is given on
the AppManage command line. See Creating the AppManage.batch File by
Exporting Applications on page 39 for an example command line.
<apps>
<app name="SendMsg" ear="SendMsg.ear" xml="SendMsg.xml"/>
<app name="WriteMsg" ear="WriteMsg.ear" xml="WriteMsg.xml"/>
</apps>
After creating the AppManage.batch file, you can use the AppManage utility to do
the following operations in batch mode:
• Deploy applications
• Undeploy applications
• Start or stop applications
• Delete applications
• Kill applications
• Change the transport
The next command shows how to automatically create the AppManage.batch file.
To use an encrypted password, do not use the -user and -pw options. Instead
create a credentials file and encrypt the password, then provide the file location
and name to the -cred option. See Working with Passwords on page 11 for
details.
The -dir option specifies the location where the AppManage.batch file will be
written. The directory specified for the option is created, if it does not exist. The
AppManage.batch file cannot be written directly under the file system root drive.
That is, specifying c:\AppManage.batch for the –dir option is not allowed.
AppManage -batchExport -domain mydomain -user admin -pw admin -dir
c:\adminbatch\mybatch\
When configuring an administration domain, you set the default for how the
administration server interacts with application repositories stored as files. When
TIBCO Rendezvous is configured as the transport for the administration domain,
it can be configured to use local application data or server-based application data
as the default.
While the choice you use can be changed in TIBCO Administrator by
undeploying the application, changing the transport setting, and redeploying the
application, you can use the AppManage -batchMoveAppData option to change
the transport setting in batch mode.
When using the option, AppManage redeploys the application with the changed
transport setting. You can change values and redeploy without undeploying the
application.
The -batchMoveAppData option updates all applications specified in the -dir
directory. You can also change the default transport setting for an administration
domain by including the -setDefault option, where all subsequent deployments
in the domain will use the given transport.
The user account must have write permission for the specified applications. Only
the local or rv (Rendezvous) transports can be set.
For example, the following command changes the transport from rv to local for
the applications specified in the directory given for the -dir option. The directory
must have been populated earlier using the -batchExport option. See Creating
the AppManage.batch File by Exporting Applications on page 39 for details.
C:\tibco\tra\<version>\bin>appmanage -batchMoveAppData -domain tp041
-user admin -pw admin -dir c:\adminbatch\mybatch -local
Checking if master server is responding ...
Finished checking
Initializing ...
Finished initialization
Redeploying application SendMsg with new Application data location
local ...
Loading archive ...
Finished loading archive
Configuring application ...
Finished configuring application
Deploying application ...
Instance SendMsg created succesfully
Finished deploying application
[ SendMsg ]: Finished successfully in 19 seconds
This chapter explains the values you can set for elements in the generated
deployment configuration XML file.
Topics
Overview
This chapter explains the values you can set for elements in an XML file for an
application. The XML file is typically generated using the AppManage -export
option against an application’s EAR file. For example:
AppManage -export -out c:\test\myApp.xml -ear myApp.ear
Typically, you then edit the XML file, and then deploy the application. See Simple
Application Deployment on page 16 for details about deploying an application
after editing its deployment configuration file.
Application Element
The next diagram shows the application element. The elements included in the
application element are explained in this section.
Attribute or
Description
Element
name The name assigned to the application in TIBCO
Designer.
NVPairs Element
The next diagram shows the element.
Attribute or Description
Element
name Name assigned to an NVPairs element.
The NVPairs element is used to display the global variables set in the enterprise
archive file for an application. The following global variables are predefined by
default:
• DirLedger — Used by the system when defining the path name of the TIBCO
Rendezvous certified messaging ledger file. The default is the root installation
directory.
• DirTrace — Used by the system to partially create the path name for log file
used by the adapter. The default is the root installation directory.
• HawkEnabled — Used by the system to indicate whether TIBCO Hawk is
used to monitor the adapter. True indicates that a Hawk microagent is defined
for the adapter. False indicates the microagent is not to be used. Default is
False.
• JmsProviderUrl — A JMS provider URL tells applications where the JMS
daemon is located. Setting this value mostly makes sense in early stages of a
project, when only one JMS daemon is used.
• JmsSslProviderUrl — Specifies where the JMS server, running in the SSL
mode, is located. Setting this value mostly makes sense in the early stages of a
project, when only one JMS server is used.
• RemoteRvDaemon — Used by the system to identify the TIBCO Rendezvous
routing daemon. See TIBCO Rendezvous Administration for details about
specifying the routing daemon name.
components working in the same domain must always use the same encoding
for intercommunication. See TIBCO Administrator Server Configuration Guide
for more information.
RepoInstances Element
The next diagram shows the element.
Attribute or
Element Description
Attribute or
Element Description
services Element
The next diagram shows the element.
Attribute or
Description
Element
name The name assigned to the application’s service or
process. Names ending in .par indicate the application
is a TIBCO BusinessWorks process. Names ending in
.sar indicate the application is a service, such as a
TIBCO adapter.
failureCount The value in this field defines how many restarts should
be attempted before resetting the error counter to 0. See
the TIBCO Administrator User’s Guide for more
information about this element.
failureInterval The value in this field defines how much time should
expire before resetting the error counter to 0.
httpRepoInstance Element
The next diagram shows the element.
Attribute or Description
Element
server Name of the administration server under which this
application is deployed.
url The URL with which the client attempts to connect to the
server.
rvRepoInstance
The next diagram shows the element.
Attribute or
Element Description
Attribute or
Element Description
bindings Element
The next diagram shows the element.
Attribute or
Element Description
monitor Element
The next diagram shows the element.
Attribute or
Description
Element
rulebases See rulebases Element on page 63.
product Element
The next diagram shows the element.
Attribute or Description
Element
type The product type. Do not change.
setting Element
The next diagram shows the element.
Attribute or
Element Description
maxLogFileSize Specifies the maximum size (in Kilobytes) a log file can
reach before the engine switches to the next log file.
shutdown Element
The next diagram shows the element.
Attribute or
Element Description
checkpoint When true, the process engine waits for all jobs to finish
(up to the maximum timeout) before shutting down the
engine, rather than removing jobs at their next
checkpoint.
NTService Element
The next diagram shows the element.
Attribute or
Description
Element
runAsNT true or false. When true, the service is run as a Microsoft
Windows Service. You can then manage the engine as
you would any other service, and you can specify that it
starts automatically when the machine reboots.
loginAs The login account for the service, if any. The domain
name must be specified. If the login account is defined
on the local machine, the domain is ".". For example,
user jeff on the local machine would be specified as
.\jeff.
java Element
The next diagram shows the element.
Attribute or
Description
Element
prepandClassPath The items you provide here are prepended to your
CLASSPATH environment variable. You can specify a Java
code editor, or the jar file from a JNDI provider if you
wish to use TIBCO BusinessWorks to receive and
process JMS messages.
initHeapSize Initial size for the JVM used for the process engine.
Default is 32 MB.
maxHeapSize Maximum size for the JVM used for the process engine.
Default is 128 MB.
rulebases Element
The next diagram shows the element.
Attribute or
Description
Element
uri Location of the rulebase file.
Attribute or
Element Description
events Element
The next diagram shows the element.
Attribute or
Description
Element
event See failureEvent Element on page 64.
failureEvent Element
The next diagram shows the element.
Attribute or
Description
Element
restart true or false. If true, the service instance is restarted
upon failure.
Attribute or
Element Description
failure The failure element defines when the alert action should
be enabled after a service instance failure. One of the
following can be defined:
• ANY—Any failure
• FIRST—First component failure.
• SECOND—Second component failure.
• Subsequent—Subsequent component failures.
suspendProcessEvent Element
The next diagram shows the element.
Attribute or
Description
Element
restart true or false. If true, the service instance is restarted
upon failure.
Attribute or
Element Description
logEvent Element
The next diagram shows the element.
Attribute or
Element Description
alertAction Element
The next diagram shows the element.
Attribute or
Element Description
level Set the alert level. This affects the appearance of the alert
in the TIBCO Administrator GUI.
• High
• Medium
• Low
emailAction Element
The next diagram shows the element.
Attribute or
Element Description
level Set the alert level. This affects the appearance of the alert
in the TIBCO Administrator GUI.
• High
• Medium
• Low
Attribute or
Element Description
customAction Element
The next diagram shows the element.
Attribute or
Element Description
Attribute or
Element Description
bw Element
Attribute or
Description
Element
name Name assigned to this process instance.
Attribute or
Element Description
failureCount The value in this field defines how many restarts should
be attempted before resetting the error counter to 0.
failureInterval The value in this field defines how much time should
expire before resetting the error counter to 0.
bwprocesses Element
The next diagram shows the element.
Attribute or
Element Description
checkpoints Element
The next diagram shows the element.
Attribute or Description
Element
selected The selected checkpoint (from checkpoint element).
faultTolerant Element
The next diagram shows the element.
Attribute or
Description
Element
hbInterval Heartbeat Interval. The master engine of a fault-tolerant
group broadcasts heartbeat messages to inform the other
group members that it is still active. The heartbeat
interval determines the time (in milliseconds) between
heartbeat messages. In the event if one process engine
fails, another engine detects the stop in the master’s
heartbeat and resumes operation in place of the other
engine. All process starters are restarted on the
secondary, and services are restarted to the state of their
last checkpoint.
Attribute or
Element Description
adapter Element
The adapter element is used by a TIBCO Adapter service. The next diagram
shows the element.
Attribute or
Description
Element
name Name assigned to this application.
failureCount The value in this field defines how many restarts should
be attempted before resetting the error counter to 0.
failureInterval The value in this field defines how much time should
expire before resetting the error counter to 0.
Attribute or
Element Description
formFlow Element
Attribute or
Description
Element
name Name assigned to this application.
Attribute or
Element Description
failureCount The value in this field defines how many restarts should
be attempted before resetting the error counter to 0.
failureInterval The value in this field defines how much time should
expire before resetting the error counter to 0.
authentications Element
The next diagram shows the element.
Attribute or Description
Element
selected Name of the selected authentication configuration. Can
be Http Session, Cookie, or Web Server.
Requires Authentication
The requires authentication elements are explained in this section. The next
diagram shows a high-level view of the elements in the section.
Attribute or
Description
Element
name Name assigned to this configuration.
CookieAuthenticationConfiguration Element
The next diagram shows the element. The element represents the configuration
for cookie based authentication.
Attribute or Description
Element
configName Name assigned to this configuration.
cookieKeepExpire Number of days that the cookie is kept, after which the
cookie will expire.
HttpSessionAuthenticationConfiguration Element
The next diagram shows the element.
Attribute or Description
Element
configName Name assigned to this configuration.
WebServerAuthenticationConfiguration Element
The next diagram shows the element.
Attribute or Description
Element
configName Name assigned to this configuration.
ExternalAuthenticationConfiguration Element
The next diagram shows the element.
Attribute or Description
Element
configName Name assigned to this configuration.
Numeric
Exit Code Description Action
Value
FAILURE_USAGE_ER A command line arguments Usage error. Correct the usage -1
ROR
parsing error occurred. error.
FAILURE_APPLICAT The specified application does Usage error. Correct the usage -2
ION_NOT_EXIST
not exist in the administration error.
domain.
FAILURE_SERVICE The specified service does not Usage error. Correct the usage -5
_NOT_EXIST exist in the administration error.
domain.
FAILURE_BINDING_ The specified service container Usage error. Correct the usage -6
NOT_EXIST
binding does not exist in the error.
administration domain.
Numeric
Exit Code Description Action Value
FAILURE_NO_MACHI The deployed service container The application is in a bad -9
NE_ASSOCIATED_WI
binding has no machine state. A retry may not fix the
TH_PROCESS
associated with it. The service error.
instance is in an abnormal state.
An end user normally would
not see this error.
FAILURE_NOT_AUTH The specified user name has no Make sure user has -13
ORIZED
permission to perform the Administer permission set for
intended action. the action.
FAILURE_NOT_AUTH The supplied password does Make sure user name and -14
ENTICATED
not match the password stored password is correct.
in the administration domain.
FAILURE_DOMAIN_N The specified administration Usage error. You must supply -15
OT_INSTALLED
domain does not exist. a valid domain name.
Numeric
Exit Code Description Action Value
FAILURE_DOMAIN_M The master server is down or Make sure master server is -16
ASTER_SERVER_DOW
not responding within the running.
N
discovery timeout limit as
specified in the administration
domain's property file,
AdministrationDomain.prop
erties.
FAILURE_GET_ARCH Failed to retrieve the enterprise Make sure the enterprise -17
IVE
archive file from the archive file exists in the file
administration domain or from system.
the file system URI.
FAILURE_BATCH One or more exceptions Runtime error. Check the log -18
occurred during batch mode file, make corrections and
operations. retry.
FAILURE_UPLOAD_G Various unexpected exceptions Runtime error. Check the log -20
ENRAL
occurred during archive file, make corrections and
uploading, but not the retry.
following:
FAILURE_UPLOAD_COMMIT
FAILURE_UPLOAD_APPLICATIO
N_ARCHIVE
FAILURE_UPLOAD_APPLICATIO
N_ARCHIVE
FAILURE_UPLOAD_C A commit exception occurred Runtime error. Check the log -21
OMMIT
when uploading the archive. file, make corrections and
retry.
FAILURE_UPLOAD_A An exception occurred when Runtime error. Check the log -22
PPLICATION_ARCHI
adding archive into application file, make corrections and
VE
deployment configuration retry.
object.
FAILURE_ERROR_EX An exception occurred when Runtime error. Check log file, -24
ECUTING_EAR_PLUG
supplying default deployment Retry
IN
settings.
Numeric
Exit Code Description Action Value
FAILURE_CONFIG_E Various other unexpected Runtime error. Check the log -30
RROR_GENERAL
exceptions occurred when file, make corrections and
configuring the application, but retry.
not the following:
FAILURE_CONFIG_COMMIT
FAILURE_CONFIG_FILE_PARSE
_ERROR
FAILURE_CONFIG_FILE_READ_
ERROR
FAILURE_CONFIG_FILE_NOT_E
XIST
FAILURE_NO_UPLOADED_ARCHI
VE
FAILURE_INVALID_REPO_INST
ANCE
FAILURE_CONFIG_C A commit exception occurred Runtime error. Check the log -31
OMMIT
when configuring the file, make corrections and
application. retry.
FAILURE_CONFIG_F An IO error occurred when Make sure file has read -33
ILE_READ_ERROR
reading the configuration file. permission
FAILURE_CONFIG_F A file not found exception Make sure file exists. -34
ILE_NOT_EXIST
occurred when reading
configuration file.
Numeric
Exit Code Description Action Value
FAILURE_NO_UPLOA No archive is associated with Runtime error. The -35
DED_ARCHIVE
the application to be application is in a bad state.
configured. If this happens, it Retry may not fix the error.
means the application is in an
abnormal state. An end user
normally would not see this
error.
FAILURE_DEPLOY_G Various other unexpected Runtime error. Check the log -40
ENERAL
exceptions occurred when file, make corrections and
deploying the application, but retry.
not the following:
FAILURE_DEPLOY_COMMIT
FAILURE_NOT_DEPLOYABLE_ST
ATE
FAILURE_DEPLOYMENT_STATUS
FAILURE_DEPLOY_C A commit exception occurred Runtime error. Check the log -41
OMMIT
when deploying the file, make corrections and
application. retry.
FAILURE_DEPLOYME The deployment was Check the log file, make -43
NT_STATUS
unsuccessful. corrections and retry.
Numeric
Exit Code Description Action Value
FAILURE_UNDEPLOY Various other unexpected Runtime error. Check the log -50
_GENERAL
exceptions occurred when file, make corrections and
undeploying the application, retry.
but not including the following:
FAILURE_UNDEPLOY_COMMIT
FAILURE_UNDEPLOY A commit exception occurred Runtime error. Check the log -51
_COMMIT
when undeploying the file, make corrections and
application. retry.
FAILURE_DELETE_G Various other unexpected Runtime error. Check the log -60
ENERAL
exception occurred when file, make corrections and
deleting the application, but not retry.
including the following:
FAILURE_DELETE_COMMIT
FAILURE_DEPLOYED_STATE
FAILURE_DELETE_C A commit exception occurred Runtime error. Check the log -61
OMMIT
when deleting the application. file, make corrections and
retry.
FAILURE_EXPORT_G Various other unexpected Runtime error. Check the log -70
ENERAL
exception occurred when file, make corrections and
exporting the application retry.
configuration, but not
including the following:
FAILURE_XML_SERIALIZE
FAILURE_EXPORT_FILE_NAME_
ERROR
FAILURE_MERGE_ERROR
FAILURE_XML_SERI An IO error occurred when Make sure the file or directory -71
ALIZE
writing the configuration file. is writable.
Numeric
Exit Code Description Action Value
FAILURE_EXPORT_F The given export file name is Usage error. Correct the file -72
ILE_NAME_ERROR
invalid. A valid export file name.
name must end with a dot
suffix.
FAILURE_MERGE_ER An error occurred when Runtime error. Check the log -73
ROR
merging an old configuration file, make corrections and
with a new archive. retry.
FAILURE_START_GE Various other unexpected Runtime error. Check the log -80
NERAL
exceptions occurred when file, make corrections and
starting the application, but not retry.
the following:
FAILURE_BINDING_NOT_EXIST
FAILURE_HAWK_MICROAGENT
FAILURE_HAWK_CONSOLE
FAILURE_STOP_GEN Various other unexpected Runtime error. Check the log -90
ERAL
exceptions occurred when file, make corrections and
stopping the application, but retry.
not the following:
FAILURE_BINDING_NOT_EXIST
FAILURE_HAWK_MICROAGENT
FAILURE_HAWK_CONSOLE
FAILURE_STOP_NOT The application is not in Action error. Make sure the -91
_IN_STOPPABLE_ST
stoppable state. service instance is in a
ATE
stoppable state.
FAILURE_KILL_GEN Various other unexpected Runtime error. Check the log -100
ERAL
exceptions occurred when file, make corrections and
killing application, but not the retry.
following:
FAILURE_BINDING_NOT_EXIST
FAILURE_HAWK_MICROAGENT
FAILURE_HAWK_CONSOLE
Index
A D
activationInterval 75 daemon 57
appendClassPath 63 Delete Applications, Batch Mode 42
Application Deployment -delete Option 25
Complex 18 Deploy Applications, Batch Mode 40
Simple 16 DirLedger 50
AppManage Log Files 13 DirTrace 50
AppManage Utility 4 discoveryTimeout 56
AppManage.batch 38
arguments 70
C F
Changes failure 65
Deployment File Only 20 Failure Code List 87
EAR and Deployment Files 21 FAILURE_APPLICATION_NOT_EXIST 87
EAR file Only 20 FAILURE_BATCH 89
checkpoint 61 FAILURE_BINDING_NOT_EXIST 87
className 86 FAILURE_CONFIG_COMMIT 90
command 70 FAILURE_CONFIG_ERROR_GENERAL 90
-config option 25 FAILURE_CONFIG_FILE_NOT_EXIST 90
container 58 FAILURE_CONFIG_FILE_PARSE_ERROR 90
cookieDomain 83, 85 FAILURE_CONFIG_FILE_READ_ERROR 90
cookieKeepExpire 83 FAILURE_DELETE_COMMIT 92
cookiePath 85 FAILURE_DELETE_GENERAL 92
Credentials File 11 FAILURE_DEPLOY_COMMIT 91
customer support xviii FAILURE_DEPLOY_GENERAL 91
FAILURE_DEPLOYED_STATE 92
96
| Index
FAILURE_DEPLOYMENT_STATUS 91 Help 8
FAILURE_DOMAIN_MASTER_SERVER_DOWN 89
FAILURE_DOMAIN_NOT_INSTALLED 88
FAILURE_ERROR_EXECUTING_EAR_PLUGIN 89
FAILURE_EXPORT_FILE_NAME_ERROR 93 I
FAILURE_EXPORT_GENERAL 92
FAILURE_GET_ARCHIVE 89 idleTimeout 86
FAILURE_HAWK_CONSOLE 87 initHeapSize 63
FAILURE_HAWK_MICROAGENT 87
FAILURE_INVALID_REPO_INSTANCE 91
FAILURE_KILL_GENERAL 93
FAILURE_MERGE_ERROR 93 J
FAILURE_NO_MACHINE_ASSOCIATED_WITH_PR
OCESS 88 JmsProviderUrl 50
FAILURE_NO_UPLOADED_ARCHIVE 91 JmsSslProviderUrl 50
FAILURE_NOT_AUTHENTICATED 88
FAILURE_NOT_AUTHORIZED 88
FAILURE_NOT_DEPLOYABLE_STATE 91
FAILURE_PARSING_XML 88 L
FAILURE_PARSING_XSD 88
FAILURE_SERVICE_NOT_EXIST 87 level 67
FAILURE_START_GENERAL 93 localRepoInstance 53
FAILURE_STOP_GENERAL 93 location 59
FAILURE_STOP_NOT_IN_STOPPABLE_STATE 93 Log Files, AppManage 13
FAILURE_UNDEPLOY_COMMIT 92 loginAs 62
FAILURE_UNDEPLOY_GENERAL 92
FAILURE_UNEXPECTED_EXCEPTION 87
FAILURE_UNEXPECTED_THROWABLE 87
FAILURE_UPLOAD_APPLICATION_ARCHIVE 89 M
FAILURE_UPLOAD_COMMIT 89
FAILURE_UPLOAD_GENRAL 89 machine 58
FAILURE_USAGE_ERROR 87 maxHeapSize 63
FAILURE_VALIDATION 88 maxjob 73
FAILURE_XML_SERIALIZE 92 maxLogFileSize 60
failureCount 54, 72, 77, 80 MessageEncoding 51
failureInterval 54, 72, 77, 80 -min Option 27
flowlimit 73 -moveAppData Option 28
ftWeight 58
N
H
network 57
HawkEnabled 50 NVPair 50
hbInterval 75
Index 97
|
O service 57
signaturePassword 83
obfuscate utility 11 sMTPServer 69
Online Help 8 -start Option 25
operationRetry 57 startOnBoot 60
options, buildear 16 startupType 62
-stop Option 26
support, contacting xviii
P
-passwordfile Option 28 T
Passwords 11
performPolicy 67, 68 tablePrefix 74
prepandClassPath 63 technical support xviii
preparationDelay 76 -template Option 27
-prompt Option 27 threadCount 60
Protecting Sensitive Data 12 threadStackSize 63
TIBCO_HOME xv
TIBHawkDaemon 51
TIBHawkNetwork 51
R TIBHawkService 51
timeout 55, 56, 61
Redeploying -truncate Option 28
an Application 20 type 59
regionalSubject 57
relative file paths 38
RemoteRvDaemon 50
repoInstanceName 49 U
requireNewSessionForVerify 85
restart 64, 65, 66 Undeploy Applications, Batch Mode 40
runAsNT 62 -undeploy Option 25
Running Scripting Utilities 7 -upload option 25
RvaHost 51 url 55
RvaPort 51 Using Online Help 8
RvDaemon 51
RvNetwork 51
RvService 51
W
Working with Passwords 11
S
selected 52
server 55, 56
98
| Index
X
XSD files 46
Z
?verride Option 26