![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[z/OS]](../images/ngzos.gif)
appEditionRename.py script
You can use the appEditionRename.py script to change the edition of all applications installed on a server or a cluster, excluding system applications.
Location
The appEditionRename.py script is in the app_server_root/bin directory.Usage
The following syntax describes the default script usage:./wsadmin.sh -lang jython -f appEditionRename.py
Parameters
- -renameForCluster
- Renames all non-system applications installed on a specified cluster.
Table 1. renameForCluster arguments. The following table lists each argument and its description. Argument Description newEdition Specifies the new edition name cluster Specifies the name of the target cluster - -renameForServer
- Renames all non-system applications installed on a specified server.
Table 2. renameForServer arguments. The following table lists each argument and its description. Argument Description node Specifies the name of the node server Specifies the name of the server on the node
Options
- -test
- Allows users to preview the applications that will be renamed. All applications that will be renamed are listed.
- -edition
- Specifies the edition of an application.
- -excludedApps=application_name
- Allows users to exclude applications that are not to be modified. For example, if a user wants to exclude the applications of app1 and app1 that are part of edition two, then the user would set -excludedApps=app1,app1-editiontwo.
Usage
- Identify the target cluster with applications to be renamed.
Run the script with the -test option to identify the applications that will be renamed.
-renameForCluster cluster1 2 -test
- Ensure that only expected applications are renamed.
If applications need to be excluded, then use the -excludedApps option to prevent the applications from being renamed.
-renameForCluster cluster1 2 -test -excludedApps=AppB,AppC,AppD-edition2
- Run the script without the -test option to rename
the applications.
-renameForCluster cluster1 2 -excludedApps=AppB,AppC,AppD-edition2