BLAManagement
To configure business-level applications use the Configurator admin role.
Assets represent binary files stored in asset repositories. Typical assets include...
- enterprise archives
- library files
- other resource files
Asset commands...
Business-level applications are admin models that contain...
- Composition units
- Other business-level applications.
- EAR files
- shared libraries
- PHP applications
- etc...
Business-level application commands:
Composition units...
- Enable asset contents to interact with other assets
- Enable the WAS run time to load and run asset contents
Composition unit commands...
deleteAsset
Remove an asset from the business-level application configuration.
Before using, verify that no composition units are associated with the asset. The command fails if the asset is associated with configuration units.
Target object: None
Required parameters
- -assetID
- Configuration ID of the asset to delete. The command accepts incomplete IDs for the assetID parameter, as long as the system can match the string to a unique asset. (String, required)
Optional parameters
- -force
- Whether to force the system to delete the asset, even if other assets depend on this asset. (Boolean, optional)
Return value: Configuration ID of the deleted asset...
WebSphere:assetname=asset2.zipBatch mode example usage
- Jython string:
AdminTask.deleteAsset('-assetID asset2.zip -force true')- Jython list:
AdminTask.deleteAsset(['-assetID', 'asset2.zip', '-force', 'true'])
Interactive mode example usage
- Jython...
AdminTask.deleteAsset('-interactive')
editAsset
Modify...
- description
- destination URL
- asset relationships
- file permissions
- validation settings
Target object: None
Required parameters
- -assetID
- Configuration ID of the asset to edit. Accepts an incomplete configuration ID, as long as the system can match the string to a unique asset ID. (String, required)
Optional steps:
Use the .* characters to specify a read-only argument in the command syntax.
Specify an empty string with the "" characters to keep the existing value of the argument.
If we do not specify a value or an empty string for a writable argument, the command resets the argument to a null value.
- -AssetOptions
- Use the AssetOptions step and the following arguments to set additional properties for the asset.
- inputAsset (read-only)
- Source package of the asset.
- name (read-only)
- Name of the asset. The default value for this argument is the file name of the source package.
- defaultBindingProps (read-only)
- Default binding properties for the asset. This argument only applies to enterprise assets. For assets which are not enterprise assets, specify the asterisk character (*) for pattern matching. For enterprise assets, specify the .* value to set the argument as a non-empty value.
- description
- Description for the asset.
- destinationUrl
- Specifies the URL of the asset binaries to deploy.
- typeAspect
- Asset type aspect.
- relationship
- Asset relationship. Use the plus sign character (+) to add additional assets to the existing relationship. Use the number sign character (#) to delete an existing asset from the relationship. To replace the existing relationships, specify the same syntax as in the importAsset command. If the asset specified in the relationship does not exist for add or update, the command returns an exception.
- filePermission
- File permission configuration.
- validate
- Whether to validate the asset. The default value is false. WAS ND v7.0 does not save the value specified for validate. Thus, if we select to validate the asset (true) now and later edit the asset, when you edit the asset enable this setting again for WAS ND to validate the updated files.
Return value: Configuration ID of the asset.
Batch mode example usage Use the following examples to edit a non-enterprise asset:
- Jython string:
AdminTask.editAsset('-assetID asset3.zip –AssetOptions [[.* asset3.zip * "asset for testing" c:/installedAssets/asset3.zip/BASE/asset3.zip "" assetname=a.jar "" false]]')- Jython list:
AdminTask.editAsset(['-assetID', 'asset3.zip', '–AssetOptions', '[[.* asset3.zip * "asset for testing" c:/installedAssets/asset3.zip/BASE/asset3.zip "" assetname=a.jar "" false]]'])Use the following examples to edit an enterprise asset:
- Jython string:
AdminTask.editAsset('-assetID defaultapp.ear –AssetOptions [[.* defaultapp.ear .* "asset for testing" "" "" "" "" false]]')- Jython list:
AdminTask.editAsset(['-assetID', 'defaultapp.ear', '–AssetOptions', '[[.* defaultapp.ear .* "asset for testing" "" "" "" "" false]]'])
Interactive mode example usage
- Jython...
AdminTask.editAsset('-interactive')
exportAsset
Export an asset configuration to a file.
Target object: None
Required parameters
- -assetID
- Configuration ID of the asset to export. This parameter accepts an incomplete configuration ID as long as the ID matches a unique asset. (String, required)
- -filename
- File name to which the system exports the asset configuration. (DownloadFile, required)
Return value: Does not return output.
Batch mode example usage
- Jython string:
AdminTask.exportAsset('-assetID asset2.zip –filename c:/temp/a2.zip')- Jython list:
AdminTask.exportAsset(['-assetID', 'asset2.zip', '–filename', 'c:/temp/a2.zip'])
Interactive mode example usage
- Jython...
AdminTask.exportAsset('-interactive')
importAsset
Import an asset configuration to the asset repository. After importing assets, we can add the assets to business-level applications as composition units.
Target object: None
Required parameters
- -source
- Name of the source file to import. (UploadFile, required)
Optional parameters
- -storageType
- Way the system saves the asset in the asset repository. The default asset repository stores full binaries, metadata of binaries, or no binaries. Specify FULL to store full binaries. Specify METADATA to store the metadata portion of the binaries. Specify NONE to store no binaries in the asset repository. The default value is FULL. (String, optional)
Optional steps:
- Use the .* characters to specify a read-only argument in the command syntax.
- Specify an empty string with the "" characters to keep the existing value of the argument.
If we do not specify a value or an empty string for a writable argument, the command resets the argument to a null value.
- -AssetOptions
- Use the AssetOptions step and the following arguments to set additional properties for the asset.
- inputAsset (read-only)
- Source package of the asset.
- name
- Name of the asset. The extension file name of the asset must match the extension file name of the source package. The default value for this argument is the file name of the source package.
- defaultBindingProps (read-only)
- Default binding properties for the asset. This argument only applies to enterprise assets. For assets which are not enterprise assets, specify the asterisk character (*) for pattern matching. For enterprise assets, specify the .* value to set the argument as a non-empty value.
- description
- Description for the asset.
- destinationUrl
- Specifies the URL of the asset binaries to deploy.
- typeAspect
- Asset type aspect. Specify the typeAspect option in object name format:
spec=xxx- relationship
- Asset relationship. Use the plus sign character (+) to specify multiple asset relationships. The command returns an exception if we specify assets in the relationship that do not exist.
- filePermission
- File permission configuration.
- validate
- Whether to validate the asset. The default value is false. WAS ND v7.0 does not save the value specified for validate. Thus, if we select to validate the asset (true) now and later edit the asset, when you edit the asset enable this setting again for WAS ND to validate the updated files.
Return value: Configuration ID of the asset that the system creates...
WebSphere:assetname=asset2.zipBatch mode example usage Use the following examples to import a non-enterprise asset:
- Jython string:
AdminTask.importAsset('-source /ears/asset1.zip -storageType NONE')- Jython list:
AdminTask.importAsset(['-source', '/ears/asset1.zip', '-storageType', 'NONE'])Use the following examples to import a non-enterprise asset, set asset2.zip as the asset name, save the metadata binaries in the asset repository, and set the destination directory of the binaries to deploy:
- Jython string:
AdminTask.importAsset('-source /ears/asset1.zip -storageType METADATA –AssetOptions [[.* asset2.zip .* "asset for testing" c:/installedAssets/asset2.zip/BASE/asset2.zip "" "" "" "" false]]')- Jython list:
AdminTask.importAsset(['-source', 'c:\ears\asset1.zip', '-storageType', 'METADATA', '–AssetOptions', '[[.* asset2.zip .* "asset for testing" c:/installedAssets/asset2.zip/BASE/asset2.zip "" "" "" "" false]]')Use the following examples to import a non-enterprise asset, and specifies asset relationships with the a.jar and b.jar assets:
- Jython string:
AdminTask.importAsset('[-source c:\ears\asset3.zip -storageType FULL –AssetOptions [[.* asset3.zip .* "asset for testing" "" spec=zip assetname=a.jar+assetname=b.jar "" false]]]')- Jython list:
AdminTask.importAsset(['-source', 'c:\ears\asset3.zip', '-storageType', 'FULL', '–AssetOptions', '[[.* asset3.zip .* "asset for testing" "" spec=zip assetname=a.jar+assetname=b.jar "" false]]'])Use the following examples to import an enterprise asset:
- Jython string:
AdminTask.importAsset('-source c:\ears\defaultapplication.ear –storageType FULL –AssetOptions [[.* defaultapp.ear .* "desc" "" "" "" false]]')- Jython list:
AdminTask.importAsset(['-source', 'c:\ears\defaultapplication.ear', '–storageType', 'FULL', '–AssetOptions', '[[.* defaultapp.ear .* "desc" "" "" "" false]]'])
Interactive mode example usage
- Jython...
AdminTask.importAsset('-interactive')
listAssets
Display the configuration ID of each asset within the cell.
Target object: None
Optional parameters
- -assetID
- Configuration ID of the asset. This parameter accepts an incomplete configuration ID as long as the ID matches a unique asset. (String, optional)
- -includeDescription
- Whether to include the a description of each asset that the command returns. Specify true to display the asset descriptions. (String, optional)
- -includeDeplUnit
- Whether to display the deployable units for each asset that the command returns. Specify true to display the deployable units. (String, optional)
Return value: List of configuration IDs for the assets. Depending on the parameter values specified, the command might display the description and deployable composition units for each asset...
WebSphere:assetname=asset1.zip "asset for testing"WebSphere:assetname=asset2.zip "second asset for testing" a.jar
WebSphere:aasetname=asset3.zip "third asset for testing" a1.jar+a2.jar
WebSphere:assetname=a.jar0 "a.jar for sharedlib"
WebSphere:assetname=b.jar "b.jar for sharedlib"
WebSphere:assetname=defaultapp.ear "default app"
Batch mode example usage Use the following examples to list each asset in the cell:
- Jython...
AdminTask.listAssets()Use the following examples to list each asset in the cell:
- Jython string:
AdminTask.listAssets('-assetID asset1.zip')- Jython list:
AdminTask.listAssets(['-assetID asset1.zip'])Use the following examples to list each asset, asset description, and deployable composition units in the cell:
- Jython string:
AdminTask.listAssets('-includeDescription true –includeDeplUnit true')- Jython list:
AdminTask.listAssets(['-includeDescription', 'true', '–includeDeplUnit', 'true')
Interactive mode example usage
- Jython...
AdminTask.listAssets('-interactive')
updateAsset
Modify files or module files of an asset. The command updates the asset binary file, but does not update the composition units that the system deploys with the asset as a backing object.
Target object: None
Required parameters
- -assetID
- Configuration ID of the asset to update. This parameter accepts an incomplete configuration ID as long as the ID matches a unique asset. (String, required)
- -operation
- Operation to invoke on the asset. (String, required)
The following table displays each operation that we can invoke on an asset:
Table 1. updateAsset supported operations
Operation Description replace The replace operation replaces the contents of the asset. merge The merge operation updates multiple files for the asset, but does not update all files. add The add operation adds a new file or module file. addupdate The addupdate operation adds or updates one file or module file. If the file does not exist, the system adds the contents. If the file exists, the system updates the file. update The update operation updates one file or module file. delete The delete operation deletes a file or module file.
- -contents
- File that contains the content to add or update. Optional.for the delete operation. (UploadFile, optional)
Optional parameters
- -contenturi
- Specifies the URI of the file to add, update, or remove from the asset. Optional.for the merge or replace operations. (String, optional)
Optional steps:
For optional steps
- Use the .* characters to specify a read-only argument in the command syntax
- Specify an empty string with the "" characters to keep the existing value of the argument.
If we do not specify a value or an empty string for a writable argument, the command resets the argument to a null value.
- -AssetOptions
- Use the AssetOptions step and the following arguments to set additional properties for the asset.
- name (read-only)
- Name of the asset. The default value for this argument is the file name of the source package.
- defaultBindingProps (read-only)
- Default binding properties for the asset. This argument only applies to enterprise assets. For assets which are not enterprise assets, specify the asterisk character (*) for pattern matching. For enterprise assets, specify the .* value to set the argument as a non-empty value.
- description
- Description for the asset.
- destinationUrl
- Specifies the URL of the asset binaries to deploy.
- typeAspect
- Asset type aspect.
- relationship
- Asset relationship. Use the plus sign character (+) to add additional assets to the existing relationship. Use the number sign character (#) to delete an existing asset from the relationship. To replace the existing relationships, specify the same syntax as in the importAsset command. If the asset specified in the relationship does not exist for add or update, the command returns an exception.
- filePermission
- File permission configuration.
- validate
- Whether to validate the asset. The default value is false. WAS ND v7.0 does not save the value specified for validate. Thus, if we select to validate the asset (true) now and later edit the asset, when you edit the asset enable this setting again for WAS ND to validate the updated files.
- updateAssociatedCU
- Whether to update the composition units that are associated with an enterprise (Java EE) asset. This argument applies to enterprise assets only. The default value is none. Specify all to update all of the composition units that are associated with the enterprise asset.
For the replace operation, specify values for the AssetOptions name, defaultBindingProps, description, destinationUrl, typeAspect, relationship, filePermission, validate, and updateAssociatedCU arguments. For operations other than replace, specify values for the AssetOptions name and updateAssociatedCU arguments.
Return value: Configuration ID of the asset.
The following example replaces the contents of a non-enterprise asset:
- Jython string:
AdminTask.updateAsset('-assetID asset1.zip -operation replace -contents c:/temp/a.zip')- Jython list:
AdminTask.updateAsset(['-assetID', 'asset1.zip', '-operation', 'replace', '-contents', 'c:/temp/a.zip'])
The following example partially updates the files of a non-enterprise asset:
- Jython string:
AdminTask.updateAsset('-assetID asset1.zip –operation merge –contents c:/temp/p.zip')- Jython list:
AdminTask.updateAsset(['-assetID', 'asset1.zip', '–operation', 'merge', '–contents', 'c:/temp/p.zip'])
The following example updates an enterprise asset with an EJB module file:
- Jython string:
AdminTask.updateAsset('-assetID defaultapp.ear –operation add –contents c:/temp/filename.jar –contenturi filename.jar')- Jython list:
AdminTask.updateAsset(['-assetID', 'defaultapp.ear', '–operation', 'add', '–contents', 'c:/temp/filename.jar', '–contenturi', 'filename.jar'])
The following example replaces an enterprise asset and its associated composition units using a replace operation:
- Jython string:
AdminTask.updateAsset('-assetID defaultapp.ear –operation replace –contents c:/temp/newapp.ear –AssetOptions [[defaultapp.ear .* newdesc "" "" "" "" false all]]')- Jython list:
AdminTask.updateAsset(['-assetID', 'defaultapp.ear', '–operation', 'replace', '–contents', 'c:/temp/newapp.ear', '–AssetOptions [[defaultapp.ear .* newdesc "" "" "" "" false all]]'])
The following example updates an enterprise asset and its associated composition units using a merge operation:
- Jython string:
AdminTask.updateAsset('-assetID defaultapp.ear –operation merge –contents c:/temp/newapp.ear –AssetOptions [[defaultapp.ear all]]')- Jython list:
AdminTask.updateAsset(['-assetID', 'defaultapp.ear', '–operation', 'merge', '–contents', 'c:/temp/newapp.ear', '–AssetOptions [[defaultapp.ear all]]'])
Usage
- Jython...
AdminTask.updateAsset('-interactive')
viewAsset
Display additional asset configuration options and configured values.
Target object: None
Required parameters
- -assetID
- Configuration ID of the asset. This parameter accepts an incomplete configuration ID as long as the ID matches a unique asset. (String, required)
Optional parameters: None
Return value: Configuration data for the asset...
Specify Asset options (AssetOptions)Specify options for Asset. *Asset Name (name): [defaultapp.ear] Default Binding Properties (defaultBindingProps): [defaultbinding.ejbjndi.prefix#defaultbinding.datasource.jndi#defaultbinding.datasource.username #defaultbinding.datasource.password#defaultbinding.cf.jndi #defaultbinding.cf.resauth#defaultbinding.virtual.host#defaultbinding.force] Asset Description (description): [] Asset Binaries Destination Url (destination): [${USER_INSTALL_ROOT}/installedAssets/defaultapp.ear/BASE/defaultapp.ear] Asset Type Aspects (typeAspect): [WebSphere:spec=j2ee_ear] Asset Relationships (relationship): []File Permission (filePermission): [.*\\.dll=755#.*\\.so=755#.*\\.a=755#.*\\.sl=755] Validate asset (validate): [false]
Usage:
- Jython string:
AdminTask.viewAsset('-assetID asset3.zip')- Jython list:
AdminTask.viewAsset(['-assetID', 'asset3.zip'])
Interactive mode example usage
- Jython...
AdminTask.viewAsset('-interactive')
addCompUnit
Add a composition unit to a specific business-level application. A composition unit represents an asset in a business-level application, and enables the asset contents to interact with other assets in the application. It also enables WAS run time to load and run asset contents.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. (String, required)
- -cuSourceID
- Source configuration ID for the composition unit to add. We can specify an asset ID or a business-level application ID. (String, required)
Optional parameters
- -deplUnits
- Deployable units to deploy for the asset. We can specify a subset of deployable units, all deployable units, or use the default as a shared library.
If we do not specify this parameter, the system deploys each deployable unit. (String, optional)
- For Java ™ EE assets, the system ignores this -deplUnits parameter and, regardless of the value specified, can add Java EE assets as part of this command.
- -cuConfigStrategyFile
- Fully qualified file path for custom default binding properties. This parameter only applies to enterprise assets. (String, optional)
- -defaultBindingOptions
- Specifies optional JNDI binding properties for an enterprise asset. The binding properties available depend upon the type of enterprise asset. Use the format property=value to specify a default binding property. To specify more than one property, separate each property=value statement by the delimiter #.
- We can specify binding properties now, when creating the asset, or later, when adding the asset as a composition unit to a business-level application. If we specify binding properties later, when adding the asset to a business-level application, then we can use a strategy file to specify the binding properties. (String, optional)
- Use the following options with the defaultBindingOptions parameter:
Table 2. addCompUnit -defaultBindingOptions supported binding properties
enterprise asset type Supported binding properties Enterprise bean (EJB) defaultbinding.ejbjndi.prefix
defaultbinding.force
Data source defaultbinding.datasource.jndi
defaultbinding.datasource.username
defaultbinding.datasource.password
defaultbinding.force
Connection factory defaultbinding.cf.jndi
defaultbinding.cf.resauth
defaultbinding.force
Virtual host defaultbinding.virtual.host
defaultbinding.force
Optional steps:
These steps do not apply to enterprise assets.
- Use the .* characters to specify a read-only argument in the command syntax.
- Specify an empty string with the "" characters to keep the existing value of the argument.
If we do not specify a value or an empty string for a writable argument, the command resets the argument to a null value.
- -CUOptions
- Specifies additional properties for the composition unit. Specify the following options with the CUOptions step:
- parentBLA (read-only)
- Parent business-level application for the new composition unit.
- backingID (read-only)
- Composition unit source ID.
- name
- Name of the composition unit.
- description
- Description of the composition unit.
- startingWeight
- Starting weight of the composition unit. Supported values are from 1 to 2147483647, the maximum Integer value.
- startedOnDistributed
- Whether to start the composition unit after distributing changes to the target nodes. The default value is false.
- restartBehaviorOnUpdate
- Nodes to restart after editing the composition unit. Specify ALL to restart each target node. Specify DEFAULT to restart the nodes controlled by the sync plug-ins. Specify NONE to prevent the system from restarting nodes.
- For example, specify the syntax of this step as -CUOptions [[.* .* cu4 "cu4 desc" 0 false DEFAULT]]
- -MapTargets
- Specifies additional properties for the composition unit target mapping. Specify the following options with the MapTargets step:
- deplUnit (read-only)
- Deployable unit URI.
- server
- Target or targets to deploy the composition units. The default value is the server1 server. Use the plus sign character ( + ) to specify multiple targets. Use the plus sign character ( + ) as a prefix to add an additional target. Specify the complete object name format for each server not aWAS server.
- For example, specify the syntax of this step as -MapTargets [[a1.jar cluster1+cluster2] [a2.jar +server2]]
- -ActivationPlanOptions
- Specifies additional properties for the composition unit activation plan. Specify the following options with the ActivationPlanOptions step:
- deplUnit (read-only)
- Deployable unit URI.
- activationPlan
- List of runtime components as the activation plan. Specify each activation plan in the format specName=xxx,specVersion=yyy, where specName represents the name of the spec and is required. Use the plus sign character ( + ) to specify multiple activation plans.
- For example, specify the syntax of this step as -ActivationPlanOptions [[a1.jar specname=actplan0+specname=actplan1] [a2.jar specname=actplan1+specname=actplan2]]
- -CreateAuxCUOptions
- Specifies additional properties for an auxiliary composition unit. Use this step if the composition unit source is an asset that corresponds to an asset that does not have a matching composition unit in the business-level application. Specify the following options with the CreateAuxCUOptions step:
- deplUnit (read-only)
- Deployable unit URI.
- inputAsset (read-only)
- Specifies composition unit source ID.
- cuID
- Composition unit ID that the system creates for the asset.
If we do not want to create a new composition unit, do not specify this argument.
- matchTarget
- Whether to match the targets of the dependency auxiliary composition unit with the targets of the new composition unit. The default value is true.
- WAS ND v7.0 does not save the value specified for matchTarget. Thus if we select to not match the target (false) now and later edit the composition unit, when you edit the composition unit disable this setting again for WAS to not match the targets.
- For example, specify the syntax of this step as –CreateAuxCUOptions [[a1.jar a.jar auxCU true] [a2.jar a.jar defaultCU false]]
- -RelationshipOptions
- Specifies additional properties for relationships between assets, composition units, and business-level applications. Use this step if the source ID of the composition unit is an asset that has a matching composition unit in the business-level application. Specify the following options with the RelationshipOptions step:
- deplUnit (read-only)
- Deployable unit URI.
- relationship
- Defines the composition unit relationships. Specify the composition unit object name in the format: cuName=xxx. Use the plus sign character (+) to specify multiple composition unit object names in the relationship. If the composition unit specified in the relationship does not exist under the same business-level application, the system returns an error.
- matchTarget
- Whether to match the targets of the composition unit relationship with the targets of the new composition unit. The default value is true.
- WAS ND v7.0 does not save the value specified for matchTarget. Thus if we select to not match the target (false) now and later edit the composition unit, when you edit the composition unit disable this setting again for WAS to not match the targets.
- For example, specify the syntax of this step as –RelationshipOptions [[a1.jar a.jar auxCU true] [a2.jar a.jar defaultCU false]]
Return value: Configuration IDs of the composition unit and the new composition unit created for the asset in the asset relationship...
WebSphere:cuname=cu4 WebSphere:cuname=cua WebSphere:cuname=cudBatch mode example usage
Use the following examples to add a non-enterprise asset:
- Jython string:
AdminTask.addCompUnit('-blaID myBLA –cuSourceID assetname=asset1.zip -CUOptions [[.* .* cu1 "cu1 desc1" 0 false DEFAULT]] -MapTargets [[.* server1]] –ActivationPlanOptions [.* specname=actplan0+specname=actplan1]')- Jython list:
AdminTask.addCompUnit(['-blaID', 'myBLA', '–cuSourceID', 'assetname=asset1.zip', '-CUOptions', '[[.* .* cu1 "cu1 desc1" 0 false DEFAULT]]', '-MapTargets', '[[.* server1]]', '–ActivationPlanOptions', '[.* specname=actplan0+specname=actplan1]'])Use the following examples to add a business-level application composition unit:
- Jython string:
AdminTask.addCompUnit('-blaID myBLA -cuSourceID yourBLA -CUOptions [[.* .* cu3 "cu3 desc3" 0 false DEFAULT]]')- Jython list:
AdminTask.addCompUnit(['-blaID', 'myBLA', '-cuSourceID', 'yourBLA', '-CUOptions', '[[.* .* cu3 "cu3 desc3" 0 false DEFAULT]]'])Use the following examples to add a composition unit for a non-enterprise asset and deploy the composition unit to multiple targets:
- Jython string:
AdminTask.addCompUnit('-blaID theirBLA –cuSourceID asset2.zip –CUOptions [[.* .* cu2 "cu2 desc" 0 false DEFAULT]] -MapTargets [[.* server1+server2]]')- Jython list:
AdminTask.addCompUnit(['-blaID', 'theirBLA', '–cuSourceID', 'asset2.zip', '–CUOptions', '[[.* .* cu2 "cu2 desc" 0 false DEFAULT]]', '-MapTargets', '[[.* server1+server2]]'])Use the following examples to add a composition unit that is a non-enterprise asset with a deployable unit:
- Jython string:
AdminTask.addCompUnit('-blaID yourBLA –cuSourceID asset2.zip –deplUnits a.jar –CUOptions [[.* .* cu3 "cu3 desc" 0 false DEFAULT]] –MapTargets [[a.jar server1]] –ActivationPlanOptions [[a.jar specname=actplan1]]')- Jython list:
AdminTask.addCompUnit(['-blaID', 'yourBLA', '–cuSourceID', 'asset2.zip', '–deplUnits', 'a.jar', '–CUOptions', '[[.* .* cu3 "cu3 desc" 0 false DEFAULT]]', '–MapTargets', '[[a.jar server1]]', '–ActivationPlanOptions', '[[a.jar specname=actplan1]]'])Use the following examples to add a composition unit for a non-enterprise asset as a shared library:
- Jython string:
AdminTask.addCompUnit('-blaID ourBLA –cuSourceID b.jar –deplUnits default –CUOptions [[.* .* cub "cub desc" 0 false DEFAULT]] –MapTargets [[default server1]]')- Jython list:
AdminTask.addCompUnit(['-blaID', 'ourBLA', '–cuSourceID', 'b.jar', '–deplUnits', 'default', '–CUOptions', '[[.* .* cub "cub desc" 0 false DEFAULT]]', '–MapTargets', '[[default server1]]'])Use the following examples to add a composition unit for a non-enterprise asset with a dependency. For this example, the cub composition unit exists as a shared library of the ourBLA business-level application:
- Jython string:
AdminTask.addCompUnit('-blaID ourBLA –cuSourceID asset3.zip –deplUnits a1.jar –CUOptions [[.* .* cu4 "cu4 desc" 0 false DEFAULT]] –MapTargets [[a1.jar cluster1+cluster2]] –CreateAuxCUOptions [[a1.jar a.jar cua true]] –RelationshipOptions [[a1.jar cuname=cub true]]')- Jython list:
AdminTask.addCompUnit(['-blaID', 'ourBLA', '–cuSourceID', 'asset3.zip', '–deplUnits', 'a1.jar', '–CUOptions', '[[.* .* cu4 "cu4 desc" 0 false DEFAULT]]', '–MapTargets', '[[a1.jar cluster1+cluster2]]', '–CreateAuxCUOptions', '[[a1.jar a.jar cua true]]', '–RelationshipOptions', '[[a1.jar cuname=cub true]]'])Use the following examples to add an enterprise asset:
- Jython string:
AdminTask.addCompUnit('[-blaID yourBLA –cuSourceID defaultapp.ear –defaultBindingOptions defaultbinding.ejbjndi.prefix=ejb# defaultbinding.virtual.host=default_host# defaultbinding.force=yes –AppDeploymentOptions [-appname defaultapp -installed.ear.destination application_root/myCell/defaultapp.ear] –MapModulesToServers [[defaultapp.war .* WebSphere:cell=cellName,node=nodeName,server=server1] [Increment.jar .* Websphere:cell=cellName,node=nodeName,server=server2]] -CtxRootForWebMod [[defaultapp.war .* myctx/]]]')- Jython list:
AdminTask.addCompUnit(['-blaID', 'yourBLA', '–cuSourceID', 'defaultapp.ear', '–defaultBindingOptions', 'defaultbinding.ejbjndi.prefix=ejb# defaultbinding.virtual.host=default_host# defaultbinding.force=yes', '–AppDeploymentOptions', '[-appname defaultapp -installed.ear.destination application_root/myCell/defaultapp.ear]', '–MapModulesToServers', '[[defaultapp.war .* WebSphere:cell=cellName,node=nodeName,server=server1] [Increment.jar .* Websphere:cell=cellName,node=nodeName,server=server2]]', '-CtxRootForWebMod', '[[defaultapp.war .* myctx/]]'])
Interactive mode example usage
- Jython...
AdminTask.addCompUnit('-interactive')
deleteCompUnit
Remove a composition unit. Both parameters for this command accept incomplete configuration IDs, as long as the system can match the string to a unique ID.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. (String, required)
- -cuID
- Configuration ID of the composition unit to delete. (String, required)
Optional parameters
- -force
- Whether to force the system to delete the composition unit, even if other composition units depend on this composition unit. (Boolean, optional)
Return value: Configuration ID of the composition unit that the system deleted...
WebSphere:cuname=cu1Batch mode example usage
- Jython string:
AdminTask.deleteCompUnit('-blaID myBLA –cuID cu1 -force true')- Jython list:
AdminTask.deleteCompUnit(['-blaID', 'myBLA', '–cuID', 'cu1', '-force', 'true'])
Interactive mode example usage
- Jython...
AdminTask.deleteCompUnit('-interactive')
editCompUnit
Modify additional composition unit options. We can use this command to modify the starting weight of the composition unit, deployment targets, activation plan options, and relationship settings.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. (String, required)
- -cuID
- Configuration ID of the composition unit to edit. (String, required)
Optional steps:
We can also specify values for optional steps to edit properties of the composition unit.
These steps do not apply to enterprise assets.
- Use the .* characters to specify a read-only argument in the command syntax.
- Specify an empty string with the "" characters to keep the existing value of the argument.
If we do not specify a value or an empty string for a writable argument, the command resets the argument to a null value.
- -CUOptions
- Specifies additional properties for the composition unit. Specify the following options with the CUOptions step:
- parentBLA (read-only)
- Parent business-level application for the composition unit.
- backingID (read-only)
- Composition unit source ID.
- name (read-only)
- Name of the composition unit.
- description
- Description of the composition unit.
- startingWeight
- Starting weight of the composition unit. Supported values are from 1 to 2147483647, the maximum Integer value.
- startedOnDistributed
- Whether to start the composition unit after distributing changes to the target nodes. The default value is false.
- restartBehaviorOnUpdate
- Nodes to restart after editing the composition unit. Specify ALL to restart each target node. Specify DEFAULT to restart the nodes controlled by the sync plug-ins. Specify NONE to prevent the system from restarting nodes.
- For example, specify the syntax for this step as -CUOptions [[.* .* cu4 "cu4 description" 0 false DEFAULT]]
- -MapTargets
- Specifies additional properties for the composition unit target mapping. Specify the following options with the MapTargets step:
- deplUnit (read-only)
- Deployable unit URI.
- server
- Target or targets to deploy the composition units. The default value is the server1 server. Use the plus sign character ( + ) to specify multiple targets. Use the plus sign character ( + ) as a prefix to add an additional target. Specify the complete object name format for each server not a WAS server.
- For example, specify the syntax of this step as -MapTargets [[a1.jar cluster1+cluster2] [a2.jar server1+server2]]
- -ActivationPlanOptions
- Specifies additional properties for the composition unit activation plan. Specify the following options with the ActivationPlanOptions step:
- deplUnit (read-only)
- Deployable unit URI.
- activationPlan
- List of runtime components as the activation plan. Specify each activation plan in the format specName=xxx,specVersion=yyy, where specName represents the name of the spec and is required. Use the plus sign character ( + ) to specify multiple activation plans.
- For example, specify the syntax of this step as -ActivationPlanOptions [[a1.jar specname=actplan0+actplan1] [a2.jar specname=actplan1+specname=actplan2]]
- -RelationshipOptions
- Specifies additional properties for relationships between assets, composition units, and business-level applications. Use this step if the source ID of the composition unit is an asset that has a matching composition unit in the business-level application. Specify the following options with the RelationshipOptions step:
- deplUnit (read-only)
- Deployable unit URI.
- relationship
- Defines the composition unit relationships. Specify the composition unit object name in the format: cuName=xxx. Use the plus sign character (+) to specify multiple composition unit object names in the relationship. If the composition unit specified in the relationship does not exist under the same business-level application, the system returns an error.
- matchTarget
- Whether to match the targets of the composition unit relationship with the targets of the new composition unit. The default value is true.
- WAS ND v7.0 does not save the value specified for matchTarget. Thus if we select to not match the target (false) now and later edit the composition unit, when you edit the composition unit disable this setting again for WAS to not match the targets.
- For example, specify the syntax of this step as –RelationshipOptions [[a1.jar a.jar auxCU true] [a2.jar a.jar defaultCU false]]
Return value: Configuration ID of the composition unit that the system edits.
Batch mode example usage Use the following examples to edit a composition unit of an asset and replace the target from existing targets:
- Jython string:
AdminTask.editCompUnit('-blaID myBLA –cuID cu1 –CUOptions [[.* .* cu1 cudesc 1 false DEFAULT]] -MapTargets [[.* server2]] -ActivationPlanOptions [.* #specname=actplan0+specname=actplan2]')- Jython list:
AdminTask.editCompUnit(['-blaID', 'myBLA', '–cuID', 'cu1', '–CUOptions', '[[.* .* cu1 cudesc 1 false DEFAULT]]', '-MapTargets', ' [[.* server2]]', '-ActivationPlanOptions', '[.* #specname=actplan0+specname=actplan2]'])Use the following examples to edit a composition unit of an asset and its relationships:
- Jython string:
AdminTask.editCompUnit('-blaID ourBLA –cuID cu4 –CUOptions [[.* .* cu4 "new cu desc" 1 false DEFAULT]] –MapTargets [[a1.jar server1+server2]] –RelationshipOptions [[a1.jar cuname=cub true]]')- Jython list:
AdminTask.editCompUnit(['-blaID', 'ourBLA', '–cuID', 'cu4', '–CUOptions', ' [[.* .* cu4 "new cu desc" 1 false DEFAULT]]', '–MapTargets', '[[a1.jar server1+server2]]', '–RelationshipOptions', '[[a1.jar cuname=cub true]]'])Use the following examples to edit a composition unit by adding a new relationship to the existing relationship:
- Jython string:
AdminTask.editCompUnit('[-blaID ourBLA –cuID cu4 –CUOptions [[.* .* cu4 "new cu desc" 1 false DEFAULT]] –MapTargets [[a1.jar server1+server2]] –RelationshipOptions [[a1.jar +cuname=cuc true]] -ActivationPlanOptions [a1.jar +specname=actplan2#specname=actplan1]]')- Jython list:
AdminTask.editCompUnit(['-blaID', 'ourBLA', '–cuID', 'cu4', '–CUOptions', ' [[.* .* cu4 "new cu desc" 1 false DEFAULT]]', '–MapTargets', '[[a1.jar server1+server2]]', '–RelationshipOptions', '[[a1.jar +cuname=cuc true]]', '-ActivationPlanOptions', '[a1.jar +specname=actplan2#specname=actplan1]'])Use the following examples to edit an enterprise composition unit configuration:
- Jython string:
AdminTask.editCompUnit('-blaID yourBLA –cuID defaultapp –MapModulesToServers [[defaultapp.war .* WebSphere:cluster=cluster1][Increment.jar .* Websphere:cluster=cluster2]] –CtxRootForWebMod [[defaultapp.war .* /]] –MapWebModToVH [[defaultapp.war .* vh1]]')- Jython list:
AdminTask.editCompUnit(['-blaID', 'yourBLA', '–cuID', 'defaultapp', '–MapModulesToServers', '[[defaultapp.war .* WebSphere:cluster=cluster1][Increment.jar .* Websphere:cluster=cluster2]]', '–CtxRootForWebMod', '[[defaultapp.war .* /]]', '–MapWebModToVH', '[[defaultapp.war .* vh1]]'])
Interactive mode example usage
- Jython...
AdminTask.editCompUnit('-interactive')
listCompUnits
Display each composition unit that is associated with a specific business-level application.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. (String, required)
Optional parameters
- -includeDescription
- Whether to include a description of each asset that the command returns. (String, optional)
- -includeType
- Whether to include the type for each asset that the command returns. (String, optional)
Return value: List of configuration IDs and the type for each composition unit...
Websphere:cuname=cu1 asset "description for cu1" Websphere:cuname=cu4 bla "description for cu4" WebSphere:cuname=defaultapp Java EE "description for defaultapp"Batch mode example usage
- Jython string:
AdminTask.listCompUnits('-blaID blaname=theirBLA')- Jython list:
AdminTask.listCompUnits(['-blaID', 'blaname=theirBLA'])
Interactive mode example usage
- Jython...
AdminTask.listCompUnits('-interactive')
setCompUnitTargetAutoStart
Enable or disable automatic starting of composition units. If we enable this option, the system automatically starts the composition unit when the composition unit target starts.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. The command accepts an incomplete configuration ID if the system matches it to a unique business-level application ID. (String, required)
- -cuID
- Composition unit. The command accepts an incomplete configuration ID if the system matches it to a unique composition unit ID. (String, required)
- -targetID
- Name of the target. For example, specify the server name to set the target to a specific server. (String, required)
- -enable
- Whether to automatically start the composition unit when the specified target starts. Specify true to start the composition unit automatically.
If we do not specify true, the system will not start the composition unit when the target starts. The default value is true. (String, required)
Return value: The command does not return output.
Batch mode example usage
- Jython string:
AdminTask.setCompUnitTargetAutoStart('-blaID bla1 –cuID cu1 –targetID server1 –enable true')- Jython list:
AdminTask.setCompUnitTargetAutoStart(['-blaID', 'bla1', '–cuID', 'cu1', '–targetID', 'server1', '–enable', 'true'])
Interactive mode example usage
- Jython string:
AdminTask.setCompUnitTargetAutoStart('-interactive')
viewCompUnit
Display configuration information for a composition unit that belongs to a specific business-level application.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. Accepts an incomplete configuration ID if the system matches it to a unique business-level application ID. (String, required)
- -cuID
- Configuration ID of the composition unit. This parameter accepts an incomplete configuration ID if the system matches it to a unique composition unit ID. (String, required)
Optional parameters: None
Return value: Configuration information for the composition unit...
Specify Composition Unit options (CUOptions)Specify name, description options for Composition Unit.
Parent BLA (parentBLA): [WebSphere:blaname=myBLA] Backing Id (backingId): [WebSphere:assetname=asset1.zip] Name (name): [cu1] Description (description): [cuDesc] Starting Weight (startingWeight): [0] Started on distributed (startedOnDistributed): [false] Restart behavior on update (restartBehaviorOnUpdate): [DEFAULT]
Specify servers (MapTargets)
Specify targets such as appservers or clusters of appservers where you want to deploy the cu contained in the application.
Deployable Unit (deplUnit): [default] *Servers (server): [WebSphere:node=myNode,server=server1]
Specify Composition Unit activation plan options (ActivationPlanOptions)
Specify CU activation plan optionsDeployableUnit Name (deplUnit): [default] Activation Plan (activationPlan): [WebSphere:specname=actplan0+WebSphere:specname=actplan1]
Batch mode example usage
The following example displays configuration information for a non-enterprise asset:
- Jython string:
AdminTask.viewCompUnit('-blaID myBLA -cuID myCompUnit')- Jython list:
AdminTask.viewCompUnit(['-blaID', 'myBLA', '-cuID', 'myCompUnit'])
The following example displays configuration information for an enterprise asset:
- Jython string:
AdminTask.viewCompUnit('-blaID myBLA -cuID defaultApplication')- Jython list:
AdminTask.viewCompUnit(['-blaID', 'myBLA', '-cuID', 'defaultApplication'])
Interactive mode example usage
- Jython...
AdminTask.viewCompUnit('-interactive')
createEmptyBLA
create an empty business-level application. After creating a business-level application, we can add assets or other business-level applications as composition units to the application.
Target object: None
Required parameters
- -name
- Specifies a unique name for the new business-level application. (String, required)
Optional parameters
- -description
- Description of the new business-level application. (String, optional)
Return value: Configuration ID of the new business-level application...
WebSphere:blaname=myBLABatch mode example usage
- Jython string:
AdminTask.createEmptyBLA('-name myBLA -description "my description for BLA"')- Jython list:
AdminTask.createEmptyBLA(['-name', 'myBLA', '-description', '"my description for BLA"'])
Interactive mode example usage
- Jython...
AdminTask.createEmptyBLA('-interactive')
deleteBLA
Remove a business-level application from the configuration. Before deleting a business-level application, use the deleteCompUnit command to remove each configuration unit that is associated with the business-level application. Also, verify that no other business-level applications reference the business-level application to delete.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. The command accepts an incomplete ID for the blaID parameter, as long as the system can match the string to a unique identifier. For example, we can specify the myBLA partial ID to identify the WebSphere:blaname=myBLA configuration ID. (String, required)
Optional parameters: None
Return value: Configuration ID of the deleted business-level application...
WebSphere:blaname=myBLABatch mode example usage
- Jython string:
AdminTask.deleteBLA('-blaID myBLA')- Jython list:
AdminTask.deleteBLA(['-blaID', 'myBLA'])
Interactive mode example usage
- Jython...
AdminTask.deleteBLA('-interactive')
editBLA
Modify the description of a business-level application.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. (String, required)
Optional steps:
- Use the .* characters to specify a read-only argument in the command syntax.
- Specify an empty string with the "" characters to keep the existing value of the argument.
If we do not specify a value or an empty string for a writable argument, the command resets the argument to a null value.
- -BLAOptions
- Use the BLAOptions step to specify a new description for the business-level application.
- name (read-only)
- Name of the business-level application.
- description
- Description of the business-level application.
Return value: The command does not return output.
Batch mode example usage
- Jython string:
AdminTask.editBLA('-blaID DefaultApplication –BLAOptions [[.* "my new description"]]')- Jython list:
AdminTask.editBLA(['-blaID', 'DefaultApplication', '–BLAOptions', '[[.* "my new description"]]'])
Interactive mode example usage
- Jython...
AdminTask.editBLA('-interactive')
getBLAStatus
Display if a business-level application or composition unit is running or stopped.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. Use the listBLAs command to display a list of business-level application configuration IDs. (String, required)
Optional parameters
- -cuID
- Configuration ID of the composition unit. Use the listCompUnits command to display a list of composition unit configuration IDs. (String, optional)
Return value: Status of the business-level application or composition unit of interest.
Batch mode example usage
- Jython string:
AdminTask.getBLAStatus('-blaID WebSphere:blaname=myBLA -cuID Websphere:cuname=cu1')- Jython list:
AdminTask.getBLAStatus(['-blaID', 'WebSphere:blaname=myBLA', '-cuID', 'Websphere:cuname=cu1'])
Interactive mode example usage
- Jython...
AdminTask.getBLAStatus('-interactive')
listBLAs
Display the business-level applications in the configuration.
Target object: None
Optional parameters
- -blaID
- Configuration ID of the business-level application. (String, optional)
- -includeDescription
- Whether to include a description of each business-level application that the command returns. Specify true to display the business-level application descriptions. (String, optional)
Return value: List of configuration IDs for each business-level application in the configuration...
WebSphere:blaname=myBLA WebSphere:blaname=yourBLABatch mode example usage
The following example lists each business-level application in the configuration:
- Jython...
AdminTask.listBLAs()Use the following examples to list each business-level application in the configuration:
- Jython string:
AdminTask.listBLAs('-blaID myBLA')- Jython list:
AdminTask.listBLAs(['-blaID', 'myBLA'])Use the following examples to list each business-level application and the corresponding descriptions:
- Jython string:
AdminTask.listBLAs('-includeDescription true')- Jython list:
AdminTask.listBLAs(['-includeDescription', 'true'])
Interactive mode example usage
- Jython string:
AdminTask.listBLAs('-interactive')
listControlOps
Display the control operations for a business-level application and the corresponding composition units.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. (String, required)
Optional parameters
- -cuID
- Composition unit. (String, optional)
- -opName
- Operation name. (String, optional)
- -long
- Whether to include additional configuration information in the command output. (String, optional)
Return value: List of operations, operation descriptions, and parameter descriptions for the query scope...
"Operation: start" " Description: Start operation" " Operation handler ID: com.mycompany.myasset.ControlOpHandler" " Operation handler data URI: None" "Operation: stop" " Description: Stop operation" " Operation handler ID: com.mycompany.myasset.ControlOpHandler" " Operation handler data URI: None" "Operation: clearCache" " Description: Clears specified cache or all caches" " Operation handler ID: com.mycompany.myasset.ControlOpHandler" " Operation handler data URI: None" " Parameter: cacheName" " Description: Name of cache to clear. If not specified, all caches are cleared."Batch mode example usage
- Jython string:
AdminTask.listControlOps('-blaID myBLA –cuID myservice.jar –long true')- Jython list:
AdminTask.listControlOps(['-blaID', 'myBLA', '–cuID', 'myservice.jar', '–long true'])
Interactive mode example usage
- Jython...
AdminTask.listControlOps('-interactive')
startBLA
Start the business-level application.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application to start. The command accepts an incomplete configuration ID if the system matches the string to a unique ID in the configuration. (String, required)
Return value: Status message if the business-level application starts. If the business-level application does not start, the command does not return output.
The following example displays the status message output:
BLA ID of started BLA if the BLA was not already running.Batch mode example usage
- Jython string:
AdminTask.startBLA('-blaID myBLA')- Jython list:
AdminTask.startBLA(['-blaID', 'myBLA'])
Interactive mode example usage
- Jython...
AdminTask.startBLA('-interactive')
stopBLA
Stop the business-level application.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application to stop. The command accepts an incomplete configuration ID if the system matches the string to a unique ID in the configuration. (String, required)
Return value: Status message if the business-level application stops. If the business-level application does not stop, the command does not return output.
The following example displays the status message output:
BLA ID of stopped BLA if the BLA was not already stopped.Batch mode example usage
- Jython string:
AdminTask.stopBLA('-blaID myBLA')- Jython list:
AdminTask.stopBLA(['-blaID', 'myBLA'])
Interactive mode example usage
- Jython...
AdminTask.stopBLA('-interactive')
viewBLA
Display the name and description of the business-level application.
Target object: None
Required parameters
- -blaID
- Configuration ID of the business-level application. The command accepts an incomplete configuration ID if the system matches the string to a unique business-level application. (String, required)
Optional parameters: None
Return value: Configuration information for the business-level application...
Specify BLA options (BLAOptions)Specify options for BLA *BLA Name (name): [DefaultApplication] BLA Description (description): []
Batch mode example usage
- Jython string:
AdminTask.viewBLA('-blaID DefaultApplication')- Jython list:
AdminTask.viewBLA(['-blaID', 'DefaultApplication'])
Interactive mode example usage
- Jython...
AdminTask.viewBLA('-interactive')
Related concepts
Assets
Composition units
Business-level applications
Related tasks
Set up business-level applications
Delete business-level applications
Start business-level applications
Stop business-level applications
Manage assets