removePGC.py batch script
We can use the removePGC.py Jython script to remove the common batch container from the deployment target.
Purpose
The removePGC.py script is provided with the product. The removePGC.py script removes the common batch container from the deployment target or removes it when the deployment target is the only target.
Location
At installation, removePGC.py is copied onto the installation target machines in the app_server_root/bin directory.
Usage
To run removePGC.py script with the wsadmin utility, use this command:
wsadmin -lang jython -f removePGC.py <option>
We might have to modify wsadmin to wsadmin.sh or wsadmin.bat, depending on the operating system environment.
To see a list of all available operations, use the following command:
wsadmin -lang jython -f removePGC.py --help
Operations
Use the following option with this command:
- --list
- Lists the targets that have the common batch container.
Example
Use following command to list the targets which have the common batch container:
wsadmin -lang jython -f removePGC.py --list
For example:
>> wsadmin -lang jython -f removePGC.py --list INFO: Grid Execution Environment was found on following targets: cell=myCell,cluster=Endpoint1 cell=myCell,cluster=Endpoint2 cell=myCell,node=myNode01,server=server1
Related concepts
Grid endpoints
Related tasks
Administer the batch environment